News for hackers. Stuff that matters.

U1F984

Re:RTK reports token savings, but our cost benchmarks disagree on Friday September 11, 2026 @11:01AM (#49659641)
Not all, but definitely on some. I also find it very off-putting.
Re:WASM is not quite a stack machine on Tuesday April 28, 2026 @06:25AM (#47932533)
Java does use dup in some cases, e.g.

   public static void test() { 
      new Object();
   }

         0: new           #2                  // class java/lang/Object
         3: dup
         4: invokespecial #1                  // Method java/lang/Object."<init>":()V
         7: pop
         8: return
Re:I Ported SAP to a 1976 CPU. It Wasn't That Slow on Monday July 07, 2025 @03:28AM (#44487614)
From the article: Lookup tables are always faster than calculation - is that true? I'd think that while in the distant past maybe today due to memory being much slower than CPU the picture is different nowadays. If you're calculating a very expensive function over a small domain so the lookup fits in L1 Cache then I can see it would be faster, but you can do a lot of calculating in the time needed for a single main memory access.
I can't find anything about these low gravity regions (Google redirects me to your post) but they sound interesting. Can you share some reading material?
I checked on my OnePlus 7 and indeed it's possible by default. There is a setting to disable access to the notification (/setting) drawer from the lock screen at least in Oxygen OS though.
Re:How to install Linux from a Windows installer on Wednesday May 01, 2024 @08:15AM (#40222155)
This is actually possible. There's Linux tools to extract the WIM files from a Windows installation iso. You have to create the appropriate partition setup (EFI partition with bootloader, NTFS partition with the extracted files), and for configuration of the bootloader I created https://github.com/U1F984/create_bcd/
Not sure why this is down voted, I also looked into this at some point but was unable to find a solution.
Re:Java String Interpolation final in Java 23 on Saturday January 13, 2024 @09:01AM (#38979953)
The somehow is explained quite well at the end - they discussed different approaches and why they chose the current one.
A Java Runtime for Hello world is just 32 MB: https://adoptium.net/blog/2021/10/jlink-to-produce-own-runti...
Re:GitHub is down? on Monday March 27, 2023 @08:20AM (#35325726)
Also down for me.
Re:If you can read this, your browser captions are broken on Wednesday December 21, 2022 @03:36AM (#34078136)
That's what "forced captions" are for: they will only show subtitles for the scenes where foreign languages are spoken.
The option is only available for known devices, which should make it more difficult to pull this off.
Same here, three minutes ago. Maybe their Key was leaked as well? I recall a similar issue happened with Firebase: https://cybernews.com/security/exposed-google-keys-leaves-bi...
Re:Minify your container on Wednesday August 03, 2022 @05:44PM (#32336957)
For Go you can use FROM scratch and save a couple more megabytes.
Re:Rust without the async (hard) part on Thursday June 09, 2022 @11:38AM (#31682574)
There's a neat crate for that I recently found: https://crates.io/crates/pollster
Apparently it's already being taken into consideration:

> The optimization should work with Project Loom when it becomes available.

Yeah, it's a requirement by law, tracking must be disabled unless explicitly allowed. Accepting all must be as easy as denying. However a lot of sites offer an easy one-click accept all and the deny all is behind a two step "configure" + "confirm selection", sometimes even with a fake save timer.
Does anyone have a recommendation for a remote desktop software for Linux? Specifically one that also supports using a browser, video, etc. RDP (server) with proper GPU acceleration works great for this, but unfortunately is Windows only.
Re:Server-Sent Events: an alternative to WebSockets on Saturday February 12, 2022 @05:44PM (#30317128)
The extra setup step for websocket should not be required: https://caddyserver.com/docs/v2-upgrade#proxy

I also had no problems with HAProxy, it worked with websockets without any issues or extra handling.

Re:Open-Sourcing our Firmware on Friday January 21, 2022 @02:18PM (#30028593)
Lots of interesting things in the design document: https://github.com/rui314/mold/blob/main/docs/design.md

Older »