News for hackers. Stuff that matters.

Wazako

Alternatively, a much simpler CRDT solution is to flatten our tree and build a LWW underneath it. This makes it easy to debug, save, and delete the history. { “id:1”: { “parent_id”: “root”, “type”: “p” }, “id:2”: { “parent_id”: “id:1”, “type”: “text”, “content”: “text”, "position": 1 } }

Or internally: [ [HLC, “id:2”, ‘parent_id’, “id:1”], [HLC, “id:2”, ‘type’, “text”], ... ]

Merging is easy, and allows for atomic modifications without rebuilding the entire tree, as well as easy conflict resolution. We add the HLC (clock, peer id). If the time difference between the two clocks is significant, we create a new field [HLC, id, “conflict:” + key, old_value]

What is absurd is finding yourself paying 30% on every digital item purchased on a smartphone app. It would never even occur to us that Microsoft takes a 30% margin on Steam, yet that is what happens on webtoon apps.
Re:Progressive JSON on Sunday June 01, 2025 @08:32AM (#44150408)
Slow llm generation. A progressive display of a progressive json is mandatory.
Yet deepseek has shown that more dialogue increases quality. Increasing speed is therefore important if you need thinking models.
It was designed by cloduflare for serverless use. There's no dependency on node, as cloudflare is based on web standards, so it was designed around warper for browser-native js modules (Request, crypto, ... hence the low dependency), which is why it integrates well with bun and deno.
Re:Svelte5: A Less Favorable Vue3 on Saturday March 08, 2025 @06:19AM (#43299301)
It's different with solid-js, which is more of a library than a real framework.

The solid-js surface is relatively small, the jsx / css is identical to the native, the Hook simply builds the DOM once. solid-js therefore brings above all a createSignal that adds an observer where it is called in the DOM to directly update the DOM accordingly.

You might think of solid-js more as a signal primitive than a real framework.

Re:JavaScript dates are about to be fixed on Sunday August 25, 2024 @07:06AM (#41346376)
This reminds me of crunchyroll, the anime website, which uses local utc us with fixed times for episode releases. This creates confusion in the rest of the world, because for 2 weeks, there's a time difference until daylight saving time changes in the US.
Re:I avoid async/await in JavaScript on Tuesday August 13, 2024 @06:50PM (#41240674)
What's wrong with making Promise.all ?

try {

  const [user, session] = await Promise.all([
    getUser(userId),
    getSession(sessionId)
  ])
} catch (err) { … }
Re:Leaving Rust gamedev after 3 years on Friday April 26, 2024 @07:15PM (#40175377)
But when you look at the disaster that was c++ for cloudflare, and the switch to rust.

This is precisely the argument given against rust for video games: too much typing induced by memory safe, which is too restrictive.

Is there any use if your c code works, the advantage of rust over wasm is the easy-to-use packages (which is a pain in c++), and the ease with which you can make a wasm project with wasm-pack that generates the wasm, js and ts interface.

There really are a lot of libraries that support wasm, it's even a problematic point raised in the article on bevy, with wasm support (so webgl) limiting the api.

Re:Leaving Rust gamedev after 3 years on Friday April 26, 2024 @05:43PM (#40174666)
Use Rust if crashes or memory bugs are not an option. For everything wasm, Rust is much more pleasant with good libraries than the competition.
Re:Building Meta’s GenAI Infrastructure on Tuesday March 12, 2024 @06:49PM (#39685866)
meta has the Quest. It's not so bad that they're looking to create an LPU for their headset to offer local play.
Re:What Happened with the Web Monetization API? on Tuesday February 06, 2024 @07:52PM (#39283094)
It's one thing to be able to track a transaction, but it's a real problem that a name exchange is mandatory for micropayments.

I don't know if I'm the only one, but I can't see myself giving my identity for 10c to buy blog articles.

Especially since first and last names are a powerful tracking tool that's not as easy to change as your IP address.

Re:What Happened with the Web Monetization API? on Tuesday February 06, 2024 @02:50PM (#39279575)
How do you centralize without having a government requiring KYC?
Re:Gemini – Google DeepMind on Wednesday December 06, 2023 @07:10PM (#38551219)
By this I mean that Microsoft had the positioning of an iPhone in a not-so-great version. Where as Android relied on the "Open source" and free side for manufacturers to adapt to their phones, even if Google's services remained proprietary.

Can we really talk about timing, when it's above all a problem of a product that didn't fit the market?

Re:Gemini – Google DeepMind on Wednesday December 06, 2023 @06:30PM (#38550920)
It's not a question of timing, but of Microsoft's brand image (Internet Explorer) and the fact that Android was already open source.
Re:Cory Doctorow: Interoperability Can Save the Open Web on Wednesday September 06, 2023 @06:27AM (#37403294)
For VOD platforms. it would be a dream if one day netflix / disney+ / AppleTV / ..., would offer iframes, and I could use other sites that offer me their own catalog browsing and recommendation ergonomics that are not limited to a catalog with their walled garden editorial choices.

Why have iframes lost so much use?

You have deepl to replace translate, it's incredibly better and can replace words. The only advantage of Translate is ocr camera.
Re:Apple's Reality Pro headset compromised on Friday May 19, 2023 @04:53AM (#35999418)
In the sense that it has become hostile to use. I remember when iTune and safari were user friendly on Windows. Or the iphone wouldn't be limited to a usb 2.0 port.
Re:Apple's Reality Pro headset compromised on Thursday May 18, 2023 @07:17PM (#35995648)
Isn't Time Cook ultimately like Steve Ballmer? He has continued and consolidated to build a golden prison with the construction of a monopoly and increase the money generated incredibly.
Re:The JavaScript Ecosystem Is Delightfully Weird on Thursday May 11, 2023 @10:56AM (#35903108)
typing saves so much time. Especially since the flexibility of its optionality does not restrict, and allows for really nice autocompletions.

Especially with esbuild which has made this simple and fast, one could even say it has saved javascript.

We are more in the case of adding a turnaround on footpaths to block motorbikes and other 2-wheel scooters. captcha also exists in the real world.
Re:GPT-4 on Tuesday March 14, 2023 @01:19PM (#35154929)
It's amazing what it can do to help the visually impaired in life.
Re:The internet wants to be fragmented on Sunday January 01, 2023 @10:19AM (#34206949)
What is important is, as the article says, "to be allowed to leave", this consists in having alternatives.

- The web hosting is in the cloud, but if it's easy to change it, what's the problem?

- Git a url and you can easily change the central backup server point.

If it's generalist Duckduckgo / Yandex, otherwise directly search on specialized sites (wiki, anidb, algolia, reddit, youtube, ...).
I also use Google in the same way. Google is really amazing as a recommendation engine for finding keywords. Then you just have to get those keywords and put them in a real search engine.
Wasn't it msn messanger ?
DVDs with 20s of ads not passable?
I don't know if I'm the only one, but the biggest problem of google (which is the same as microsoft), is the unified account system. It's very complicated to switch from business to personal accounts. And that creates a lot of friction for me.
Re:Upgrade to Linux on Thursday October 06, 2022 @08:45PM (#33116050)
Isn't there an unbreakable linux that updates itself, and where you can create VMs to add linux or win applications? This is what I like about Windows / mac, I don't have to maintain anything and risk breaking my PC.
Re:The deception of “buying” digital movies on Tuesday October 04, 2022 @01:07PM (#33083352)
The problem with all these stores like Steam, Playstore, Apple store, Nintendo Store, ... where you buy a license and not a file.

Older »