Better HN
topnewbestaskshowjobs
Log inSign up

U1F984

333 karma · joined Apr 26, 2021 (5y ago) · 47 submissions

Submissions

comment 2mo ago · link · parent

Not all, but definitely on some. I also find it very off-putting.

comment 7mo ago · link · parent

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

3.

Python and NixOS: A match made in hell(crescentro.se ↗)

1 points · by U1F984 · 1y ago · discuss

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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/

comment 2y ago · link · parent

Not sure why this is down voted, I also looked into this at some point but was unable to find a solution.

comment 2y ago · link · parent

The somehow is explained quite well at the end - they discussed different approaches and why they chose the current one.

comment 3y ago · link · parent

A Java Runtime for Hello world is just 32 MB: https://adoptium.net/blog/2021/10/jlink-to-produce-own-runti...

comment 3y ago · link · parent

Also down for me.

comment 3y ago · link · parent

That's what "forced captions" are for: they will only show subtitles for the scenes where foreign languages are spoken.

comment 3y ago · link · parent

The option is only available for known devices, which should make it more difficult to pull this off.

comment 4y ago · link · parent

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...

comment 4y ago · link · parent

For Go you can use FROM scratch and save a couple more megabytes.

comment 4y ago · link · parent

There's a neat crate for that I recently found: https://crates.io/crates/pollster

17.

Netflix Should Become a Tech Company(thecodedmessage.com ↗)

2 points · by U1F984 · 4y ago · 1 comment

comment 4y ago · link · parent

Apparently it's already being taken into consideration:

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

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

22.

Grep flags – the good stuff(zwischenzugs.com ↗)

87 points · by U1F984 · 4y ago · 52 comments

23.

Hosting my static sites with Nginx(jvns.ca ↗)

1 points · by U1F984 · 4y ago · discuss

comment 4y ago · link · parent

There is the Accept-Language header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ac...

25.

Being fair about memory safety and performance(thecodedmessage.com ↗)

44 points · by U1F984 · 4y ago · 73 comments

26.

A Detailed Dive into JPEG Compression [video](youtube.com ↗)

1 points · by U1F984 · 4y ago · discuss

comment 4y ago · link · parent

Lots of interesting things in the design document: https://github.com/rui314/mold/blob/main/docs/design.md

28.

Is-even – SaaS platform for checking if number is even(github.com ↗)

2 points · by U1F984 · 4y ago · 1 comment

12