HNHacker News
TopNewBestAskShowJobs

stkdump

1,125 karma · joined April 15, 2018

submissionscomments
stkdump··on Show HN: qrframe – generate beautiful qr codes with javascript code
I tested it with my phone and got similar results: I got only 9 out of the 21 QR codes to work. I don't know why you think such a finding should not be mentioned here.
stkdump··on Twitter/X will let people you've blocked see your posts
Tesla is struggling and its CEO is stuck on social media.
stkdump··on Parsing protobuf at 2+GB/s: how I learned to love tail calls in C (2021)
Portability isn't just about use of non-standard features. It is in general about the reliance on such features. In simdjson there is a fallback implementation without any assembly, making the project as a whole portable. You could do the same in a protobuf parser, but I honestly doubt that someone would implement a tail recursion optimization relying parser for a language like protobuf and then have a separate FSA implementation inside the same library as a fallback. Unless maybe both parsers are not hand-written, but generated with a parser generator maybe. Instead you would probably just say "fuck it, this parser library is not portable, period".
stkdump··on Parsing protobuf at 2+GB/s: how I learned to love tail calls in C (2021)
That means that any such code is not portable across compilers anymore. It is effectively written in a non-standard C dialect, because it requires a language extension to work correctly.
stkdump··on What if Germany had invested in nuclear power?
There is exactly one country on earth that has found a permanent storage for its nuclear waste. For all we know Germany might still be amoung the first countries to find one.
stkdump··on Ask for Advice, Not Permission (2015)
That sounds like the very definition of a waterfall development process.
stkdump··on A wonderful coincidence or an expected connection: why π² ≈ g
A human is ~1 meter, 1e2 kilograms and 1e9 seconds.
stkdump··on A wonderful coincidence or an expected connection: why π² ≈ g
My physics prof said g is actually a vector field. Because the acceleration has a direction and both magnitude and direction vary from point to point.
stkdump··on Big Tech groups say their $100B AI spending spree is just beginning
I guess if you are a multibillion dollar company, you can keep that in the bank (stock buybacks or whatever) or invest. So the question isn't really if AI is overhyped or not at the moment. The question is really do you know anything better to do with all that money to make your company future-proof.
stkdump··on Translating All C to Rust (TRACTOR)
I guess it is a consensus like `goto considered harmful` or `numbering should start at zero`, which is not a perfect consensus, but as much of a consensus as you can reach for such a disparate community.
stkdump··on Free DDNS with Cloudflare and a cronjob
For me it changes reliably on every reconnect, but there are no forced reconnects, and I now have my router not restarting basically ever since I am on openwrt and am done with setting everything up.
stkdump··on NVIDIA Transitions Fully Towards Open-Source Linux GPU Kernel Modules
Yes makes sense, in the long run it should make their life easier. I just suspect that the move itself was a big effort. But probably they can afford that nowadays.
stkdump··on NVIDIA Transitions Fully Towards Open-Source Linux GPU Kernel Modules
But the firmware runs directly on the hardware, right? So they effectively rearchitected their system to move what used to be 'above' the kernel to 'below' the kernel, which seems like a huge effort.
stkdump··on Nevada’s public employee pension fund invests passively and beats peers (2016)
This is all correct, but missing the higher order. Most investors will not take out the dividends, but reinvest them. A few might sell, because they are in retirement. But assuming that the retired people make up a small part of investors, profit is reinvested. Further, people invest a percentage of their income for retirement. All that means that work income and dividends make the stock prices go up and retirement makes the stock prices go down. You could say that retired people consume and help companies make profit, but it is actually worse for stock prices than investment, because the consumption requires companies to sell products and services that come with cost.
stkdump··on Python with Braces
What confuses me is languages that can split statements over multiple lines as long as certain conditions are met (such as the break occours inside braces). I rather have a semicolon at the end of the statement to make it more explicit.
stkdump··on Comparing the Framework Laptop with the MacBook Air M2: A Detailed Review
Oh, good for you! I guess there is a sizable population even with software developers for whom money is some concern. I mean I can't be the only one...
stkdump··on Wc2: Investigates optimizing 'wc', the Unix word count program
I doubt that you can make it faster on the GPU than on CPU when utilizing SIMD, reason being that you are actually doing something close to trivial upon looking at each byte in sequence. So you transfer it from CPU memory to GPU memory in order to do almost nothing with it.
stkdump··on Wc2: Investigates optimizing 'wc', the Unix word count program
I guess since state is fully encoded inside a single state variable and of course the output counts, it would be trivially simple to switch between multiple input streams and incrementally count words in each of them as new data arrives.
stkdump··on Wc2: Investigates optimizing 'wc', the Unix word count program
I'm wondering if you could easily build the state machine quickly at startup time. Unless it is a multi byte encoding it should be trivial.
stkdump··on Comparing the Framework Laptop with the MacBook Air M2: A Detailed Review
It's not like the Air is half the price of the Framework.
stkdump··on Electricity prices in France turn negative as renewable energy floods the grid
Right, move Spains clean energy east, this is what I said. Also move Norways clean energy south.
stkdump··on Electricity prices in France turn negative as renewable energy floods the grid
Please re-read my comment. France's relatively small renewable fleet flooding their home market is a solution in search of a problem. If the goal is to decarbonize Germany in times of low renewable production inside Germany then we need interconnects between Germany and places high in renewables as well that are farther away from Germany than France. This is why Norway and Spain are good candidates.

France will have enough trouble rebuilding its declining nuclear fleet in the coming decades for their own energy needs, so any infrastructure that bets on France being able to supply neighbors as well will have a quick expiration. France is actually importing a lot of renewables in winter, because they heat homes with old electric heating (i.e. no heat pumps) and bad insulation that looses much more heat than homes in other countries and their nuclear supply can't cope with that.

In all likelyhood what will do the electricity decarbonization trick in Germany is threefold: more electricity transmission inside the country and with other renewable-heavy countries, continued quick buildout of renewables in Germany and a bit of battery storage, outlawing of coal and lignite in <10 years. The renewable gaps in the medium term will be fewer and shorter and will be filled with natural gas plants which are easy and cheap to build, even when they are just kept in standby most of the time. In the long term they will be made obsolete by even more lines and battery storage. Imported nuclear will likely play no relevant role at any stage. Like anything every bit helps a bit, but it won't change anything in the grand scale.

We already have a non-negligable amount of battery storage in German homes, but currently the incentives are laid out so that they will power these homes at night only. I believe we are loosing out on a bit of efficiency by not using it yet to feed back into the grid when needed. This could be enabled by smart meters and dynamic pricing in the future. It would also allow better to move household electricity demand into the times when renewables are most abundant.

stkdump··on Electricity prices in France turn negative as renewable energy floods the grid
It is likely that the times where French renewables flood the market roughly coincide with the times where German renewables flood the market, which where 60% of the supply even in the winter. The few remaining times where that isn't the case are probably not relevant. I mean every bit helps of equalizing over a larger area can help, but we likely need interconnects with places that are a bit farther away than France like Spain and Norway so the gaps are more likely to fall into different times. Besides, coal plants are almost as bad in spinning up and down quickly as nuclear plants. In both cases they can probably do somewhat it to escape the penalty of negative prices, but likely they don't safe much if anything in terms of operational costs and fuel.
stkdump··on The Raspberry Pi 5 Is No Match for a Tini-Mini-Micro PC
Inflation adjusted the 1B (with 512MB, which was the only available variant) was slightly more expensive than the 5 with 2GB at their respective release. The price "increase" is that 4 and 8GB models are available at all and most people buy them, presumably because people actually don't care about the purchase price so much. But you still get the cheapest variant, if you really want to. Also, there are different variants of the Zero, all of which are cheaper than the 1A at release.

The power brick got more expensive due to the increased power use. Also if you want to make use of the full power, you need a cooler. But you can also do without cooler, because it just gracefully slows down when overheated.

I think the Pi drove the price of lower end computers down so far that people completely lost their sense of perspective.

stkdump··on T-Mobile users thought they had a lifetime price lock–guess what happened next
As far as I can tell prices in Germany are better than in the US, and broadband while not stellar is fine. My home internet is 500/100 speed and costs 35€ (with unlimited data and calls to landline and mobile numbers, for whatever thats worth). My mobile plan is 8€/month for 10GB of data (5G, of course not great availability outside cities, but LTE is not that bad) and unlimited calls and SMS.
stkdump··on The largest solar farm just came online in China
Once the central government has decided what they want, China absolutely has a track record of extremely heavy subsidies, both for domestic market and for export. Like you say, it is to get to that sweet 'economies of scale' (or to say it more honestly, pricing others out of the market).

There is one other interesting tidbit about the pricing of energy projects. Renewables have been scrutinized about their price to an unprecendented extent. Before renewables, costs were usually a minor concern in the public debate when it came to build-out of energy infrastructure.

In the nuclear heavy country like France (which did benefit from the so called 'economy of scale' most, in their case it was more the will for nuclear armament), the government decides the prices for households. They had to increase it steeply in the last decade, and a government commission suggested to further increase it by 74% this year. The government decided to only increase it by 10%. I guess they are a bit afraid of the protest-loving population. Nobody cares for costs, if they don't see it.

In Germany meanwhile the subsidies (for renewables mind you, not for all the other forms of energy) actually work in a way that they are added to the price of all electricity. So while German and French prices get closer and closer now, the German household electricity prices reflect the total cost much better than the French prices.

Now we have enough data to not just project costs, but also we know what we actually pay. And contrary to what everyone believed, renewables are actually the cheapest form of energy we can get. And when you look at the fundamental physical process, it even makes sense. No need to dig anything out of the ground, because the source that put all this into the ground actually is accessible on the surface. No need to create a process that biological beings never used for energy. Wind and solar are just technological variations on the theme that evolution put into live and proven for billions of years. It just makes sense to leverage for the bulk of our energy needs until such time when our energy needs overtake what is accessible so easily. That may be a century from now or even farther in the future.

stkdump··on The largest solar farm just came online in China
Don't know how it is for Chinese projects, but in the west you should not compare actual cost of A with projected cost of B, because with such projects we repeatedly see that the actual cost can be a multiple of the projected costs, especially for nuclear power.

For Chinese projects we can assume that the price tag also doesn't match the actual costs (similar to French nuclear projects) due to heavy government subsidies.

stkdump··on The Decline of the User Interface
> I try to remember how the general demise of OK/ cancel buttons came about

I think there was a time when dialogs had all three: Apply, Ok, Cancel. I formed the habit of clicking Apply and then Ok back then.

Either way, I think Ok went away when smartphones were introduced, because they traded checkboxes with those horizontal slider buttons. Then someone had the idea what works on a smartphone should work everywhere and now we have that everywhere.

stkdump··on X is justifiably slow (2022)
Sorry, but I seem to have lived in a fundamentally different universe than you. I remember that my 386 took longer to boot to DOS (which is not even an operating system by today's standards) than my current laptop to come up.

When Windows 95 was introduced it took so long to boot that it wasn't even worth it for me. I remember that a popular magazine did an aprils fools joke that the new Intel CPU was so fast it could boot Windows within few seconds.

stkdump··on 60 kHz (2022)
As mentioned somewhere else, these time signals also carry information about DST and adapt for leap seconds, both of which GPS doesn't do as far as I know. I remember that earlier versions of Android always set the phone clock to GPS which was then off by a number of seconds.
← PreviousPage 5 of 22Next →