Better HN
topnewbestaskshowjobs
Log inSign up

ithrow

372 karma · joined Feb 21, 2020 (6y ago) · 311 submissions

Submissions

comment 4y ago · link · parent

If you are one Rails, why not the hotwire stuff?

comment 4y ago · link · parent

you may store data as property graphs or triples, but when you do a query, you always get back relations

Can you elaborate on this? in datomic you can get back hierarchical data

comment 4y ago · link · parent

Why did you switch from vim/neovim to emacs?

comment 4y ago · link · parent

I don't like callback hell http servers in java since now you have to go chase async libraries for everything.

comment 4y ago · link · parent

Why is alpine so popular for VMs/containers when popular runtimes like the JVM or nodejs don't officially support musl?

comment 4y ago · link · parent

That's like saying that C++ is a better backend platform than the JVM due to better performance. For 95% of business web apps out there it doesn't matter, I mean, multiple business with evaluations in the billions of dollars have been created with runtimes 50x slower than nodejs.

Nodejs competes with Java in single threaded performance, I'll say normal JS code is faster than normal Java code. For web services that are IO bound, nodejs still competes with Java unless you go with all the batshit crazy complex reactive stuff in the Java world, supposedly is going to get better with the new green threads implementation.

comment 4y ago · link · parent

1. Objects are sets of keys

2. JS has Map/Set which allow other composite types as keys and can be converted to objects for JSON serialization then deserialize back to Map/Set.

comment 4y ago · link · parent

Besides being fun for sure because you can use whatever you want for your own stuff I don't see what's special about clojure here. They are using react (behind a wrapper), IME, clourescript is not worth the hassle. On the server they are using ring/compojure which is similar to js/express, python/flask that can get the job done equally well in this case. The story would be more interesting if they were using something like datomic instead of postgres since datomic is were clojure could differentiate itself.

Keep in mind that they have to juggle between almost four different languages, Java, Javascript, Clojure and Clojurescript, almost because there are differences between Clojure and Clojurescript. Instead of for example just using one language: JS.

comment 4y ago · link · parent

They are talking specifically about the built-in incremental compiler of the Eclipse IDE, not the whole IDE experience.

comment 4y ago · link · parent

Can you share what do you miss from JS when trialing another language?

71.

Data Oriented Programming in Java(infoq.com ↗)

4 points · by ithrow · 4y ago · discuss

comment 4y ago · link · parent

For a single person team it is bad because now they have to depend on their memory and shell history.

There is this thing called shell scripts.

comment 4y ago · link · parent

This kind of thing happens often enough that it really should be baked into the language.

Since Java 17 there are records.

comment 4y ago · link · parent

It's also very nice that the postresql project maintains a high quality JDBC driver https://jdbc.postgresql.org/

Working with pg in nodejs was frustrating in comparison.

comment 4y ago · link · parent

Many "modern" companies chose Java for the core of their backend servers, stripe, square, netflix to name a few.

comment 4y ago · link · parent

Is Timescale suited for keeping the history of the data and then query against any point in time?

comment 4y ago · link · parent

Didn't explain myself well, meant I want to use Javascript only and maybe typescript only for the schemas. I understand that Tigris exposes a HTTP endpoint and is all json but wondered how well the Typescript SDK will play for pure Javascript development.

comment 4y ago · link · parent

Does ES support the embedded use case?

comment 4y ago · link · parent

If you don't want/need HA you can run a 1 node ES.

comment 4y ago · link · parent

Can typescript be limited to just creating the schema and then use javascript for the rest of your application?

comment 4y ago · link · parent

In what programming language? I find that with dynamic languages comments help but they require to have more discipline about documentation.

comment 4y ago · link · parent

Write SQL and do the mappings to records yourself.

comment 4y ago · link · parent

It's common to have your remote dev environment on a remote VM.

comment 4y ago · link · parent

You could say the same for Python/Ruby/Javascript or most high-level languages that rely on a VM.

comment 4y ago · link · parent

Couldn't find anything in the Prisma docs about it exposing a GraphQL API.

comment 4y ago · link · parent

I don't see how Clojurescript is a good thing here, it's probably the most inefficient and with the most overhead of all the compile to JS languages (with out talking too much about react with penpot uses), even highly optimized pure JS won't come anywhere near the performance of Figma's C++ engine. Yes, performance for this tools matters.

comment 4y ago · link · parent

Their existing imperative code operations actually produced the wrong results (subtly) frequently or their imperative code depended on the order of the data returned from the database (undefined behavior). Yikes.

That just sounds like very sloppy programming.

comment 4y ago · link · parent

Doesn't the problem you mention for Loom applies equally to OS threads? What's the difference? Loom just lets you create more threads but with OS threads you are doing IO too.
12345
11