Hacker Newsnew | past | comments | ask | show | jobs | submit | erpellan's commentslogin

You might also enjoy Janet https://janet-lang.org/


Wow that IS cool!! Almost sounds too good to be true lol. Green threads? Repl? Event loop? One <1MB binary? What the heck!!


Unfortunately for the vast majority of people, it absolutely is some kind of magic.


I explicitly addressed this in my comment.


it definitely is. talking to non-tech people, even a password manager or adblock extension for a browser are magic. installing a basic OS is magic. freaking debugging something which isn't working is magic.

i've had to show people that they have to plug in their HDMI cable into their GPU instead of the motherboard, that they have to manually set the Hz in windows settings. how to install basic drivers.

so many more easy examples we IT-workers or nerds just take for granted. taking this to the extreme, my grandma asked me if i could search recipes online for her, because [insert your favorite search service] seemed too complicated.

So next to these examples, setting up syncthing with a VPN is next to impossible :( and even if they manage to set it up, good luck when you run into issues after a couple of months.


It’s always DNS! Except when it’s the firewall.


You do indeed use JOINS. The goal is to retrieve exactly the data you require in a single query. Then you get the DB to `EXPLAIN VERBOSE` or similar and ensure that full table scans aren't happening and that you have indexed the columns the query is being filtered on.


I can’t believe they still make processors out of sand. Talk about outdated technology.

Sarcasm aside, a great many projects started on MySQL and moved to postgres. As did projects using mongo, couchdb, firebase, oracle etc etc…

And I’m sure many projects switched away from Postgres to other technologies. Right tool for the job at hand.


If you look at the changes that have been made to Postgres, and continue to be made, the answer is yes.

The Postgres team is working on replacing Postgres. With even better Postgres.


The Postgres team incorporating io_uring into PG 18 is a good example of this: https://pganalyze.com/blog/postgres-18-async-io.


inb4 "It's the best Postgres we've ever made!"


Unless you want to cross state lines to get an abortion


The courts haven't ruled on that yet but interstate commerce clause is pretty explicit about this kind of thing. A state can't criminalize someone going to another state to do something as that is something reserved to the federal government.

So no, there is no restriction on going to another state to get an abortion.


several states are trying to change that. laws are being proposed to ban travel, and although they are being challenged, as you said, the last word on this is not spoken yet.

and even if legal, people having an out-of-state abortion are being sued. that alone is a big restriction, because what good is a right if you don't have the means to defend yourself when that right is being challenged.



Seconded. Regarding applying SPARK, the Tokeneer case-study is an interesting read. It's self-published by AdaCore.

This summary page links to the full PDF: https://www.adacore.com/tokeneer


Ada is terminally underappreciated.


You had me until the sweeping generalisation. I can picture things clearly but only deep inside my head. I never (awake) see anything in front of my eyes that isn’t physically there.


In normal mode I also do this all in my head, dark background, nothing around it, but if I'm looking at something and want to picture it in a sort of augmented reality you can can just use what you see as the background, but it's still in my mind. I don't think anyone is inducing actual visual hallucinations if they are sober.


that's the point many are making. in your first comment you described exactly a visual hallucination and now you clarify it's nothing like it. it's too subjective that self-reporting becomes useless


Thread.sleep on a platform thread takes that thread out of action until the sleep ends. If an executor with 10 threads got 10 tasks that all called Thread.sleep(1000000) then it can run no more tasks until one of the threads wakes up.

When a virtual thread sleeps or blocks on IO it is unhooked from the underlying platform thread so another virtual thread can run. You can have an almost unlimited number of virtual threads multiplexed over a small number of carrier (platform) threads. Hence M:N


In your view advancement is that in "green threads" they overloaded Thread.sleep(..), so it doesn't call real Thread.sleep() but doing something like Futures + ExecutionService underneath instead.

Java already had tons of non-blocking io/http and many other frameworks without "green threads" but using futures and executionservice. Green threads look like syntactic sugar.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: