MurphyA/hacker-news huggingface dataset:
by keyle | 2025-11-28 06:29:10+00:00
I was enjoying what I was reading until the "Limit function length" part which made me jolt out of my chair.

This is a common misconception.

Limit function length: Keep functions concise, ideally under 70 lines. Shorter functions are easier to understand, test, and debug. They promote single responsibility, where each function does one thing well, leading to a more modular and maintainable codebase.

Say, you have a process that is single threaded and does a lot of stuff that has to happen step by step.

New dev comes in; and starts splitting everything it does in 12 functions, because, _a function, should do one thing!_ Even better, they start putting stuff in various files because the files are getting too long.

Now you have 12 functions, scattered over multiple packages, and the order of things is all confused, you have to debug through to see where it goes. They're used exactly once, and they're only used as part of a long process. You've just increased the cognitive load of dealing with your product by a factor of 12. It's downright malignant.

Code should be split so that state is isolated, and business processes (intellectual property) is also self contained and testable. But don't buy into this "70 lines" rule. It makes no sense. 70 lines of python isn't the same as 70 lines of C, for starters. If code is sequential, and always running in that order and it reads like a long script; that's because it is!

Focus on separating pure code from stateful code, that's the key to large maintainable software! And choose composability over inheritance. These things weren't clear to me the first 10 years, but after 30 years, I've made those conclusions. I hope other old-timers can chime in on this.

The length of functions in terms of line count has absolutely nothing to do with "a more modular and maintainable codebase", as explained in the manifesto.

Just like "I committed 3,000 lines of code yesterday" has nothing to do with productivity. And a red car doesn't go faster.
by RoyKim24 | 2025-11-28 06:30:16+00:00
For overseas entrepreneurs and brand builders, standing out in a competitive market demands a unique visual identity. Model figure shop *HEYONER*, targeting gaming and anime enthusiasts globally, turned to *www.ailogocreator.io*—a leading AI-powered logo generator—to craft a series of logos inspired by the iconic Mario franchise. This case study dives into how retro gaming aesthetics and AI innovation collided to redefine HEYONER’s brand presence.
by jeroenhd | 2025-11-28 06:31:12+00:00
There's a list of SoC's here: https://wiki.postmarketos.org/wiki/Mainlining#Supported_SoCs

Having basic SoC support doesn't mean you can just flash a kernel and expect the device to boot, though.

The tooling itself actually does most of the work for you. Things like compiling the kernel and building and flashing the install image pretty much happen automatically once you've copied over a template and edited the necessary sources.

You can probably boot pmOS if you copy a template for a device with the same CPU but if there are no similar devices, you're on your own. Even if it does boot, there's a good chance you end up in a "no display, no USB, no wireless, no sound" scenario where the kernel runs but won't be doing anything useful. Just having CPU support isn't enough, you'll probably need the appropriate device tree definitions and possibly kernel drivers which you may be able to lift from the Android kernel if your device came with that.

Very few Android SoCs have upstream support that even comes close to what the Apple M1 has, let alone an amd64 CPU. The new Snapdragon Extreme chips are very different in terms of design and in terms of how Qualcomm approaches them, and even their support is lacking in practice.
by flto | 2025-11-28 06:31:22+00:00
The Snapdragon Chromebooks use older chips that didn't have the locked down boot-chain yet. Even if you didn't have the official EL3 unlock that Google got, you could still get into EL3 trivially if you wanted to.

It will be interesting to see what Google got from Qualcomm for the new Chromebooks (EL3 isn't even the highest level anymore, that's TME now).
by orbital-decay | 2025-11-28 06:31:39+00:00
>Aren't you agreeing with his point? ... Nature is better at compression than ML researchers, by a long shot.

What I mean is basically the opposite. Nature not better as in more efficient. It just had a lot more time and scale to do it in an inefficient way. The reason we're learning quickly is that we can leverage that accumulated knowledge, in a manner similar to in-context learning or other multi-step learning (bulk of the training forms abstractions which are then used by the next stage). It's really unlikely we have some magical architecture that is fundamentally better than e.g. transformers or any other architecture at sample efficiency while having bad underlying data. My intuition is there might even be a hard limit to that. Multi-stage bootstrap might be the key, not the architecture.

Same for the social process of knowledge transfer/compression.
by contrarian1234 | 2025-11-28 06:31:59+00:00
I think the article underplays the transition. They're not just-now being sold, it's already the norm. I was in Chengdu last summer and all the huge trucks hauling sand and rocks at construction sites where electric already (and not brand new.. they'd clearly been used quite a bit). The days of trucks making huge plums of smoke at intersections are gone. As I understood it ICE trucks are extremely limited in the hours they're allowed to operate in cities.

So I'm actually a bit surprised by the BEV fraction in the plot. Maybe there are quite a few trucks between cities and in the countryside that I just wasn't seeing.

I'm curious if the batteries can be swapped. Vehicles (trucks and taxis) are generally used in shifts, so you don't want to have the car just sitting around charging half the time
by beeflet | 2025-11-28 06:32:54+00:00
Perhaps competition in the cold war reinvigorated the USA or expedited the fall of Soviet Union by forcing them into expensive competition?

Imagine a boat has a hole in it, and is sinking. Some of the crew-members make a big deal about it, and run a campaign to plug the hole and bail the water out. In the end, it does not sink and the remaining crewmembers conclude that it was not a big deal and that the campaign was unnecessary. It is a survivor's bias.

Even a small hole, if left unplugged, will eventually sink a ship. Likewise, some types of systematic problems in a country (that are not self-solving or naturally limited) will eventually ruin it if not addressed directly.
by shkkmo | 2025-11-28 06:34:00+00:00
> The study used ad spend as a proxy for ads viewed

Yes, clearly that was the intent. That doesn't mean you can generalize from your proxy to the thing you have a hard time measuring.

> So ad spend is going up at the same time that the number of ads per spend is increasing, at a rate substantially faster than during their study period.

It seems like you are just making up facts.

The fact is that global spending on advertising is a fairly steady percentage of the GPD. It does occilate a little up and down, but the "exponential" growth you are talking about is merely the exponential growth of GDP.

Thus your argument that internet has increased ad spend and thus decreased happiness is false.

Addionaly, while this is also hard to quantify, the trends for cost per ad view does seem to be moving in the opposite direction. The cost of an impression seems to be moving upwards, not downwards.
by my123 | 2025-11-28 06:34:20+00:00
> It will be interesting to see what Google got from Qualcomm for the new Chromebooks (EL3 isn't even the highest level anymore, that's TME now).

The new AL BSP target for Hamoa, which is what's going to ship on the new Android laptops, runs KVM at EL2 instead of Gunyah. But it has (at least partially) Qualcomm-owned EL3.
by oefrha | 2025-11-28 06:34:44+00:00
Wrong. Wheels were available long before pyproject.toml, and you could instruct pip to only install from wheels. setup.py was needed to build the wheels, but the build step wasn’t a necessary part of installation and could be disabled. In that sense its role is similar to that of pre-publish build step of npm packages, unless wheels aren’t available.
by TeMPOraL | 2025-11-28 06:36:11+00:00
Ultimately, it is. The post didn't touch on this, but it's exactly why the world looks like it does - it is, and has always been, recursively subdivided. It's why we have districts and towns and counties and states and countries. Hierarchical governance is a result of trying to cooperate in groups larger than the limit of how many direct relationships our brains can support.
by jeroenhd | 2025-11-28 06:36:19+00:00
Qualcomm actually contributes code whereas Apple's contributions begin and end at "you can boot software not signed by Apple". It's hardly a comparison.

The problems seem rather similar, a while after release you need a dedicated build to actually get Linux working mostly right. Doesn't come close to the normal Linux experience. Then again, the X1 Extreme seems to have USB display and thunderbolt support, so they're better than Apple Silicon will probably ever be on Linux.
Ask HN: What did you replace bitnami with?
by kachapopopow | 2025-11-28 06:36:33+00:00
I'm working on migrating my gitea (helm chart) while stumbling onto the issue that they still have no alternative to bitnami helm charts.

I have found a pretty good alternative by using the postgres operator instead and it seems that the valkey community simply forked the bitnami chart. However, it seems that valkey are one of very few projects that commited to maintaining such charts.

Are we really stuck maintaining our own image/helm catalogs again?
by ehnto | 2025-11-28 06:36:40+00:00
Due to a condition I was born with, I was raised the opposite. No over the counter medication my entire life, with some exceptions. I usually decline pain management in ER, for things like broken bones, but for surgeries and stuff of course I have no choice as I go under.

I will take what the doctor orders though, to treat illness and conditions though thankfully at this stage there hasn't been many instances. Usually that's antibiotics.
by d_e_solomon | 2025-11-28 06:36:48+00:00
I’ve been writing breakdowns on why certain industries behave the way they do, not from a “news” angle but from incentives, market structure, and pricing power.

Most headlines explain quarterly moves; the underlying mechanics explain everything else.

If anyone’s interested, here’s the latest write up digging into those drivers: https://www.capitalfolly.com

(Would love feedback from people who think about incentives or structure in their own sectors.)
by mrkeen | 2025-11-28 06:37:29+00:00
Latency = Partition.

There is code running on a server. When poll that server, that code will choose (in the best case) between given you whatever answer it has Available, or it will check with its peers (on a different continent) to make sure it serves you up-to-date (Consistent) information.

CAP problems being a "rare occurrence" isn't a thing. The running code is either executing AP code or CP code.
by Ekaros | 2025-11-28 06:38:01+00:00
>2. We have no geothermal sources sufficient for production of electricity, it can only be used to slightly reduce primary energy use during winter, but it will raise electricity use during winter.

The project for properly deep geothermal for district heating in Espoo was not resounding success. And that is 6,4km deep hole in southern part of Finland. My understanding is that it somewhat worked. But not as good as expected.
by onesociety2022 | 2025-11-28 06:38:21+00:00
Tax refund loans are offered in conjunction with the tax filing service like TurboTax or H&R Block because they already know what your refund amount is going to be and it’s relatively risk free (small refund amounts) and easy to automate. They are similar to pay day loans.

Crypto bro showing up with $1m gains and losses from crypto transactions and asking for a refund loan at their neighborhood bank is probably not going to go anywhere (it’s too large a risk because it’s not just a few thousand dollars but at the same time it’s too small an amount for them to do custom due diligence to underwrite a loan).

Anyway you can’t erase gains in year 1 with losses in year 2 at least in the USA (you can only offset $3k/yr max in year 2 if you don’t have any other gains).
by sourav_sen_duke | 2025-11-28 06:39:41+00:00
It’s a minimalist chat interface with "personality filters". Pick one of the pop-culture personas (Oogway, Rick, etc.) and apply it to your LLM chatbot, and the model responds in that style. Very lightweight, no accounts, no tracking, and logs are anonymized for debugging only. Built just for fun during the holiday.

Happy Thanksgiving!
by eviks | 2025-11-28 06:39:42+00:00
> Limit line lengths: Keep lines within a reasonable length (e.g., 100 characters) to ensure readability. This prevents horizontal scrolling and helps maintain an accessible code layout.

Do you not use word wrap? The downside of this rule is that vertical scrolling is increased (yes, it's easier, but with a wrap you can make that decision locally) and accessibility is reduced (and monitors are wide, not tall), which is especially an issue when such a style is applied to comments so you can't see all the code in a single screen due to multiple lines of comments in that long formal grammatically correct style

Similarly, > Limit function length: Keep functions concise, ideally under 70 lines.

> and move non-branching logic to helper functions.

Break accessibility of logic, instead of linearly reading what's going on you have to jump around (though popups could help a bit). While you can use block collapse to hide those helper blocks without losing their locality and then expand only one helper block.
by constantcrying | 2025-11-28 06:39:55+00:00
>Volkswagen payed 4.5 billion in dividends in 2024

German industry also provides millions of high paying jobs to German citizens. In the last decades a career in any of these companies meant guaranteed financial stability to each of the employees.

The "downside" of having good paying, high quality, stable jobs is the existence of billionaires. The narcissistic complaint that billionaires should not exist, when their existence is just the direct consequence of having a functioning economy is so absurd. What matters is whether these companies are good for the population, which they are.

By the way, guess where a significant part of that 4.5 billion went? And not just as taxes.
by cortesoft | 2025-11-28 06:40:11+00:00
If you work much with DNS, you will know about this. It is known as a FQDN, or a "fully qualified domain name", when the name ends with a .

When you don't use a FQDN, your DNS system is going to try to figure out if you mean a FQDN or actually belong to a subdomain.

On *nix, your /etc/resolv.conf file can have a "search" entries for search domains... that means that a lookup for "foo" will check "foo.bar.com" if "search bar.com" is in your /etc/resolv.conf

This does mean your query could end up making multiple queries to determine if you meant foo. OR foo.bar.com

You can configure how the machine makes the guesses with something called ndots... if you add "ndots 3" to your etc/resolv.conf, then your DNS queries will only try treating the domain as a FQDN if it has at least 3 dots... so for example, it would skip querying for foo as a TLD because it has no dots, and assume you mean "foo.bar.com", saving an unneeded DNS query.

This usually doesn't matter to people, but it can have big performance implications for things like Kubernetes, with lots of .svc.local bits being left off of internal queries and relying on search domains; by increasing the ndots, you avoid a ton of wasted queries.
by SerCe | 2025-11-28 06:41:42+00:00
I believe there is no contradiction with the definition from the linked article?

> A system is said to be real-time if the total correctness of an operation depends not only upon its logical correctness, but also upon the time in which it is performed. Real-time systems, as well as their deadlines, are classified by the consequence of missing a deadline:

> Hard – missing a deadline is a total system failure.

> Firm – infrequent deadline misses are tolerable, but may degrade the system's quality of service. The usefulness of a result is zero after its deadline.

> Soft – the usefulness of a result degrades after its deadline, thereby degrading the system's quality of service.

From what I can tell, https://pocketbase.io/ attempts to be a soft-realtime system.
by nilirl | 2025-11-28 06:42:15+00:00
Can you have a coding philosophy that ignores the time or cost taken to design and write code? Or a coding philosophy that doesn't factor in uncertainty and change?

If you're risking money and time, can you really justify this?

- 'writing code that works in all situations'

- 'commitment to zero technical debt'

- 'design for performance early'

As a whole, this is not just idealist, it's privileged.
by teo_zero | 2025-11-28 06:42:45+00:00
What has always baffled me is how CS uses the word "safety" where all other industries use "robustness".

A robust design is one that not only is correct, but also ensures the functionality even when boundary conditions deviate from the ideal. It's a mix of stability, predictability and fault tolerance. Probably "reliable" can be used as a synonym.

At the same time, in all industries except CS "safety" has a specific meaning of not causing injuries to the user.

In the design of a drill, for example, if the motor is guaranteed to spin at the intended rpm independently of orientation, temperature and state of charge of the battery, that's a robust design. You'll hear the word "safe" only if it has two triggers to ensure both hands are on the handles during operation.
by bgarbiak | 2025-11-28 06:43:14+00:00
There is also Mercedes eActros line and MAN eTGX. There are already thousands of them in Europe. Funny how that just happened, without fanfares and trillion dollar evaluations.

Speaking of which, I don’t know why would anyone still wait for Tesla Semi or any other up-and-comers. Promised better efficiency sounds good on paper, but means nothing if the product doesn’t exist or is an unreliable prototype with no service support.

Now Chinese want to enter the market with cheaper trucks, but - as the article clearly mentions - these are not yet ready to be used in Europe or the States, and making them ready will increase the price.
by stouset | 2025-11-28 06:43:26+00:00
“Ideally under 70 lines” is not “always under 70 lines under pain of death”.

It’s a guideline. There are exceptions. Most randomly-selected 100-line functions in the wild would probably benefit from being four 25-line functions. But many wouldn’t. Maturity is knowing when the guideline doesn’t apply. But if you find yourself constantly writing a lot of long functions, it’s a good signal something is off.

Sure, language matters. Domain matters too. Pick a number other than 70 if you’re using a verbose language like golang. Pick a number less if you’re using something more concise.

People need to stop freaking out over reasonable, well-intentioned guidelines as if they’re inviolable rules. 150 is way too many for almost all functions in mainstream languages. 20 would need to be violated way too often to be a useful rule of thumb.
by baq | 2025-11-28 06:43:35+00:00
Either fusion or drill baby drill is necessary. Watt’s steam engine was absolutely horrible, but it was the worst steam engine ever built. If Finland builds the worst deep geothermal ever that still works, we can hope for better ones.

Yeah I know drilling through ~8-10 kilometers of rock is kinda hard… they know, they tried, maybe it now is a good political climate to try again?
by seanmcdirmid | 2025-11-28 06:45:48+00:00
My guess is that the long distance trucks (the old blue ones) are still mostly diesel and the trucks inside cities for local work are transitioning first? Every city could also be really different in terms of where they are in adoption, CD could be further along than lower tier cities. I didn’t notice any trucks at all when I was in Beijing last April, so I’m guessing that they still aren’t allowed inside the fifth ring in the day time electric or not.
by cachius | 2025-11-28 06:45:51+00:00
There's a fabulous drive technology for electric trucks in Germany if powering it with hydrogen via fuel cell interests you. Got awarded the German Future Prize 2025 recently. https://www.bosch-presse.de/pressportal/de/en/bosch-team-win...

It's for long distance/quick refill operations. I wonder how the BEV trucks handle this. Can they swap batteries or are limited to shorter distances?

Here's the award ceremony in German https://minily.org/gfp25-award-bosch-long-distance-truck-fce...
by baalimago | 2025-11-28 06:45:56+00:00
Well, I'm sure you're well aware of perils of premature optimization and know how to deliver a product within a reasonable timeframe. TigerStyle seems to me to not be developed through the lens of producing value for a company via software, but rather having a nice time as a developer (see: third axiom).

I'm not saying the principles themselves are poor, but I don't think they're suitable for a commercial environment.
Ask HN: Is the "Rust tax" (dev time) cheaper than the "RAM tax"?
by m00dy | 2025-11-28 06:46:16+00:00
I've been watching the spot prices for memory and cloud instances lately. It feels like the era of "hardware is cheap, throw Electron/JVM at it" is hitting a wall. I recently pushed a Rust binary to production for a side project simply because I couldn't afford the RAM for a Node app on the cheapest VPS tier anymore. The memory footprint is practically a rounding error compared to the interpreted/GC'd stuff I usually write. Is anyone else prioritizing Rust (or Zig/C++) purely for economic reasons now? It feels like the lack of a Garbage Collector is becoming less about performance and more about pure unit economics.
by gbbloke | 2025-11-28 06:47:13+00:00
6 years with you, guys! I don't usually write here (english it's not my forte), but I wanted to do it to tell you how important and cozy this place feels to me in 2025. It's like finding a bonfire in a Souls game, where the rest of the internet feels like it's been taken by an evil force.

Here's to another 6+ years!
by lmm | 2025-11-28 06:47:20+00:00
> Rarely, clients from the outside will have a path into the minority partition but not the majority partition, but I don’t think I’ve seen that happen in nearly two decades of watching systems like this.

It happens any time you have a real partition, where e.g. one country or one office is cut off from the rest of the network. You're assuming that all of your system's use is external users from the internet, and you don't care about losing a small region when it's isolated from the internet, but most software systems are internal and if you're a company with 3 locations then being able to continue to work when one is cut off from the other 2 is pretty valuable.

> There are workloads that can tolerate a ton of asynchrony where being able to continue while disconnected is interesting, but they’re the exception rather than the rule.

I'd say it's pretty normal if you've got a system that actually does anything rather than just gluing together external stuff. Although sadly that may be the minority these days.