Live data from Hacker News

OCaml on Baremetal Shakti RISC-V Processor

kcsrk.info

41–50 of 77 posts

Re: OCaml on Baremetal Shakti RISC-V Processor

#43
post #6

OCaml is a beautiful language but I haven't seen any big non language projects written in OCaml. Does any one know why? OR do such projects exist and it is only that I am not aware of them?

I’m a huge OCaml fan, but really it lacks a lot of things that you get out of the box with the runtimes of other languages. Multi core support is the most obvious one.

It’s definitely great for things like compilers, though. But I wouldn’t necessarily use it for a Web server.

Re: OCaml on Baremetal Shakti RISC-V Processor

#44
post #6

OCaml is a beautiful language but I haven't seen any big non language projects written in OCaml. Does any one know why? OR do such projects exist and it is only that I am not aware of them?

There is: https://bitbucket.org/skskeyserver/sks-keyserver/

Re: OCaml on Baremetal Shakti RISC-V Processor

#45
post #6

OCaml is a beautiful language but I haven't seen any big non language projects written in OCaml. Does any one know why? OR do such projects exist and it is only that I am not aware of them?

I’m a huge OCaml fan, but really it lacks a lot of things that you get out of the box with the runtimes of other languages. Multi core support is the most obvious one. It’s definitely great for things like compilers, though. But I wouldn’t necessarily use it for a Web server.

It's even great to draw nice fractals: https://github.com/cedricbonhomme/iterated-function-systems ;-)

Re: OCaml on Baremetal Shakti RISC-V Processor

#46
post #6

OCaml is a beautiful language but I haven't seen any big non language projects written in OCaml. Does any one know why? OR do such projects exist and it is only that I am not aware of them?

As someone who tried to get into it :

- the syntax is not great. I've heard it's one of the reasons why F# was born

- not many people use Ocaml, which makes it hard to find help

- not many good resources. The official documentation is really hard to parse and there isn't much besides it and the reference book (which reads more like a book than a reference).

- no good ways to debug, print objects, test, etc.

- no one seems to agree on what is the standard library or the correct packages to import (for example there are several Option package)

Re: OCaml on Baremetal Shakti RISC-V Processor

#48
post #6

OCaml is a beautiful language but I haven't seen any big non language projects written in OCaml. Does any one know why? OR do such projects exist and it is only that I am not aware of them?

> MetaOCaml has been successfully used for the most optimal stream fusion, specializing numeric and dynamic programming algorithms, building FFT kernels, compilers for an image processing and database query DSLs, OCaml server pages, generating families of specialized basic linear algebra and Gaussian Elimination routines, and high-performance stencil computations.

http://okmij.org/ftp/ML/MetaOCaml.html

Re: OCaml on Baremetal Shakti RISC-V Processor

#49
post #6

OCaml is a beautiful language but I haven't seen any big non language projects written in OCaml. Does any one know why? OR do such projects exist and it is only that I am not aware of them?

I’m a huge OCaml fan, but really it lacks a lot of things that you get out of the box with the runtimes of other languages. Multi core support is the most obvious one. It’s definitely great for things like compilers, though. But I wouldn’t necessarily use it for a Web server.

Multicore support is imho nowhere near OCaml's top problem :-) that would probably be a toolchain that lends itself to easy reproducible package management. But we're getting there.

Re: OCaml on Baremetal Shakti RISC-V Processor

#50
post #21

Earlier quoted context omitted.

This is OCaml's problem: it's a great language with no users. ReasonML is trying to solve this by making it more approachable, and they're making steady progress.

There are some really cool projects popping up with ReasonML - here are a few: - A package manager like NPM, but for native code: https://github.com/esy/esy - A fast Node version manager: https://github.com/Schniz/fnm - A fast replacement for dotenv-cli: https://github.com/ulrikstrid/reenv - A fast JS bundler: https://github.com/fastpack/fastpack - A native language server: https://github.com/jaredly/reason-language-…

I think you forgot one ;)

- A native GUI: https://github.com/revery-ui/revery

Post reply on HN