HNHacker News
TopNewBestAskShowJobs

b3orn

508 karma · joined March 9, 2018

submissionscomments
b3orn··on Amazon is trying to trick me into signing up for Prime services
But they're already a customer, just a customer without a subscription.
b3orn··on Clay (short for C Layout) is a high performance 2D UI layout library
Probably, but you'd have to write a custom renderer for it.
b3orn··on About the browser choice screen in the EU
> all applications need to look like rounded squares.

Looking at the screenshots there are several browsers (Chrome, Edge, Brave and even Safari) for which the icon neither has a background nor rounded corners.

b3orn··on Recent Performance Improvements in Function Calls in CPython
It makes a slight difference on my system, python 3.12.0

    In [1]: def test_1():
    ...:     i = 10_000_000
    ...:     r = 0
    ...:
    ...:     while i>0:
    ...:         i = i-1
    ...:         r += min(i, 500)
    ...:
    ...:     return r

    In [2]: def test_2():
    ...:     i = 10_000_000
    ...:     r = 0
    ...:     local_min = min
    ...:
    ...:     while i>0:
    ...:         i = i-1
    ...:         r += local_min(i, 500)
    ...:
    ...:     return r

   In [3]: %timeit -n 1 -r 10 test_1()
   2.14 s ± 58.4 ms per loop (mean ± std. dev. of 10 runs, 1 loop each)

   In [4]: %timeit -n 1 -r 10 test_2()
   1.94 s ± 47.8 ms per loop (mean ± std. dev. of 10 runs, 1 loop each)
b3orn··on tolower() with AVX-512
The code uses unaligned load and store instructions, so it should be possible to trigger memory access to unmapped addresses.
b3orn··on Europe is in danger of regulating its tech market out of existence
They don't want to link to their competition, so they'd rather not link to their own service and if users complain they tell them to complain to the EU.
b3orn··on Beyond Clean Code
I always took it more as readable code.
b3orn··on Beyond Clean Code
In my opinion the only good part of that book is the title.
b3orn··on Understanding a Python Closure Oddity
It's unrelated to the for loop, the for only changes the variable, there are other ways you can do that and you'll run into the same "oddity"

    def test():
        n = 0
        def a():
            return n
        n = 1
        def b():
            return n
        return a, b

    a, b = test()
    a() == 1
    b() == 1
b3orn··on Water is bursting from another abandoned West Texas oil well, continuing a trend
Most gas in Germany comes via pipelines from Norway, the Netherlands and Belgium. LNG is at around 10%.

https://www.bundesnetzagentur.de/DE/Gasversorgung/aktuelle_g...

b3orn··on Detecting a PS2 Emulator: When 1*X does not equal X
In that case I'm sure current FPGAs are already capable of emulating the MIPS CPU of a PS2.
b3orn··on Detecting a PS2 Emulator: When 1*X does not equal X
Why would you want to emulate an old crappy MIPS CPU using a relatively expensive FPGA? The whole idea of emulating old consoles is to be independent of the hardware so you can play your old games on your computer or phone.
b3orn··on Engineering for Slow Internet
I'm getting almost 2MB (5MB uncompressed) just for a google search.
b3orn··on Show HN: Sum (algebraic) types for C in one 100 line header
Yes, but maybe I want to shoot myself in the foot or am willing to take the risk, it's my computer and nobody can tell me what to do with it. That's why I like C. I've been writing Python for almost two decades now, all the new languages are trying even more to tell me how to do things or that I'm doing them wrong, screw that, I don't want to be coddled or patronised by the language I'm using, I'm writing C.
b3orn··on Inventing Cyrillic
Your example using Turkish isn't that good. Turkic languages like Turkish or Kazakh switched to a latin alphabet because the arabic or cyrillic writing systems didn't suit them. The cyrillic script was explicitly created for slavic languages, so there's no need for slavic languages to switch to a latin based alphabet.
b3orn··on Glider – open-source eInk monitor with an emphasis on low latency
Interestingly they're also looking from Smalltalk developers, didn't expect that.
b3orn··on Zimtohrli: A New Psychoacoustic Perceptual Metric for Audio Compression
Öhrli is actually the swiss german diminutive of Ohr (ear). Swiss german uses -li a lot for diminutives, whereas standard german uses -chen or -lein, the vowel of them stem is turned into an umlaut Ohr -> Öhrli/Öhrchen/Öhrlein.
b3orn··on Debugging Tech Journalism
In my opinion there are lots of good looking but badly researched videos on YouTube.
b3orn··on Synth wars: The story of MIDI (2023)
MIDI 2.0 has attributes in note-on messages. Attribute type 0x3 gives you 7 bits for a note in semitones and 9 bits for a fractional part of a semitone, so a resolution of around 0.2 cents.
b3orn··on Synth wars: The story of MIDI (2023)
> you don't get 32 bits of resolution in your CCs with MIDI 2.0

The standard (section 7.4.6) defines 32 bit resolution for CCs.

b3orn··on California exceeds 100% of energy demand with renewables over a record 30 days
https://energy-charts.info and https://app.electricitymaps.com/map
b3orn··on Here's a puzzle game. I call it Reverse the List of Integers
None of the implementations support negative numbers, but the rules say integer which includes negative numbers, so that should be a legal move.
b3orn··on Here's a puzzle game. I call it Reverse the List of Integers
Interesting, it appears I've encountered an impossible combination of numbers: [2, 5, 1, 3]

The only possible move is to add 1 and 3. Can't ever split a 2 as that would result in [1, 1], can't split the 5 because that would be [4, 1] or [3, 2], can't split the 3, as that would be [2, 1] or [1, 2], can't add the 5 to anything as that would be larger than 5.

b3orn··on DECT NR+: A technical dive into non-cellular 5G
DECT uses 1880–1900 MHz in Europe, other countries use similar frequencies, that's not an ISM band.
b3orn··on Tata joins hands with PSMC to build India's first 12-inch fab
It's most likely 300mm, otherwise they'd have to make their own wafers.
b3orn··on Antarctic English
Keeping up with words is the job of dictionaries (pretty sure those exist for English), not of language regulation. For German language regulation means stuff like you're allowed to write Foto instead of Photo, but always Physik and never Fysik, or if you combine words like Schiff and Fahrt into Schifffahrt should it be written with two or three f, rules on when to use ß instead of ss and so on.
b3orn··on Disconnecting the Playstation 5 from Internet installs DVD games faster
The patch download shows up as a download once you put a disc in for installation. The console still installs from disc and you can usually play without the patch. I actually had a game that failed to install from disc, the replacement disc worked fine. So unless this is something very recent I have no idea why an internet connection would have an impact on disc installations.
b3orn··on The Ugliest Airplane: An Appreciation of the Transavia AirTruk
Was watching Goldfinger a few weeks ago and had to think of this plane when I saw the title. The Fiat Multipla of airplanes.
b3orn··on US nuclear-fusion lab enters new era: achieving 'ignition' over and over
If I'm not mistaken it's used instead of actual nuclear weapons tests. Wikipedia says the following about the NIF

> It supports nuclear weapon maintenance and design by studying the behavior of matter under the conditions found within nuclear explosions.

b3orn··on Advent of Code 2023 is nigh
This is what I did and then was confused why everyone else I talked to thought it was a hard problem.
← PreviousPage 3 of 8Next →