Tim Dévé

Results 45 comments of Tim Dévé

I originally thought these were for chaining fallible operations (each step would return Result/Maybe), wondering if that would be more powerful.

The macro is kinda like doing apply + thread (without the lambda): ```clojure (Maybe.apply (Maybe.Just x) &(fn [y] (=> y (+ 3) (* 2)))) ```

Would you be able to mix types?

Nice, might rewrite Hoquet as a macro if that lands.

I have written a small demo of using pthreads, it's not incredibly safe: https://github.com/TimDeve/pthread

@eriksvedang Correct me if I'm wrong but the borrow checker can't really handle threads safely at the moment so there would need to be some language change before something like...

@hellerve I don't think it help with the issue I have in https://github.com/TimDeve/pthread, if you look at the example you have to be careful that the lifetime of your lambdas...

Even if you make it take ownership, maybe putting your callback in struct that's returned with your thread handle, you'll still have problems with the ref it captures, like this:...

Is the lifetime linked to the references it captures?

Very cool, I've been waiting for this, I think some of my programs can be alloc-free now.