Readit News logoReadit News
swuecho commented on Rating 26 years of Java changes   neilmadden.blog/2025/09/1... · Posted by u/PaulHoule
pixelmonkey · 5 months ago
A cool thing about Doug Lea's java.util.concurrent (received a 10/10 rating here) is that its design also inspired Python's concurrent.futures package. This is explicitly acknowledged in PEP 3148[1] (under "Rationale"), a PEP that dates back to 2009.

[1]: https://peps.python.org/pep-3148/

swuecho · 5 months ago
That is why I think of java when using python's concurrent.future package.
swuecho commented on I am sick of LeetCode-style interviews   nelson.cloud/i-am-so-sick... · Posted by u/nelsonfigueroa
swuecho · 2 years ago
The market is so bad, and most interview sucks one way or another. The main reason is interviewer have tens or hundreds application for same position.

I have just went through one interview that have 4 rounds.

1. half hour talk 2. 2 hours coding for several crud api. 3. system design project ( I spend 2 days on it. they told I have about a week on it) 4. another half hours with CTO.

and then got rejected. (The interviewers does not bother to send a reject letter. I asked them they told me the position is closed).

swuecho commented on Llamafile is the new best way to run a LLM on your own computer   simonwillison.net/2023/No... · Posted by u/djha-skin
bilsbie · 2 years ago
Is there a good machine to buy in the $500-1000 range that is able to run some of this stuff?
swuecho · 2 years ago
mac mini 8G runs at 10tokens/sec
swuecho commented on Melange 1.0: Compile OCaml / ReasonML to JavaScript   buttondown.email/anmontei... · Posted by u/anmonteiro90
pbiggar · 3 years ago
When we (darklang.com) were working with Rescript, I was not optimistic about Melange's approach, but in retrospect I think it has legs.

The challenge with ReScript is that the authors really were focusing on the JS ecosystem, and didn't care at all about OCaml. Their fusion with the ReasonML community didn't make a whole lot of sense. ReScript is a much better language now that it has split than it was then, if you look solely through the lens of a better JS.

But, as Elm and other compiled-to-JS languages have learned, Typescript has gotten good enough that other languages might not be sufficiently better than TS to attract enough interest to have a vibrant community. Doubly so since the JS-interop story isn't nearly as good in ReScript as it is in Typescript (though it's much much better than in Elm).

However, the aim of writing programs in OCaml which compile to nice JS and also native OCaml, and allowing both client and server to be written in OCaml, remains valid and interesting (and I would argue was held back by js_of_ocaml, the pre-existing way to do it). So I think there is something interesting here, though it isn't a ReScript competitor except tangentially.

Though I cannot really understand where ReasonML (a JS-like syntax for OCaml) fits into this - if the target is OCaml devs, than surely the ReasonML syntax stuff is not valuable anymore?

swuecho · 3 years ago
What is your journey about F# and Fable?

I find Fable is good too and generated code is very readable.

swuecho commented on Cursor: A code editor built for programming with AI   github.com/getcursor/curs... · Posted by u/mntruell
Deukhoofd · 3 years ago
So looking through the dependencies, it's CodeMirror with a VsCode theme on top of it, that includes Copilot. Why wouldn't I just use an existing editor with Copilot support?
swuecho · 3 years ago
it has free chatgpt4 and copilot is a joke at now.
swuecho commented on Cursor: A code editor built for programming with AI   github.com/getcursor/curs... · Posted by u/mntruell
redgetan · 3 years ago
Im curious. How did the github repo get 1.9k stars after just 2 weeks of development. Was it shared heavily on chinese social media (I noticed lots of github issues were written in chinese) ? I couldn't find any traces of it on twitter/google .
swuecho · 3 years ago
most of chinese are cut off from chatgpt.

I use cursor to generate code and then edit in vscode. it is free and generate good code.

swuecho commented on Show HN: CSVFiddle – Query CSV files with DuckDB in the browser   csvfiddle.io/... · Posted by u/shbhrsaha
swuecho · 4 years ago
very useful tools!
swuecho commented on Fresh is a new full stack web framework for Deno   deno.com/blog/fresh-is-st... · Posted by u/maeln
quickthrower2 · 4 years ago
The issue I have is, if I understand correctly, you need to go to the server for everything. Their sauce is of course that server is close, maybe 10ms away. But it needs to be online, and so do you.

If most things interactive on your site need a round trip BEFORE the interactivity (e.g. a Like button) then this is OK.

However if you are writing a web app which does a lot of stuff offline and there is no reason for it to not work offline then this is an issue.

Where it is a bit sucky is something like clicking an expand button, and needing a network request for basically setting a {display:'block'} style on an element.

I might be strawman-ing a bit there because you would probably chuck in a tiny JS script to do that one job and not religiously follow "no JS".

But I am sure there are good examples of wanting offline capability.

However this is not a showstopper: This model is great for some things, bad for others. It is a welcome new choice in the palette of web dev options.

I imagine it might be premature optimization for many sites though, given that it is a trade off.

If you care about minimal JS to the client, another approach might be to use https://svelte.dev/. I have not tried it, but I am curious.

swuecho · 4 years ago
That's exactly the island in Fresh does. Use Island for interactivity
swuecho commented on Devious SQL: Message Queuing Using Native PostgreSQL   blog.crunchydata.com/blog... · Posted by u/Scramblejams
noodlesUK · 4 years ago
Does anyone have anything that resembles Celery or Huey for python that uses the nice Postgres semantics for queueing? I know ruby has something like this in the form of Que. My application has very modest needs for its task queue, probably like a few thousand events per year, and celery seems like massive overkill.

u/swuecho

KarmaCake day474June 25, 2010View Original