logoalt Hacker News

ifh-hn • yesterday at 9:06 PM • 1 reply • view on HN

I think my main point is that to use roc for anything I need to know roc and a second language. Or import the functionality written in that secondary language. I'm aware that you do this with other languages, pandas and numpy aren't written in python, I really just don't get why rocs way is better...


Replies

niclas-ahden • yesterday at 10:25 PM

>I think my main point is that to use roc for anything I need to know roc and a second language

You could just pick up Roc, pick a platform, and start writing Roc right away without knowing any other language :) There are already a number of platforms to use for CLI apps, web servers, web apps, native GUIs etc.

However, if you want to write your own platform you can. That's a great power to be able to reach for if you want to but it's not typical.

Going back to the JavaScript example: most JS developers just pick a platform, like Bun, and start writing JS. In the same way, you'd pick a Roc platform and start writing Roc.

Sure, if Bun wasn't good enough the JS dev may write their own platform (Bum? :P), and then they'd need a second language. That's the same thing you could do in Roc if you wanted a custom platform :)