HNHacker News
TopNewBestAskShowJobs

zajio1am

2,637 karma · joined June 15, 2019

submissionscomments
zajio1am··on Should you normalize RGB values by 255 or 256?
When converting between different depths, the 255-like approach has a property that minimum maps to minimum and maximum maps to maximum.
zajio1am··on Digital Identity Management in Norway Is a Catastrophe
U2F token is used by one eIDAS identity provider in Czechia.
zajio1am··on C array types are weird
> Second, many people think that the C runtime doesn't know the amount of memory allocated to an array, but this is actually false. It's just the C abstract model that for some reason chose to not expose this information.

There are some counterpoints:

1) Conceptually, allocated memory block and data structure / array in it are not related. You can allocate memory block and then subdivide it to multiple different structures / arrays. You can implement sub-allocators.

2) Heap allocator does not need to store exact length of allocated object. For example, it could have several fixed-length slab allocators for smaller objects, select matching one during malloc() and use address range to find slab during free().

3) Array can be also on the stack (VLA or alloca()).

4) Arrays can be also on memory allocated outside of C library allocator (e.g. mmap()).

zajio1am··on 49,000 Lake Tahoe residents will lose power to data centers
These constraints, at least for electricity, are usually in end distribution networks, not in production. High-powered datacenter would get (and pay for) its own substation/transformer from higher-voltage network, thus avoiding the limitation.
zajio1am··on Setting up a free *.city.state.us locality domain (2025)
The main point of ENUM was compatibility with open SIP, unfortunately that never really happened and most SIP operators do not accept incoming calls from public internet (and do not route outgoing calls based on ENUM).
zajio1am··on I hate soldering
IMHO soldering two wires together (or wires to connectors) is much harder and requires higher dexterity than through-hole soldering on PCB, which is really easy. PCB holds parts in place and directs solder where it belongs.
zajio1am··on Cloudflare to cut about 20% of its workforce
You pretty much do that with wireless devices as a wISP.
zajio1am··on Zuckerberg 'Personally Authorized and Encouraged' Meta's Copyright Infringement
Well, Meta also shared their AI models freely with world
zajio1am··on Maladaptive Frugality
Even if the house prices stayed the same, it would make sense to keep the low interest debt and invest in other assets that have higher yield, like shares.
zajio1am··on Belgium stops decommissioning nuclear power plants
Power distribution is a natural monopoly, power production is commodified/competitive business.
zajio1am··on Generative AI Vegetarianism
As a vegetarian, i am a bit annoyed by this term as i do not want to be associated with AI moral panic.
zajio1am··on Generative AI Vegetarianism
And internet was full of human slop already before LLMs came.
zajio1am··on Acetaminophen vs. ibuprofen
Here in EU, in order to take official sick days, i would have visit doctor to get confirmation document. Which means that for simple cases i would rather take unofficial sick days (sometimes provided by employer, like in US) or just leave.
zajio1am··on TN's Charlie Kirk Act bans student walkouts, protects conservative speakers
Why? Disrupting a speaker to the level that prevents them speaking (or prevents listening) is an action that clearly infringes on rights of others and restricts freedom of speech. Regardless of content.
zajio1am··on Programming Used to Be Free
Programming is free if you do not consider price of your time. If you consider it, it is much higher than AI-associated costs. And even with AI-associated costs, it is still much cheaper than most other engineering professions, where physical realization is orders of magnitude more costly.
zajio1am··on Apple update looks like Czech mate for locked-out iPhone user
> As a non-English speaker I can really relate to this.I think the real mistake was Apple allowing to enter a non-ASCII password in the first place.

As a non-English speaker (Czech, actually), it is clear to me to not use non-ASCII characters in passwords, or generally not use characters that are at different position on default English keyboard and locally used keyboards, i.e. use only ASCII alphanumeric chars except 'Y' and 'Z'.

As keyboard setting is per-user setting, keyboard may be different on login screen than on regular desktop (and once-login password prompts).

zajio1am··on The threat is comfortable drift toward not understanding what you're doing
A related quote from A. N. Whitehead:

> It is a profoundly erroneous truism ... that we should cultivate the habit of thinking of what we are doing. The precise opposite is the case. Civilization advances by extending the number of important operations which we can perform without thinking about them.

zajio1am··on German implementation of eIDAS will require an Apple/Google account to function
Note that for eIDAS 1, a Czechia e-identity provider uses U2F tokens.
zajio1am··on German implementation of eIDAS will require an Apple/Google account to function
Why not just use U2F or certificates on crypto-tokens?
zajio1am··on Big-Endian Testing with QEMU
As bits are generally not addressable / not ordered, it makes no sense to call CPU architecture big/little bit-endian. That makes sense only for serial lines/buses.
zajio1am··on Big-Endian Testing with QEMU
'Arabic' numbers comes originally from India, from Brahmi numerals. And Brahmi script was left to right. So big-endian was 'normal' even originally, it was Arabs who kept left-to-right numbers within right-to-left script (and therefore use little-endian relative to direction of Arabic script).
zajio1am··on Big-Endian Testing with QEMU
There is one reason not mentioned in the article why it is worth testing code on big-endian systems – some bugs are more visible there than on little-endian systems. For example, accessing integer variable through pointer of wrong type (smaller size) often pass silently on little-endian (just ignoring higher bytes), while read/writ bad values on big-endian.
zajio1am··on A million new SpaceX satellites will destroy the night sky
You can do radiative cooling in space (you just need big radiators). You cannot do that reasonably in desert.
zajio1am··on Britain today generating 90%+ of electricity from renewables
The same system is used all over EU.
zajio1am··on Google details new 24-hour process to sideload unverified Android apps
I could easily change mobile phone OS to ungoogled one (e.g. LineageOS) or fully Linux, than changing jurisdiction to non-EU.
zajio1am··on Anthropic takes legal action against OpenCode
Is this relevant for people that use regular (per-token credit-based) API key?
zajio1am··on Starlink Mini as a failover
When here is local power outage and everyone switches to 4g/5g, it is overwhelmed and unusable.
zajio1am··on Asian governments roll out 4-day weeks, WFH to solve fuel crisis caused by war
No. EU laws are of two kinds: directives and regulations. Directives work roughly as you describe, while regulations have direct effect like regular laws.
zajio1am··on Don't post generated/AI-edited comments. HN is for conversation between humans.
> Wouldn't it work better to just write the thing in whatever language they can actually write in and then do a straightforward translation in a single pass?

Nontrivial translation tools are AI(neural net)-based tools (although not necessary LLM). Whole transformer neural net architecture was originally designed for translation.

zajio1am··on “Car Wash” test with 53 models
Maybe that is because i am non-native speaker, but 'garage' i understand primarily as a place where car is parked, not a car repair shop. So it makes perfect sense to walk there in order to repair the car (that is already there).
← PreviousPage 2 of 34Next →