HNHacker News
TopNewBestAskShowJobs

xxs

3,988 karma · joined April 3, 2014

submissionscomments
xxs··on Value Classes Still Need Compiler Sympathy
The object header overhead was always present and expensive in massive arrays - the classic example would be the Point class that has two "double x, y". Realistically the value classes make sense most (only) if they are placed in arrays. In order to use tons of points you'd end up having two arrays, double[] x, double[] y... or go even with direct buffers.

Personally, I don't care about the tiny optimizations possible in cases of just using few of them, e.g. Integer, as int[] is an option, and even writing custom maps where the keys are placed the said array ain't difficult.

As for performance, often times I had to PrintAssembly (the article mentions that at the bottom) to ensure the compiler did its bests, e.g. optimizing away boundary checks, inlining calls, etc.

xxs··on Tooltips need a delay, and then they need to skip it
a rather poor idea - esp. the frame part, mouse movement is not related to the display frame (rate). The latter can be rather high, e.g. 240Hz which is 8ms. Having a set delay and be in the boundaries (and not leaving it) is a significantly easier solution and easier to test too.

Overall the delay in tooltips (and configurable) has been a feature since the 90s (could set the delay in millis in some UI frameworks)

xxs··on Why some US restaurants are banning tips
I have not been in a place in Europe where the tips would be rejected. However, universally they are not the norm or expected.

Also about the $10 - they would need to gather quite a few more dollar notes and spend time finding a cash exchange bureau. Else the note is just a memento of a weird American.

In some EU countries the tips have to be counted as salary and income (+social) tax paid, or even they have to be declared as revenue to the restaurant along with the VAT (19-25%) going straight to the state. Of course, when paid in cash - that rarely happens. The point is that the provision exists in the law (so the tips are not unheard of)

xxs··on Why some US restaurants are banning tips
A massive price difference would be the drinks (also the most of the profit) - realistically opening a bottle of expensive wine vs the bog standard cabernet serves as no proxy to anything.

Likely certain single malts vs jim beam.

xxs··on New EU-wide product repair rules come into force
I don't know of any PC motherboard to be 20-layers. "Asus ROG Crosshair X870E Dark Hero" is like 650 euro and it's "merely" 8 layers. Edit: "MSI MEG X870E Godlike" is 1200 euro or so and 10 layers.
xxs··on New EU-wide product repair rules come into force
TV, unfortunately, are the worst offenders in most cases as they cannot be reliably opened.

Things that are on the not hard scale to fix - cleaning robots, inkjet printers (with fill-in ink), laptops (incl. board repairs as long as they are not a BGA), desktop pc, mowing robots, mowers (all 2 and 4 stroke variants), most battery tools (drills, sanders, saws, etc.). Overall stuff that can opened reliably, even if that requires specialized tools like bearing pullers or impact wrenches.

Things that are hard - anything that uses glue as the prime assembly fastening choice, e.g. TVs and monitors (or just plastic clips). Cheap plastics (ABS) bodies are annoying as well. Fridges, no way to refill or fix the compressor. Serialized components that need specialized tools/software after being replaced.

In that regard that would be my complaint - ease of disassembly and clearly marked parts, exploded views, schematics. Spare parts. Personally, I'd spend half a night to repair 30-40euro device w/o any documentation, just b/c I can -- but that shall not be the norm.

xxs··on New EU-wide product repair rules come into force
>demanding that they support hardware indefinitely is unreasonable.

nobody demands that - it's more of the fact the hardware is locked and serialized, e.g. it won't accept a blue tooth module unless it's unlocked with proprietary software.

The hardware manufacturers spend quite the effort, so the devices are not open and require designated tools for minor fixes. I can imagine it not wanting to perform a warranty repair but that's the end of it.

xxs··on New EU-wide product repair rules come into force
The intellectual property is not some god given right unlike air and water. There is little need not to support a decade old hardware and effectively turning the said hardware to a door stop, or a landfill.

Btw, it's difficult to believe the post is a good faith argument.

xxs··on New EU-wide product repair rules come into force
the main issue is that's an ipad and it's locked. In contrast - a 15y+ laptop can be used (after few upgrades - i5-560M, 8GB RAM, 500GB SSD, AC-8260) to do office work: it runs the latest Firefox and Open Office + googledocs and friends without too much trouble.
xxs··on Canada will match US tariffs 'dollar for dollar' as trade talks break down
Geography as in softwood forests, instead of the iconic maple leaf. In no way Canada would be importing 30%+ of its construction timber from the US. Canada is a major softwood timber exporter.
xxs··on Canada suspends trade negotiations with USA and match tariffs dollar for dollar
Given "Donald" reference is beyond obvious, same if you know anything about trade, geography or housing issues.
xxs··on Aaron Swartz was prosecuted for scraping, while Meta does it without consequence
brand new account and all that...
xxs··on Claude writing a macOS driver for my obscure HP printer built only for Windows
requiring a full blown VM (with a different OS) to implement a driver (normally that would work in ring-0 along with the original OS) is not pedantry.

for instance the 'windows' part is also entirely nonsensical as the printer works on a default mint installation w/o any issues. The "obscure" part is weird as you can just buy the printer online as well.

xxs··on Meta's blockbuster trial draws parallels to big tobacco
The examples don't hold in most jurisdictions (except for the stock market and if short sells are allowed).

All of the three categories are defined as gambling in pretty much all jurisdictions across the globe. However, they are classified as different types, e.g. roulette is closer to slots than poker is. Then poker can be "cash tables" vs "tournament". The main classifier difference is "game of chance" vs "game of skill", yet there are lots of nuances.

xxs··on Asynchronous I/O in DuckDB: Work, Thread, Work
most likely - they read large chunks and decode them
xxs··on Asynchronous I/O in DuckDB: Work, Thread, Work
I can't say it's 'deep' in any way, e.g. what type of queue is that? Another part - utmost importance to keep async threads fully busy - that doesn't address what kind of disk subsystem is and how it deals with random reads.
xxs··on How I use LLMs to learn complex topics
Learning programming languages is quite trivial. Many years ago I counted 16 that I had used professionally, now they are more.

It takes way more time to master and be very comfortable with a language due to its ecosystem, though. Some languages are more likely to click with a person, yet underneath they are all the same (minus the functional languages that form their own group), e.g. some performance issues may require looking at the generate assembly code.

xxs··on Oracle bans AI-generated code from OpenJDK
if you have a method "void x(int i)", and change it to "void x(long i)", it will cause NoSuchMethodError if the code is not recompiled, i.e. if it's a dependency on a jar file. Likewise when there were methods in URLConnection that returned (or take) int for content-length, it would not be possible to convert them to long by just changing the existing signatures.

The same applies to having a method "void x(String s)", it cannot be changed to "void x(Object s)" (even though all the code would compile with auto downcast) but both methods have to co-exist being overloaded. There is more to the binary compatibility but I'd leave it here.

The way to do it is keeping the existing public (and protected) methods (&fields), possibly deprecating them, along with introducing new ones. Effectively any removal of anything that has been made accessible, public mostly, is forbidden.

Personally, whenever I had to maintain library code I stuck to the same principle, so folks could grab a new version w/o worrying or doing any changes on their own.

xxs··on Oracle bans AI-generated code from OpenJDK
like the sibling tells, a massive amounts of the enterprice software does runs on java
xxs··on Oracle bans AI-generated code from OpenJDK
>it has left the “move fast and break things

java never had that phase. If anything it had a full binary class (not even source, e.g. long and int are not compatible on binary level) compatibility. Generally you can take an application from '98 and run it nowadays.

It's only recent changes (jigsaw in java9 mostly) that were made them to drop some of that part.

xxs··on Almost no skill required to cook a steak
8minutes, that's just pure waste; even medium rare (which is hardly tolerable) is 56-57C. Also cooking the steak without any salt is travesty (that should not be an optional step)
xxs··on Helsinki Hacker News Meetup
Tallinn - then take ferry
xxs··on Helsinki Hacker News Meetup
sounds about right, people with 64 with just drink the (supposedly) free beer and not talk until much later.
xxs··on ICE Collected Nearly 1M People's DNA Last Year–Including Young Children
One of the downsides of the movie is the lack of exploration of entertainment - outside 6 finger person piano concerts...
xxs··on ICE Collected Nearly 1M People's DNA Last Year–Including Young Children
"several" tends to be mean [5-8] or the like. Outside blood type (which is common), name at least 3 countries that DO record (and retain) DNA samples at birth.
xxs··on Google fixed more Chrome bugs in June than over the past two years, thanks to AI
this is really not reddit
xxs··on The mean means nothing: data visualization to debug a latency problem
mean w/o std dev is just pointless, I tend to reject them altogether.

If I am to record something like queue times (as in latency), I'd have multiple samplings of both time enqueued and entries (or approx entries size), provided the queues have a reasonable size() method (e.g. not O(n) and not blocking). Even having max entries increased with lower overall latency, it'd speak of bursty behaviour.

In that regard - Recording percentiles en masse (production) is rather expensive when there are thousands of metrics. The avg/mean + max require few bytes (sub cacheline) and it can be implemented lock-free.

xxs··on UEFA and its national associations will not participate in FIFA competitions
>Hydration breaks probably won’t stay.

It was already introduced in the local women league...

xxs··on UEFA and its national associations will not participate in FIFA competitions
> proper "feast of football" as we used to say.

besides a significantly more common 4-3-3, I can't think of anything I particularly found entertaining - the waterworks, the extra VARs, the super special offside line. That's no feast. (and I can continue)

xxs··on UEFA and its national associations will not participate in FIFA competitions
An even funnier fact is that players who play for clubs in Europe (UEFA) won't be allowed to represent their countries.
← PreviousPage 3 of 34Next →