Better HN
topnewbestaskshowjobs
Log inSign up

divbzero

11,264 karma · joined Oct 8, 2017 (9y ago) · 2,949 submissions

Hello, world.

  #!/bin/bash
  name=chris
  user=divbzero
  email=${name}@${user}.com
  code=https://github.com/${user}
  website=https://${user}.com
[ my public key: https://keybase.io/divbzero; my proof: https://keybase.io/divbzero/sigs/o74zfvmaYGlCRV0hSUGRNdI1y03rbNP65tL072qROtg ]

[ my kismet code: ef956b ]

Submissions

331.

Apple's Introduction to Liquid Glass(daringfireball.net ↗)

4 points · by divbzero · 1y ago · 1 comment

332.

Health Secretary RFK Jr. abruptly fires CDC vaccine advisory panel(statnews.com ↗)

16 points · by divbzero · 1y ago · 1 comment

comment 1y ago · link · parent

> I learned a lot living at people's places afterwards

The “Community Support” section was my favorite. I would love to hear you elaborate on experiences and lessons you learned while staying with others.

comment 1y ago · link · parent

Interestingly, the default <marquee> doesn’t appear as smooth as a CSS animation would be?

Playing with the scroll speed makes it feel smoother:

  <marquee scrolldelay="50" truespeed>scroll faster than default</marquee>

comment 1y ago · link · parent

This is a valid concern, but checking for uniqueness with a hash is fairly straightforward and the new implementation reuses a strset struct that has been in use since 2020:

https://github.com/git/git/blame/v2.49.0/strmap.h#L205-L218

comment 1y ago · link · parent

You’re right, OP got the math wrong. It should be:

  1,440 boards × 96 GB/board = 138,240 GB

comment 1y ago · link · parent

There seems to be a lesson here about the balance between premature vs. anticipatory optimization. We’re generally warned against premature optimization but perhaps, as a rule of thumb, we should look for optimizations in frequently-called functions that are obvious and not onerous to implement.

comment 1y ago · link · parent

The performance improvement that GitLab contributed to Git is slated to be released with v2.50.0:

https://github.com/git/git/commit/bb74c0abbc31da35be52999569...

comment 1y ago · link · parent

I always assumed that compiling code to run in the browser would be slow, but OP points out that this is not the case. As the Emscripten project describes:

> Thanks to the combination of LLVM, Emscripten, Binaryen, and WebAssembly, the output is compact and runs at near-native speed.

https://emscripten.org/

comment 1y ago · link · parent

You can connect iOS Notes with any IMAP server. This supports a reduced feature set (no embedded images, tables, or audio) but does allow for self-hosting.

comment 1y ago · link · parent

Apple Notes is used not only with onscreen keyboards in iOS, but also with physical keyboards in iPadOS and macOS, where familiarity with Markdown input could make it faster than shortcut commands.

comment 1y ago · link · parent

Related discussion from last week:

IRS Direct File - https://news.ycombinator.com/item?id=44131901 - May 2025 (62 comments)

comment 1y ago · link · parent

Will companies be forced to design products that can be repaired in any state? Or are there ways they can still restrict repairs for states without right-to-repair laws?

comment 1y ago · link · parent

If you thought Rogue One was cool, then yes you should definitely try Andor.

345.

Chinese paraglider survives accidental 8k-metre-high flight above the clouds(theguardian.com ↗)

4 points · by divbzero · 1y ago · 1 comment

346.

HHS cancels nearly $600M Moderna contract on vaccines for flu pandemics(statnews.com ↗)

4 points · by divbzero · 1y ago · discuss

comment 1y ago · link · parent

> They dropped 60 eggs each from three different heights (8, 9, and 10 millimeters) onto a hard surface in three different orientations: horizontal, vertical on the sharp end, and vertical on the blunt end.

I find it hard to extrapolate from this experimental setup to an egg drop competition. A ~1cm drop onto a hard surface is quite different from a ~10m drop in protective packaging.

comment 1y ago · link · parent

In 1995, fifty years after the bombing of Nagasaki and Hiroshima, and forty years after the signing of the Russell–Einstein Manifesto, the Pugwash Conferences and Joseph Rotblat were awarded the Nobel Peace Prize jointly "for their efforts to diminish the part played by nuclear arms in international politics and, in the longer run, to eliminate such arms."

comment 1y ago · link · parent

醬油膏 = soy sauce paste

It’s one of my favorites. I try to find ones without much additives and refrigerate after opening to keep it fresh.

comment 1y ago · link · parent

ITBS = Iowa Test of Basic Skills

It took me several seconds to recognize this acronym for a test I took decades ago but haven’t thought about since.

comment 1y ago · link · parent

Well, Notepad is introducing AI support which already feels like scope creep to me…

https://support.microsoft.com/en-us/windows/enhance-your-wri...

comment 1y ago · link · parent

cal doesn’t offer an option to use the 1582 reform date, but looks like it does handle the 1752 adoption in Great Britain correctly:

  $ cal 9 1752
     September 1752
  Su Mo Tu We Th Fr Sa
         1  2 14 15 16
  17 18 19 20 21 22 23
  24 25 26 27 28 29 30

comment 1y ago · link · parent

> Note that modern compilers like gcc or clang will produce something like is_leap_year2 from is_leap_year1, so there is not much point in doing this in C source, but it might be useful in other programming languages.

The optimizations that compilers can achieve kind of amaze me.

Indeed, the latest version of cal from util-linux keeps it simple in the C source:

  return ( !(year % 4) && (year % 100) ) || !(year % 400);
https://github.com/util-linux/util-linux/blob/v2.41/misc-uti...

comment 1y ago · link · parent

> (by now you probably figured out that I am not very popular ar work)

I bet your colleagues appreciate it if you’re similarly strict about ending meetings on time.

comment 1y ago · link · parent

It seems to make sense if you interpret it as:

10am c.t. = 10am with extra time

10am s.t. = 10am without extra time

comment 1y ago · link · parent

This was unmistakably written by a human.

comment 1y ago · link · parent

Walk Score can provide an estimate of walkability for any given address.

https://www.walkscore.com/

1
111213
99