HNHacker News
TopNewBestAskShowJobs

joakleaf

1,175 karma · joined November 2, 2011

submissionscomments
joakleaf··on ASML says it sold 'absolutely nothing' in Europe in 2026
Not sure if you still conflate "poor" with "GDP/capita". If you do, that is an incorrect statement. Mississippi's GDP/capita is lower than many EU members' (e.g. Luxembourg, Ireland, Denmark... ). If you look at purchasing power parity (PPP) it also becomes a lot more muddy.
joakleaf··on ASML says it sold 'absolutely nothing' in Europe in 2026
The EU is not a single country. It feels like a lot of Americans at the moment think of the EU as a single homogeneous entity that they often also just confusingly refer to as “Europe”.

Even the EU is a lot of different countries. Some of them quite poor, and some of them wealthier also with high GDP per capita.

GDP per capita does also not give you the whole picture. It is a number. Other numbers are median life expectancy, shootings per capita, PPI, median income, average vacation days, average distance to nearest high-speed rail station, physicians per capita, average number of pupils in a school class. Unemployment rate. Air quality.

GDP per capita is one indicator among many that says something about the country’s or region’s inhabitants, but in itself it is just a measure of how much money is being moved around annually. And it is potentially quite misleading. You could have a high GDP per capita and a poor population, if all the money went to large cooperations and billionaires.

I am not saying that everything is rosy in the EU, but just that there are also other important indicators and that it is a lot more complicated than just looking at GDP per capita across the entire EU.

joakleaf··on Apple WWDC 2026
It feels fake, because they speak in a way that sounds unnatural and overelaborate.

It is so long, with so many unnecessary sentences. And it feels like everything is said at least twice; First a generic statement about the new feature. Then a specific example, or a deeper explanation of what the first generic statement was. Then a demo. And then a conclusion to the future.

The old Steve Jobs keynotes focused on the most interesting things, but now it feels like they are afraid not to include everything. So everything gets diluted.

It would help a lot if they would stop saying the same lines:"And now...", "We cannot wait for you to try our new XXXX ... ", or "We could not be more excited to...", "We are excited to... ".

"With that, now over to person-X"

joakleaf··on Accelerating Gemma 4: faster inference with multi-token prediction drafters
Seems like a pull request for vLLM was just approved a few minutes ago:

https://github.com/vllm-project/vllm/pull/41745

("Add Gemma4 MTP speculative decoding support")

joakleaf··on Apple Says Mac Studio and Mac Mini Will Be in Short Supply for Months
I disagree.

I am old enough to remember the iPod nano -- Especially the 2nd generation. They were effectively low-priced and smaller iPods.

Apple sold millions of these much much quicker than the iPods and iPod minis (which came right before). Especially in 2006, it was _the_ "Christmas gift" just before the iPhone, iPod touch and later iPad mini took over. Possibly Steve Jobs' demo where he showed how they fit into the otherwise useless small jeans pocket helped convince the world.

The iPod nano effectively wiped out the competing music player market.

The Neo reminds me of the iPod nano and iPad mini. It is smaller and cheaper version of an existing successful product.

I think the iPhone SE and E are the outliers.

joakleaf··on MacBook Neo
Technically, the Apple Developer Transition Kit Mac Mini from the Apple Silicon transition (just before the M1 release) ran on an A12Z.
joakleaf··on 80386 Protection
Enhanced mode was already in 3.0 (and I think allowed for flat addressing)

However, Win32s was introduced in 3.11 which a subset of the Windows 32-bit API from NT.

3.11 also introduced 32-bit disk access and 32-bit drivers.

Microsoft did 32-bit in steps -- it was confusing already back then.

joakleaf··on Nepal's Mountainside Teahouses Elevate the Experience for Trekkers
Mera Peak is said to be possible without any climbing experience, and it looks like the trek from Lukla is about 2 weeks. Is that true? How hard is the trek -- Looks like it requires well above average fitness level?
joakleaf··on The mineral riches hiding under Greenland's ice
Neither Europe nor EU is a single country with a single foreign policy. There are around 40 different small and large countries in Europe each with their own foreign policy, history, culture and language. Two of the countries are currently at war with each other (if we still include Russia in Europe). Historically, Europe is a continent of wars and full of disagreement, where countries have done much to benefit themselves.

I really don't know much of what is happening in China or India or how you would ever measure something as subjective as morality. The point was, that it isn't just European (or EU) nations that don't stand up to the US. Nobody really dare -- Even those other heavy-weights. So it doesn't seem fair to me to single Europe (European nations) out for not doing anything.

I would say that Europe has a lot of bad history and guilt and we know it. And there is an aspiration in many of the European countries to be better and do "the right thing" now, but it is definitely debatable whether those countries actually do it, or if we even know what "right" is.

joakleaf··on The mineral riches hiding under Greenland's ice
You are right. People went on with their lives, just as they did in many other parts of the world, but I don't think what happened is forgotten -- Not even in the US.

Btw. as far as I remember neither China, India, Russia, nor practically any other nation stopped trading with the US over the war in Iraq. Maybe I am wrong about that.

Small detail on casualties in Iraq: the estimates listed on Wikipedia range from 150K to about 1 million (1).

[1] https://en.wikipedia.org/wiki/Casualties_of_the_Iraq_War

joakleaf··on The mineral riches hiding under Greenland's ice
Yes. You are right. Unfortunately, many countries that were/are part of EU sent forces to Iraq (not all).

You mention that Asia was suspicious, but the "coalition of willing" actually included Asian countries such as Phillippines, South Korea, Japan, Uzbekistan, Singapore.

I believe the current overarching feeling in Europe is that we were mislead by the US administration more than our own politicians. Already back then, there was quite a lot of skepticism and significant doubt in the media all over Europe about the justification of that war. Also in the coalition countries.

And Indeed, there were no consequences later. But what should have been done and by whom at that point? How do you prove that it was deliberately misleading? Why would it be the job of nations of Europe or EU?

I agree that it wasn't pretty, and that the European nations and EU should have opposed more, but even as it was back then, it was not a clear "cheering on" moment. I remember having discussions about Iraq with people from Scandinavia, Italy, Spain, Germany, and France back when the invasion started. Although a large group did support the war (I think many were still emotionally affected by 9/11), I actually don't remember talking to any one of them.

The reality is that the US is the most powerful geopolitical entity and Europe is a continent consisting of many individual countries. Even the EU is a divided group of nations, and even if united would not be as powerful as the US is currently.

joakleaf··on The mineral riches hiding under Greenland's ice
This doesn't really align with CNN's view, but may apply to another even more popular US news channel that seems to be much more aligned with the current administration...

Greenland and Denmark are not the same. Greenland is a self-governed territory under the Kingdom of Denmark. The US administration wishes to take over Greenland from Denmark completely. So you should replace your headlines with "Greenland" and "Greenlanders".

Note: There have already been discussions about making Greenland independent from Denmark, but there is uncertainty over how to handle economic and defense situations. Greenland currently receives significant support (about $10000-15000 per capita yearly) from Denmark. So it is not clear how the country would run without that.

joakleaf··on The mineral riches hiding under Greenland's ice
Europe has not just "cheered on". There were demonstrations throughout Europe against the wars in the middle east and both e.g. France and Germany openly opposed the war in Iraq.

The Europeans I know (from all over) have generally been opposed to American geopolitics both in the Middle East, South East Asia, and South America. The US has traditionally been seen as an ally, but that doesn't mean we "cheer on" its actions.

Because there are many financial and military interests, it is very hard to do much for e.g. the EU, and the politicians are very careful with their words. Just as it is for the rest of the world...

Note: Europe is not a single entity but a continent full of different countries including (part of) Russia. Even the EU doesn't really have one single foreign policy.

joakleaf··on The mineral riches hiding under Greenland's ice
It may not just be about the minerals....

It could be about leaving NATO.

US (Trump) feels they need Greenland for "security".

They currently have (almost complete) access to use Greenland via NATO and the existing agreements with Denmark. So there is no need to extend this.

However, if the US would want to leave NATO, they would no longer have access to Greenland under existing agreement.

Therefore, if the US wants to leave NATO and still use Greenland (both militarily and for resources), they need to acquire Greenland.

Acquiring Greenland would allow the US to control the entire western hemisphere, leave NATO, and abandon the eastern hemisphere entirely.

joakleaf··on I Tested the M5 iPad Pro's Neural-Accelerated AI, and the Hype Is Real
Related and test on MacBook Pro M5 vs M4:

https://machinelearning.apple.com/research/exploring-llms-ml...

"Exploring LLMs with MLX and the Neural Accelerators in the M5 GPU"

joakleaf··on The last European train that travels by sea
It will be by far the longest span of a suspension bridge at 3300 meter.

The current longest is in Turkey at 2023 meter.

Each of the pylons of the Messina Bridge will be around 400 meters tall. Which is taller than the Empire State Building.

The strait is too deep, with too much current and seismic activity to place the pylons in the water. So they have to be on the shore, as I understand it.

joakleaf··on Steve Jobs and Cray-1 to be featured on 2026 American Innovations $1 coin
It was released by The Steve Jobs archive posthumously

https://stevejobsarchive.com/

The archive was launched by Laurene Powell Jobs in 2022

joakleaf··on Europe's EV sales surge 26% in 2025 while Tesla faces decline
Here is a list of EV sales in Europe by country first half 2025:

https://www.best-selling-cars.com/europe/2025-half-year-euro...

This gives a much much more nuanced look, and it doesn't look as completely clear cut as the headline implies.

For example: Spain saw an increase of 83.9% and France a decline of 6.9%

... And then you see that Denmark bought as many EVs as spain, although Spain has 10x population.

joakleaf··on Scientist exposes anti-wind groups as oil-funded, now they want to silence him
I listened to the press conference the other day with Trumps cabinet meeting.

It is bizar to listen to.

Robert F. Kennedy Jr. claimed that windmills had killed 100+ whales. I tried to find out what he referred to, but couldn't find anything but articles debunking any claim that windmills affect whales (after construction).

He also claimed that the price per kWh of wind energy is above $0.30, which is quite a bit from the $0.03 ($0.12 offshore) price per kWh listed in Wikipedia [1] for United States.

At the same meeting Trump stated that the only viable solution is fossil fuel."... and maybe a little nuclear, but mostly fossil fuel.". And that wind is about 10x more expensive than natural gas (again contradicting the prices listed in the Wikipedia reference where the prices for onshore wind and natural gas are almost identical).

[1] https://en.wikipedia.org/wiki/Cost_of_electricity_by_source

joakleaf··on So you want to parse a PDF?
I know OCR is easier to set up, but you lose a lot going that way.

We process several million pages from Newspapers and Magazines from all over the world with medium to very high complexity layouts.

We built the PDF parser on top of open source PDF libraries, and this gives many advantages: • We can accurately get headlines other text placed on top on images. OCR is generally hopeless with text placed on top of images or on complex backgrounds • Distinguish letters accurately (i.e. number 1, I, l, "o", "zero") • OCR will pick up ghost letters from images, where OCR program believes there is text, even if there isn't. We don't. • We have much higher accuracy than OCR because we don't depend on the OCR programs' ability to recognize the letters. • We can utilize font information and accurate color information, which helps us distinguish elements from each other. • We have accurate bounding box locations of each letter, word, line, and block (pts).

To do it, we completely abandon the PDF text-structure and only use the individual location of each letter. Then we combine letter positions to words, words to lines, and lines to text-blocks using a number of algorithms.

We use the structure blocks that we generated with machine learning afterwards, so this is just the first step in analyzing the page.

It may seem like a large undertaking, but it literally only took a few months to built this initially, and we have very rarely touched the code over the last 10 years. So it was a very good investment for us.

Obviously, you can achieve a lot of the same with OCR -- But you lose information, accuracy, and computational efficiency. And you depend on the OCR program you use. Best OCR programs are commercial and somewhat pricy at scale.

joakleaf··on So you want to parse a PDF?
This happens -- also variants which have been processed with OCR.

So if it is scanned it contains just a single image - no text.

OCR programs will commonly create a PDF where the text/background and detected images are separate. And then the OCR program inserts transparent (no-draw) letters in place of the text it has identified, or (less frequently) place the letters behind the scanned image in the PDF (i.e. with lower z).

We can detect if something has been generated by an OCR program by looking at the "Creator data" in the PDF that describes the program use to create the PDF. So we can handle that differently (and we do handle that a little bit differently).

PDF->image->text is 100% not lossless.

When you rasterize the PDF, you losing information because you are going from a resolution independent format to a specific resolution: • Text must be rasterized into letters at the target resolution • Images must be resampled at the target resolution • Vector paths must be rasterized to the target resolution

So for example the target resolution must be high enough that small text is legible.

If you perform OCR, you depend on the ability of the OCR program to accurately identify the letters based on the rasterized form.

OCR is not 100% accurate, because it is computer vision recognition problem, and • there are hundrends of thousands of fonts in the wild each with different details and appearances. • two letters can look the same; simple example where trivial OCR/recognition fails is capital letter "I" and lower case "l". These are both vertical lines, so you need the context (letters nearby). Same with "O" and zero. • OCR is also pretty hopeless with e.g. headlines/text written on top of images because it is hard to distinguish letters from the background. But even regular black on white text fails sometimes. • OCR will also commonly identify "ghost" letters in images that are not really there. I.e. pick up a bunch of pixels that have been detected as a letter, but really is just some pixel structure part of the image (not even necessarily text on the image) -- A form of hallucination.

joakleaf··on So you want to parse a PDF?
We do a lot of parsing of PDFs and basically break the structure into 'letter with font at position (box)' because the "structure" within the PDF is unreliable.

We have algorithms that combines the individual letters to words, words to lines, lines to boxes all by looking at it geometrically. Obviously identify the spaces between words.

We handle hidden text and problematic glyph-to-unicode tables.

The output is similar to OCR except we don't do the rasterization and quality is higher because we don't depend on vision based text recognition.

The base implementation of all this, I made in less than a month 10 years ago and we rarely, if ever, touch it.

We do machine learning afterwards on the structure output too.

joakleaf··on So you want to parse a PDF?
I sort of agree... I do the same.

We also parse millions of PDFs per month in all kinds languages (both Western and Asian alphabets).

Getting the basics of PDF parsing to work is really not that complicated -- A few months work. And is an order of magnitude more efficient than generating an image in 300-600 DPI and doing OCR or Visual LLM.

But some of the challenges (which we have solved) are:

• Glyphs to unicode tables are often limited or incorrect • "Boxing" blocks of text into "paragraphs" can be tricky • Handling extra spaces and missing spaces between letters and words. Often PDFs do not include the spaces or they are incorrect so you need to identify gaps yourself. • Often graphic designers of magazines/newspapers will hide text behind e.g. a simple white rectangle, and place new version of the text above. So you need to keep track of z-order and ignore hidden text. • Common text can be embedded as vector paths -- Not just logos but we also see it with text. So you need a way to handle that. • Dropcap and similar "artistic" choices can be a bit painful

There are lot of other smaller issues -- but they are generally edge cases.

OCR handles some of these issues for you. But we found that OCR often misidentifies letters (all major OCR), and they are certainly not perfect with spaces either. So if you are going for quality, you can get better results if you parse the PDFs.

Visual Transformers are not good with accurate coordinates/boxing yet -- At least we haven't seen a good enough implementation of it yet. Even though it is getting better.

joakleaf··on Tesla has yet to start testing its robotaxi without driver weeks before launch
Copenhagen's metro started with 2 lines in 2002 (now 4 lines).

There are plans for more autonomy on the city's commuter trains (non-metro) in 2030-2037, starting with the first line in 2030/2031.

joakleaf··on Oil hits 4-year low, coffee falls as trade war escalates
I would think that you could be right, but it could also be the opposite.

Low demand in the US, means less sales to US, so they may try to make up for the loss of profit on the US market by increasing prices on other markets... So global price increase.

E.g. Apple likely to increase prices on iPhones world wide to make up for the loss in US.

This feels completely unpredictable.

joakleaf··on Tesla Solar Sales Declined for 4 Qtrs. Then Tesla Stopped Publishing the Numbers
Agreed. They stopped talking about it...

I have a feeling they are not really that competitive in this market segment, but were helped by a strong brand.

Anyone know if they actually make money on Solar at all, and have an idea what their profit margin is?

And what does the the competition look like (also for e.g. PowerWall)?

joakleaf··on E.U. Prepares Major Penalties Against X
Musk is already (frequently) raging against EU — the topics include freedom of speech and immigration… and calling the foreign minister of Poland “a little man”.

There is a reason the Tesla brand is suffering in Europe.

joakleaf··on Why Norway is edging towards a fresh EU membership bid
Serious question; Why do you feel EU is a "shitshow"? What EU policies do you feel have been overreaching on the individual member country's sovereignty lately?

And why do you feel Leyen was unelected? As I understand it, she was elected by the Members of European Parliament [1], and the MEPs were elected by the people of EU last year during the election. And Leyen herself was elected as a MEP.

[1] https://www.bbc.com/news/articles/cw5yg6dp0gxo

joakleaf··on Tesla loses ground as Chinese EVs dominate global markets
I agree with this. Most European car manufacturers produce EVs now, and a lot of them are looking quite competitive compared to Tesla.

While Tesla sold more EVs than any other brand in Europe 2024, BMW and Volkswagen both sold more EVs in Germany than Tesla. And Mercedes sold about the same number of units as Tesla in 2024 in Germany. Porsche's Taycan looks very competitive compared to Tesla's fastest offerings -- And tesla still doesn't have "sports car".

Non-german car manufactures such as Skoda, Renault, Volvo, and Jaguar (if those last two are still "European") also sell a lot of interesting EVs.

Admittedly, I haven't seen many Stelantis branded EVs except for Fiat 500e.

joakleaf··on Tesla loses ground as Chinese EVs dominate global markets
The official reason EU added tariffs on Chinese cars, was that Chinese EV manufacturers receive unfair government subsidies. This allowed Chinese cars to be priced lower than European cars.

So it was to protect EU car manufacturers (which are still struggling a bit with EVs).

I don't think it was US "soft-power". However, the EU may impose tariffs on US produced cars as part of the coming trade-war, which may hurt Tesla in future (or maybe not as they also produce Tesla cars in Germany).

Page 1 of 10Next →