Re:Pen: A programming language for scalable development
by 6gvONxR4sf7o on Monday September 20, 2021 @02:14AM
(#28590786)
I’ve never heard of Koka before (one of its stated predecessors), but Koka seems really intriguing. Has anyone used it?
[ Parent
| on HN ]
Re:Pen: A programming language for scalable development
by anfelor on Monday September 20, 2021 @03:05AM
(#28591010)
Yes, I am currently writing a masters thesis about it! It is a "research language that [is] currently under heavy development" as the README says so I don't recommend using it for anything other than a research/toy project. But you would be surprised how well it works: Algebraic effects can give you 98% the power of monads while being much faster and easier to understand. And then Koka uses mimalloc [0], Perceus [1] and tail recursion modulo cons which make Koka programs almost as fast as C++. For example, in the benchmarksgame, Haskell takes 5x as much time on the binarytrees benchmark as the fastest implementation, while Koka is 50% slower (similar to other C/C++ and Rust implementations).
[0]: https://github.com/microsoft/mimalloc [1]: https://news.ycombinator.com/item?id=25464354
Re:Pen: A programming language for scalable development
by igouy on Monday September 20, 2021 @12:24PM
(#28595537)
> Haskell takes 5x as much time … as the fastest implementation, while Koka is 50% slower (similar to other C/C++ and Rust implementations).
Which is to say Koka takes 2x as much time as the fastest for that task ?
Re:Pen: A programming language for scalable development
by 6gvONxR4sf7o on Monday September 20, 2021 @03:06PM
(#28597484)
Huh, now I'm curious whether it means 2x or 1.5x. These graphs on the github look promising https://github.com/koka-lang/koka/blob/master/doc/bench-amd3...
Re:Pen: A programming language for scalable development
by grumpyprole on Monday September 20, 2021 @01:29PM
(#28596319)
That's pretty good considering Koka is a high-level language like Python and JavaScript.
Re:Pen: A programming language for scalable development
by cies on Monday September 20, 2021 @02:53AM
(#28590961)
Super cool indeed. I learned MSFT pulled funding for this project. Sadly.
Re:Pen: A programming language for scalable development
by anfelor on Monday September 20, 2021 @03:08AM
(#28591015)
No, that seems wrong. Its currently only Daan working on this, but as you can see the last commit to 'master' was 7 days ago and the last commit to 'dev' yesterday...
Re:Pen: A programming language for scalable development
by cies on Monday September 20, 2021 @03:36AM
(#28591172)
So was there MSFT funding? And is there now MSFT funding?
That it gets continued as a hobby project does not mean it was not funded at some point (and is no longer).
But I'm not sure about my statement; no source also (just remember reading it).
CORRECTION: as can be read rest of the thread, Koka is being funded by MSFT.
Re:Pen: A programming language for scalable development
by anfelor on Monday September 20, 2021 @03:53AM
(#28591273)
Daan is employed full-time at MS Research and gets to spend this time on Koka (when he is not writing conference papers). There is currently no further funding or deployment of Koka within Microsoft that I know of (unlike mimalloc which seems to be used by Azure and Bing).