Better HN
topnewbestaskshowjobs
Log inSign up

anmonteiro90

211 karma · joined Apr 6, 2014 (12y ago) · 75 submissions

[ my public key: https://keybase.io/anmonteiro; my proof: https://keybase.io/anmonteiro/sigs/EaEkogO5IgpeIL3Jg88wf8HdTnezsHZFj9r3_rT8Dk0 ]
Submissions

1.

Reducing Latency by 83% with Esoteric Linux Process Flags(recall.ai ↗)

4 points · by anmonteiro90 · 1y ago · discuss

2.

Melange 2.0: Compile OCaml / ReasonML to JavaScript(anmonteiro.substack.com ↗)

10 points · by anmonteiro90 · 3y ago · 1 comment

3.

Ahrefs frontend now built with Melange (OCaml –> JavaScript)(tech.ahrefs.com ↗)

2 points · by anmonteiro90 · 3y ago · discuss

comment 3y ago · link · parent

Thank you :-)

You also make a good point. I didn't go into too much detail about ReasonML in another comment, but I know Jordan (@jordwalke) has plans for a ReasonML v4 [1] with slight syntax improvements. I don't currently know the status of that work, however, but I think we'll want to make progress soon.

So the TL;DR is more that ReasonML is not going anywhere, especially since Ahrefs have a huge ReasonML frontend codebase [2].

[1]: https://github.com/reasonml/reason/pull/2605 [2]: https://tech.ahrefs.com/ahrefs-is-now-built-with-melange-b14...

comment 3y ago · link · parent

Hi Paul, appreciate the kind words.

Your perspective on the project is exactly how we think about it: Melange provides the tooling for fullstack (@davesnx likes to call them Universal) Reason/OCaml applications.

I suspect my time in Clojure(Script) has heavily influenced how I look at a "Language of the System"[1], and that's effectively what we're trying to do here.

Re: ReasonML, I very much understand the sentiment. In my mind right now, ReasonML is only there to provide JSX and reason-react support. I suspect we'll eventually write a JSX PPX for OCaml and stop using ReasonML down the road (fairly longer term).

[1]: https://www.youtube.com/watch?v=ROor6_NGIWU

comment 3y ago · link · parent

ReasonML purely as a syntax layer on top of OCaml is still being updated and released[1]. Incidentally, I'm one of the maintainers of that project too :-)

With this Melange release, we're hoping to somewhat revive ReasonML and channel some folks back to the community from the perspective of a vertically integrated platform[2] that has seen major investment in the past few years.

[1]: https://github.com/reasonml/reason [2]: https://ocaml.org/docs/platform

comment 3y ago · link · parent

Melange approaches the problem from the OCaml perspective. It inserts itself within the OCaml community, so you need the OCaml Platform[1] tooling to install and use it.

This way, you get all the benefits of having a native toolchain and build system, and a great integration with modern JavaScript with e.g. npm or yarn.

[1]: https://ocaml.org/docs/platform

comment 3y ago · link · parent

Melange and ReScript target different audiences.

AFAIU, ReScript is a new language that offers an alternative to TypeScript.

Melange approaches the problem from the perspective of compatibility with OCaml / ReasonML. We've focused very hard on vertical integration with the OCaml Platform[1] and we're getting all the benefits with this release!

That said, both communities are fairly small, and I don't doubt that somewhat competing projects have some impact on community. From our perspective (the Melange team), our goals fit a specific use case, and e.g. Ahrefs, one of the leading SEO engines in the world, is using Melange[2] in production to power all their web experiences.

[1]: https://ocaml.org/docs/platform [2]: https://tech.ahrefs.com/ahrefs-is-now-built-with-melange-b14...

9.

Melange 1.0: Compile OCaml / ReasonML to JavaScript(buttondown.email ↗)

195 points · by anmonteiro90 · 3y ago · 54 comments

comment 6y ago · link · parent

I don't wanna nitpick too much (I realize that's all I'm doing). I just wanted to caution against stating what you perceive as a fact without any backing references.

comment 6y ago · link · parent

That makes sense but it's not what comes across. The sentence immediately after says that "the language continues to grow". That's what I'm questioning.

comment 6y ago · link · parent

It'd be interesting to back the claim that "Clojure is (slowly) eating the world.".

Interestingly, that's absolutely not my perspective and I don't see any sources for that statement in the post.

13.

Conduct Unbecoming of a Hacker (2014)(sealedabstract.com ↗)

5 points · by anmonteiro90 · 7y ago · discuss

14.

OCaml Runtime for AWS Lambda(github.com ↗)

4 points · by anmonteiro90 · 7y ago · discuss

15.

Autochrome – Structural diffs for Clojure source code(fazzone.github.io ↗)

6 points · by anmonteiro90 · 8y ago · discuss

16.

Retroactive Data Structures (2007) [pdf](erikdemaine.org ↗)

3 points · by anmonteiro90 · 9y ago · discuss

17.

Reason React's new website(reasonml.github.io ↗)

3 points · by anmonteiro90 · 9y ago · discuss

comment 9y ago · link · parent

He was referring to these https://github.com/cljsjs/packages/blob/950064853c8391ac7a88...

comment 9y ago · link · parent

strings in `:npm-deps` should just work. I'm more concerned about the npm syntax for `@namespace/package@version` which I'm not sure is valid. If it doesn't work though, please open a ticket so we can fix it!

comment 9y ago · link · parent

We shell out to `npm` to install the dependencies you specify, so I don't see why it wouldn't work.

comment 9y ago · link · parent

Native CLJS libraries are regular JARs that you add to your classpath. Most people publish them to Clojars[1] (which also has Clojure libs). Maven Central may also have some.

[1] http://clojars.org

comment 9y ago · link · parent

This functionality is opt-in, so you can still live on your island if you'd like :-)

comment 9y ago · link · parent

Just to add to this statement, even in cases where externs will still be necessary, adding CLJSJS packages[1] to your project's classpath will result in those externs being used even if you don't use the libraries that the packages provide.

http://github.com/cljsjs/packages

24.

On Lumo's (ClojureScript REPL) Growth and Sustainability(anmonteiro.com ↗)

1 points · by anmonteiro90 · 9y ago · discuss

25.

Requiring Node.js modules from ClojureScript namespaces(anmonteiro.com ↗)

6 points · by anmonteiro90 · 9y ago · discuss

26.

Compiling ClojureScript Projects Without the JVM(anmonteiro.com ↗)

13 points · by anmonteiro90 · 9y ago · 2 comments

comment 10y ago · link · parent

Why not?! Sounds like a great idea. Happy to see someone help me with that

comment 10y ago · link · parent

Just like you'd do in Node. Add deps to a package.json and npm install. Then just `(js/require "your-package")`

comment 10y ago · link · parent

Unfortunately, Node.js and V8 seem to be about 2.5X slower than JavaScriptCore for bootstrapped ClojureScript. I haven't found a way around it. I also don't mean to trick anyone and this is explained in the post.

comment 10y ago · link · parent

There are a number of pre-bundled libraries in Lumo. `cljs.nodejs` is actually part of ClojureScript so it's included too.
123