News for hackers. Stuff that matters.

tonsky

Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:47PM (#44814475)
Maven's version resolution mechanism determines which version of a dependency to use when multiple versions are specified in a project's dependency tree. Here's how it works:

- Nearest Definition Wins: When multiple versions of the same dependency appear in the dependency tree, the version closest to your project in the tree will be used.

- First Declaration Wins: If two versions of the same dependency are at the same depth in the tree, the first one declared in the POM will be used.

Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:45PM (#44814447)
> I’d love to lock my library to numpy 2.3.4, but if the developers of another library pin theirs to 2.3.5 then game over.

Why? Can’t you specify which version to use?

Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:45PM (#44814427)
> would fail in languages like Python where dependencies are shared

And yet Java and Maven exist...

Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:41PM (#44814383)
I updated the post, see near the bottom
Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:41PM (#44814370)
Yeah but version ranges are fiction. Some says: we require libpupa 0.2.0+. Sure you can find a version in that range. But what if it doesn’t work? How can you know that your library will work with all the future libpupa releases in advance?
Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:38PM (#44814333)
I worked for 20 years in an ecosystem that didn’t have lockfiles and had reproducible builds before the term was invented, and now you come and tell me that it couldn’t be?
Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:23PM (#44814145)
> Lockfiles are essential for somewhat reproducible builds.

No they are not. Fully reproducible builds have existed without lockfiles for decades

Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:20PM (#44814092)
One of the versions will be picked up. If that version doesn’t work, you can try another one. The process is exactly the same
Re:We shouldn't have needed lockfiles on Wednesday August 06, 2025 @12:17PM (#44814050)
It’s totally fine in Maven, no need to rebuild or repackage anything. You just override version of libinsecure in your pom.xml and it uses the version you told it to
Re:Sync Engines Are the Future on Friday March 21, 2025 @07:34AM (#43434411)
Clojure Electric is different. It’s not really a sync, it’s more of a thin client. It relies of having fast connection to server at all times, and re-fetches everything all the time. They innovation is that they found a really, really ergonomic way to do it
Re:Sync Engines Are the Future on Friday March 21, 2025 @07:24AM (#43434338)
If you think of an existing database, like Postgres, sure. It’s not very convenient.

What I am saying is, in a perfect world, database and server will be the one and run code _and_ data at the same time. There’s really no good reason why they are separated, and it causes a lot of inconveniences right now.

Re:Sync Engines Are the Future on Friday March 21, 2025 @07:22AM (#43434324)
Ah, no. Not really. People sometimes think about conflict resolution as a problem that needs to be solved. But it’s not solvable, not really. It’s part of the domain, it’s not going anywhere, it’s irreducible complexity.

You _will_ have conflicts (because your app is distributed and there are concurrent writes). They will happen on semantic level, so only you (app developer) _will_ be able to solve them. Database (or any other magical tool) can’t do it for you.

Another misconception is that conflict resolution needs to be “solved” perfectly before any progress can be made. That is not true as well. You might have unhandled conflicts in your system and still have a working, useful, successful product. Conflicts might be rare, insignificant, or people (your users) will just correct for/work around them.

I am not saying “drop data on the floor”, of course, if you can help it. But try not to overthink it, either.

Re:Sync Engines Are the Future on Friday March 21, 2025 @07:10AM (#43434243)
> There's no such thing as reliable network in the world

I’m not saying there is

Re:Sync Engines Are the Future on Friday March 21, 2025 @07:09AM (#43434240)
- You can have many sync engines

- Sync engines might only solve small and medium scale, that would be a huge win even without large scale

Re:Sync Engines Are the Future on Friday March 21, 2025 @07:06AM (#43434213)
It’s not as simple as you make it sound:

- Reliable communication is hard - Optimistic writes should on client are hard - Tracking subsets of data is hard (you don't want the entirety of Datomic on the client, do you?) - Permissions are hard in this model

Why didn't I implement it? Mostly comes down to free time. It's a hobby project and it's hard to find time for it. I also stopped writing web apps so immediate pressure for this went away.

Re:Clojure Desktop UI Framework on Wednesday August 28, 2024 @04:13AM (#41377209)
That’s two perfect examples! Racket seems to try to use native widgets, and looks horrible as a result, at least on macOS

JavaFX uses the same approach as Humble UI: they draw all the widgets themselves and have custom cross-platform look and feel.

We aim to be better quality version of JavaFX

Re:Clojure Desktop UI Framework on Tuesday August 27, 2024 @01:12PM (#41370056)
If they use native widgets, they usually look really bad If they just “imitate” look and feel, they usually fall very short of the real thing

Either way, it’s bad experience for the end user

Re:Clojure Desktop UI Framework on Tuesday August 27, 2024 @11:41AM (#41368786)
It’s a tradeoff. You either make your app native but only for one platform, or you make it look “universal” and run on all three.
Re:Clojure Desktop UI Framework on Tuesday August 27, 2024 @11:38AM (#41368764)
All good points, all true. But what’s also true is that current trend is to come up with arbitrary-looking controls even on apps made by Apple themselves. Nobody knows what native is supposed to look like. I’m not saying it’s good, it’s just what is happening.
Re:Clojure Desktop UI Framework on Tuesday August 27, 2024 @11:34AM (#41368715)
Not yet, but in theory, sure
Re:Clojure Desktop UI Framework on Tuesday August 27, 2024 @11:33AM (#41368707)
We have workshop planned for the middle of September, after that, I hope things will start to stabilize a bit. I already started documenting some stuff in examples app, sort of self-documenting integration tests. Will have normal docs too, of course

https://s.tonsky.me/share/Screenshot%202024-08-27%20at%2017....

Re:Local First, Forever on Tuesday June 25, 2024 @07:39AM (#40787225)
Still a state sync though
Re:Local First, Forever on Tuesday June 25, 2024 @07:38AM (#40787215)
You can just sell apps for one-time fee. Used to work fine in the past
Re:Local First, Forever on Tuesday June 25, 2024 @07:35AM (#40787184)
Yeah but does it solves conflict for you?
Re:Local First, Forever on Tuesday June 25, 2024 @07:33AM (#40787169)
Hi :)
Guys I need names of cities and cinemas
I don’t think there is a single movie theater in Detmold. Which one are you missing?
Re:Jepsen: Datomic Pro 1.0.7075 on Thursday May 23, 2024 @11:57AM (#40456337)
The idea was that it allows you to add something first and then build on top of it, all in the same transaction
Yeah, except that it shows like only 20 movies and 4 showtimes. I want to see everything
Damn Tübingen! You are the _third_ person who tells me about it! I’ll find a better source soon, hold on

Older »