Live data from Hacker News

How we built JSR

deno.com

31–40 of 41 posts

Re: How we built JSR

#32
> We use the excellent sqlx Rust package to handle migrations.

> The JSR API server is written in Rust, using the Hyper HTTP server. It communicates with the Postgres database via the sqlx Rust crate.

Looks like most of the backend is written in Rust. Must be a bummer working on a JS runtime, and not being able to test it out at such a scale.

Re: How we built JSR

#33

> We use the excellent sqlx Rust package to handle migrations. > The JSR API server is written in Rust, using the Hyper HTTP server. It communicates with the Postgres database via the sqlx Rust crate. Looks like most of the backend is written in Rust. Must be a bummer working on a JS runtime, and not being able to test it out at such a scale.

The V8 engine is written in C++ not JavaScript. Building high-level languages/tooling in lower-level system languages is a very common (and sensible) practice.

Re: How we built JSR

#34
post #22

Earlier quoted context omitted.

The Javascript and Python ecosystems, somewhat ironically, have begun using rust for their tooling, because the actual language is too slow. Aside though: IMO python is good as "glue" between low level code. JS... I don't know man.

My dream language/environment would be something that is ubiquitous, has a straight-forward learning curve, has a REPL, and empowers dev productivity - like python - but then, if i should choose, there would be an additional straight-forward path for me to push my code thhough some compilation process in order to supercharge the performance/speed of my code - like Go or Rust, etc...Basically let me choose to employ m…

Clojure is probably closest to that right now.

Re: How we built JSR

#35
post #22

Earlier quoted context omitted.

The Javascript and Python ecosystems, somewhat ironically, have begun using rust for their tooling, because the actual language is too slow. Aside though: IMO python is good as "glue" between low level code. JS... I don't know man.

My dream language/environment would be something that is ubiquitous, has a straight-forward learning curve, has a REPL, and empowers dev productivity - like python - but then, if i should choose, there would be an additional straight-forward path for me to push my code thhough some compilation process in order to supercharge the performance/speed of my code - like Go or Rust, etc...Basically let me choose to employ m…

That's Java. You can work in the REPL, and when you put your code in a file and launch it it runs fast; very fast.

Re: How we built JSR

#36
post #34
post #22

Earlier quoted context omitted.

My dream language/environment would be something that is ubiquitous, has a straight-forward learning curve, has a REPL, and empowers dev productivity - like python - but then, if i should choose, there would be an additional straight-forward path for me to push my code thhough some compilation process in order to supercharge the performance/speed of my code - like Go or Rust, etc...Basically let me choose to employ m…

Clojure is probably closest to that right now.

Interesting; i guess i have a rabbit hole to dive into. Thanks forvthe suggestion!

Re: How we built JSR

#37
post #35
post #22

Earlier quoted context omitted.

My dream language/environment would be something that is ubiquitous, has a straight-forward learning curve, has a REPL, and empowers dev productivity - like python - but then, if i should choose, there would be an additional straight-forward path for me to push my code thhough some compilation process in order to supercharge the performance/speed of my code - like Go or Rust, etc...Basically let me choose to employ m…

That's Java. You can work in the REPL, and when you put your code in a file and launch it it runs fast; very fast.

I can't deny the performance and scalability of Java. But I've never been a fan of the need to be so verbose when coding for it. Also my memory of Java is from the late 90s...so maybe I'm missing something but I can't recall there ever being a REPL in Java. So I guess TIL :-)

Re: How we built JSR

#38
post #29
post #22

Earlier quoted context omitted.

My dream language/environment would be something that is ubiquitous, has a straight-forward learning curve, has a REPL, and empowers dev productivity - like python - but then, if i should choose, there would be an additional straight-forward path for me to push my code thhough some compilation process in order to supercharge the performance/speed of my code - like Go or Rust, etc...Basically let me choose to employ m…

I believe this is essentially the goal of Mojo [0][1], at least for ML/AI development. [0] https://www.modular.com/max/mojo [1] https://news.ycombinator.com/item?id=35790367

Another rabbit hole for me to discover! Thanks!

Re: How we built JSR

#39
post #22

Earlier quoted context omitted.

The Javascript and Python ecosystems, somewhat ironically, have begun using rust for their tooling, because the actual language is too slow. Aside though: IMO python is good as "glue" between low level code. JS... I don't know man.

My dream language/environment would be something that is ubiquitous, has a straight-forward learning curve, has a REPL, and empowers dev productivity - like python - but then, if i should choose, there would be an additional straight-forward path for me to push my code thhough some compilation process in order to supercharge the performance/speed of my code - like Go or Rust, etc...Basically let me choose to employ m…

That is what Scala claims to be. https://www.scala-lang.org/

Scala has its own downsides tho. It is a "big" language in the sense that because it tries to do everything, there are too many ways to do one things.

Re: How we built JSR

#40
post #37
post #35

Earlier quoted context omitted.

That's Java. You can work in the REPL, and when you put your code in a file and launch it it runs fast; very fast.

I can't deny the performance and scalability of Java. But I've never been a fan of the need to be so verbose when coding for it. Also my memory of Java is from the late 90s...so maybe I'm missing something but I can't recall there ever being a REPL in Java. So I guess TIL :-)

Not only is there now a REPL, but the language is not at all what you remember from the 90s.
Post reply on HN