skysight-inc/HackerNews huggingface dataset:
I think there is a potential, limited path to success here (depending on what "success" looks like), and it’s likely assisting parents in clustering (via subsidizing moving expenses and affordable family housing) around schools that remain (because many are closing due to funding cuts and the demographic cliff) to maintain walkability for both school commute and socialization. It’s a bandaid, but the only option I see viable considering the cost of re-engineering urban planning to fix decades of car centric policy. Those costs are enormous, and I think in a lot of cases, it’ll be cheaper to allow some places to go terminal/fallow as their population declines.

This doesn’t juice the fertility rate (because it doesn't appear anything will), but it will make childhoods suck less for kids already here and those on the way for the foreseeable future (as well as improve parental experience). Barcelona Superblocks is my mental model on this topic.

https://www.vox.com/energy-and-environment/2019/4/9/18273894...

https://www.youtube.com/watch?v=ZORzsubQA_M
It definitely is, but it seems like a whole lot of developers do not know it.

Which makes sense: they have to learn about it, and it takes time.
Show HN: OpenJones3D – Reviving engine that powered first Indiana Jones 3D game
IKR.

The only thing I'll miss about Discovery are the "Disco" t-shirts. Those were great merch.
But in this case, as I understood it, fully optional? (Maybe not, only read it rather cursorily.) So in that case, might be useful anyway.

Otherwise, yeah, me too.
For anyone curious about what Saylor is actually thinking, it is good to spend some time listening to this recent interview.

https://www.youtube.com/watch?v=R87vco0jHvo
They mention at the end that it makes it heavier and harder to deploy, as well as how rare it is that they get damaged.

But I think this is the point of the article - that we start thinking with “a wartime mindset”. Which is a shame, but maybe necessary given the state of the world.
Do we have to eat bugs? I'm vegan
The mock interview idea is good, that's not something I've tried. Thanks!
I spoke to a muslim who basically just "gave in" and started doing Christmas at home because the kids wanted it. With the tree and Xmas presents etc even.
> "Forming groups did not expand the cognitive abilities of humans. The famous ‘wisdom of the crowd’ that’s become so popular in the age of social networks didn’t come to the fore in our experiments"

If it were true wouldn't all democratic societies be in danger. Our whole society is based off the wisdom of the crowds.
No, but it's certainly pro "individualism" and hedonism. Anything that can dilute the moral fiber of a nation to make it easier to rule.

You'd have to be delusional to think you're fighting The Man^tm when you stand for immigration and LGBT, at least in western Europe.
> The other is professional investors who want bitcoin exposure but are bound by investment mandates to equities only.

MSTR was recently added to QQQ. With the rebalance, they have no choice now.
Clojure delineates everything by explicitly putting statements in parentheses (like any LISP). That's basically the same thing.

Go is an interesting example but it gets away with this by being far stricter with syntax IIRC (for the record, I'm a fan of Go's opinionated formatting).
Seriously dude you can't just drop a comment like that without _any_ explanation of ever the hell you're even talking about/getting at.

You're aware that the word dad isn't some American English specific thing, but is in fact universal to most english speakers. And that Mum is specifically a British thing?

Seriously what are you getting at? What context am I missing?
Your gender doesn't matter. If you enter a room just to troll the people in it, you don't belong there.
Didn't expect Dark City to be mentioned in the Christmas thread. Great movie, indeed. Dark, mysterious and thought provoking.
If all the functions need state from all the other functions, that is the problem a class or a struct solves - e.g. a place to store shared state.

If the 7 things are directly related to one another and are _really_ not atomic things (e.g. "Find first user email", "Filter unknown hostnames", etc), then they can be in a big pile in their own place, but that is typically pretty rare.

In general, you really want to let the code be crisp enough and your function names be intuitive enough that you don't need comments. If you have comments above little blocks of code like "Get user name and reorder list", that should probably just go into its own function.

Typically I build my code in "layers" or "levels". The lowest level is a gigantic pile of utility functions. The top level is the highest level abstractions of whatever framework or interface I'm building. In the middle are all the abstractions I needed to build to bridge the two, typically programs are between 2-4 layers deep. Each layer should have all the same semantics of everything else at that layer, and lower layers should be less abstract than higher layers.
How r u offering it for free? How does the economics work?
The bit vector does give a nice compression compared to the jump table. But I believe the main thing to do for speeding up string parsing is to consume more than one character at a time. I personally found the techniques in https://tia.mat.br/posts/2018/02/01/more_on_string_switch_in... very helpful to explain these issues.

EDIT: I especially like this statement from the conclusion:

> The good thing about the switch statement in C is that it is maybe the highest level statement in the language: the compiler can get really creative in how its code is generated. It's not uncommon for it to generate jump tables or even binary searches.
They're trying to position themselves as Yelp of coupons. They snatch coupons that people use (for example 90% off special coupons meant for specific people, that just happened to have the extension installed), then they have a partner program for companies that allows the partners to control what coupons honey can apply on their site.

You don't need to join it, but then your customers get automagically the high value coupons applied, but if you pay them $XX per month, you can limit what gets applied.
The "too smart developers" narrative is pandering - poor design stems from inexperience and its accompanying insecurity, not intelligence. Skilled developers intuitively grasp the value of simplicity.
That's true. When the main characters are insufferable you can't get far.
I agree except I think 100 lines is definitely worth a method, whereas 15 lines is obviously not worthy for the most cases and yet we do that a lot.

My principle has always been: “is this part a isolated and intuitive subroutine that I can clearly name and when other people see it they’ll get it at first glance without pausing to think what this does (not to mention reading through the implemention)”. I’m surprised this has not been a common wisdom from many others.
> I wouldn't be so certain. After all it is unknown to the extent each unique biological aspect of the neuron actually matters to the function of the brain and mind.

We know that some neurons learn in isolation (purkinje cells). Meaning that it learns and detects patterns of sequences of input, and produces output based on that (e.g. trigger blinking in rabbit eye).

It seems like this one item alone indicates that the HH model is limited.
I don't think largeness is the problem. It's language design. C++ is just really badly designed. I'd be very happy with a very large language that takes a long time to get familiar, if all the features in the language are well designed. IMO the current developer landscape is all about "fast onboarding", but that is the totally wrong metric to optimize for. To me it's the difference between someone walking and an airplane. Sure it's very easy to just start walking, you ain't going to go anywhere fast. On the other hand an airplane takes orders of magnitude longer to get going but once it does you won't ever catch up to it by walking.
FFmpeg Assembly Language Lesson One
Shuttered electric air taxi startup Lilium may be saved after all
Language syntax defines functional boundaries. A strong functional boundary means you don't have to reason about how other code can potentially influence your code, these boundaries are clearly defined and enforced by the compiler. If you just have one function with blocks of code with comments, you still must engage with the potential for non-obvious code interactions. That's much higher cognitive load than managing the extra function with its defined parameters.
Strange this doesn't mention the LockBit Hack (154 points, 6 months ago, 74 comments) https://news.ycombinator.com/item?id=40916260

https://www.msn.com/en-us/money/other/the-bank-behind-the-fi...
It's called Falu red [1], btw. Made from mining residual products and originally liked because it resembled luxurious brick.

[1]: https://en.m.wikipedia.org/wiki/Falu_red
This is roughly the reaction I meant going into this discussion :)

The rebase next level part is not about using git rebase in the right way, it's about every command including status sometimes doing 15 rebases without even mentioning it.
I get the impression from a quick skim of your resume that you are all in on Rust.

Do you mainly apply to rust jobs? I feel like I read something here recently with others really struggling to get Rust jobs.
The pagan origins thing is a myth, btw—all the various bits which people point to as evidence still date back to a Christian-era Europe and cannot be traced back further. Christianity has been around for a very very long time and has had a lot of time to evolve its own traditions. :)

For example, Christmas trees date back no later than the middle ages:

https://youtube.com/watch?v=m41KXS-LWsY
Fucking what are you on about? This culture wars you're imagining where leftists are against using the words mum and dad is NOT REAL. Sounds like something a far right outlet would make up (and specifically, would happily make up about recent LLM's). Sibling comment only bolsters my point.
Our current way of living is a deprivation. The popularity of homesteading fantasies bespeaks the desire for a very different and less self-destructive way of life.
That is one really, really impressive monkey. If it were true.
Probably just a bad description of reality.
The elite billionaires have these several things in common
Repeatedly calling it insecure and not to spec when it’s secure and it does the exact same thing unless given unusual input, and is as a ponyfill to ensure the dev is aware of its source when calling it. He also said he has relevant experience when questioned and showed an irrelevant example to support that claim.

https://github.com/ungap/raw-json/issues/6#issuecomment-2434...
It's a love letter to those extremes. There are jokes they make that show deep nerd love.
I'm skeptical that your product is so amazingly good and literally years ahead of anyone else but requires elaborate daily intervention and isn't able to generate revenue.

If you think you can single handedly make someone many millions of new dollars simply by using your software then why are you not pursuing that from every angle? That seems like an easy win AND acquisition channel; I expect any business would happily acquire you for a few million if you actually did make them 10x that.

How can you prove (to yourself, to the market) that your product is really as amazing as you say it is? Normally that's by selling it but you said people aren't paying much for it. What's missing from this story? My advice is to figure out the answer to that because the answer will help you figure out what to do next.
Just knowing it still exists and is owned by someone as passionate as the YTer would be enough for me. And the possibility of paying visits and playing classic games on it.

What got me was the four-player game where each player effectively had their own 21" monitor. Mind-boggling.
> MicroStrategy seems heavily leveraged

"seems"!

https://www.youtube.com/watch?v=R87vco0jHvo
Composition over inheritance is one of the most valuable lessons I learned earlier in my career as a developer. In fact these days, I'm hard-pressed to think of a case in which I would prefer inheritance as my first choice to model any problem. I'm sure there probably are some, but it feels too easy to wield irresponsibly and let bad design creep in.

At a previous job I had, a fairly important bit of code made use of a number of class hierarchies each five or six layers deep, including the massive code smell/design failure of certain layers stubbing out methods on a parent class due to irrelevancy.

To make matters worse, at the point of use often only the base/abstract types were referenced, so even working out what code was running basically required stepping through in a debugger if you didn't want to end up like the meme of Charlie from Always Sunny. And of course, testing was a nightmare because everything happened internally to the classes, so you would end up extending them even further in tests just to stub/mock bits you needed to control.
This is pretty cool work.

Something that’s been on my mind recently is that there’s a need of a high-performance flame graph library for the web. Unfortunately the most popular flame graph as a library / component, basically the react and d3 ones, work fine but the authors don’t actively maintain them anymore and their performance with large profiles is quite poor.

Most people that care about performance either hard-fork the Firefox profiler / speedscope flame graph component or create their own.

Would be nice to have a reusable, high performance flame graph for web platforms.
> AdminController extends UserController extends GuestController extends BaseController

> Cognitive load in familiar projects -- If you've internalized the mental models of the project into your long-term memory, you won't experience a high cognitive load.

^ imo using third-party libraries checks both of these boxes because 1) a fresh-to-project developer with general experience may already know the 3rd party lib, and 2) third party libraries compete in the ecosystem and the easiest ones win
Could this be done with WebNN? If not, how should the spec change?

Re: WebNN, window.ai, navigator.ml: https://news.ycombinator.com/item?id=40834952
Not for me, I hardly use anything GUI apart from my browser. Can’t actually think of anything right now apart from some niche tools. Either way, the fact that I can customise it that easily in Chrome but not in Firefox is a huge factor why I don’t like using Firefox
Then you need to make those functions public, when the goal is to keep them private and unusable outside of the parent function.

Sometimes it's easy to write multiple named functions, but I've found debugging functions can be more difficult when the interactions of the sub functions contribute to a bug.

Why jump back and forth between sections of a module when I could've read the 10 lines in context together?
Until we demonstrate the ability to actually perform meaningful feats of geoengineering and the sustained willingness to commit trillions of dollars to it, this proposal is basically science fiction
> We are so inferior to be able to turn this planet into Venus, like most of the climate Doomers say we're going to.

This is absolutely beside the point. We don't remotely need to turn the planet into Venus for our civilization to collapse.

The question is: how do you feel about probably living in a state of global instability (including war) and famines before the end of your own life? Because that's what seems to be the most likely if we don't magically start giving a shit.
How could the universe be cyclic? There would need to be some strange self-consistency/teleology thing forcing it to collapse each time. Generally seems doubtful.

Are black holes needed right now? If not, you can't argue off selection.
No, as python and other languages amply demonstrate, the semicolon is for the compiler, not the developer. If the compiler is sophisticated enough to figure out that a semicolon is needed, it has become optional. That's the OP's point.
Does Wikipedia protect your privacy?
> It sounds like you don't take fiction seriously, and are showing contempt for people that do.

Investing time in fiction has been shown to increase empathy. Potentially causal.
> "Having too many shallow modules can make it difficult to understand the project. Not only do we have to keep in mind each module responsibilities, but also all their interactions."

Not only does it externalize internal complexity, but it creates emergent complexity beyond what would arise between and within deeper modules.

In a sense, shallow modules seem to be like spreading out the functions outside the conceptual class while thinking the syntactical encapsulation itself, rather than the content of the encapsulation, is the crucial factor.
Thread a few days ago https://news.ycombinator.com/item?id=42470202
> Another red flag is boilerplate. By definition boilerplate is something that you have to type not because it's required to specify the behavior of the code but simply because the language design demands it. Boilerplate is always unnecessary cognitive load, and it's one sign of a badly designed language. (Yes, I'm looking at you, Java.)

The claim that LLMs are great for spitting out boilerplate has always sat wrong with me for this reason. They are, but could we not spend some of that research money on eliminating some of the need for boilerplate, rather than just making it faster to input?
> Yet we want to pretend it will be different with Bitcoin?

Bitcoin is scarce, gold is not. For example, El Salvador just found trillions worth.

It would take a majority of the miners to vote (by running a fork of the software) to increase supply, which goes against their own economics.
It's to reduce sample-and-hold blur. Modern displays typically produce a static image that stays visible for the whole frame time, which means the image formed on your retina is blurred when you move your eyes. CRTs instead produce a brief impulse of light that exponentially decays, so you get a sharp image on your retina. Blurbusters has a good explanation:

https://blurbusters.com/faq/oled-motion-blur/
The problem with a policy like this is that in practice rich people will get antibiotics whenever they (we? hn is well off enough to cont as rich for this perk) want and everyone else suffers. It will for sure also summon the racist underbelly of the US where doctors will believe white sympathetic patients when they say how long they've been sick and question everyone else. This will deal double damage if you try to enforce any kind of quota.

I can afford to go to a nice doctor who will prioritize my comfort and who will literally tell me what to say to meet the criteria but anyone with less choice will have to fight.
On the layered architecture section:

I have seen too many architectures where an engineer took “microservices” too far and broke apart services that almost always rely on each other into separate containers/VMs/serverless functions.

I’m not suggesting people build monolithic applications, but it’s not necessarily a good idea to break every service into its own distinct stack.
Right/Wrong by Juan Enriquez

Very interesting outlook on the ethics of the near future. Gave me a great (new) perspective on many issues.

https://www.amazon.com/Right-Wrong-Technology-Transforms-Eth...
Ask HN: Are living through a quiet offshoring wave akin to the 90s wave?
The job sites of most corporations seem to list development jobs overseas.

It seems to be a quiet offshoring wave in that the news media isn't talking about it this time.
A joyous Christmas to everyone. Calling on Mary is voluntary [1].

[1] https://genius.com/Aimee-mann-calling-on-mary-lyrics.
"Content is king!"

Canon is a platform for fiction creation.
Lean also started at MSR, and nowadays is bootstraped, they use different approaches.
I had the 32" high-def XBR model (it did 1080i which WRAL in Raleigh was broadcasting). It weighed 211 pounds, of which about 3/4 of it was the front glass. Like the other poster, when it was time for it to leave, I had to carefully slide it down the stairs on some cardboard. Just too heavy and awkward to carry.

I bought it at Best Buy. They had put it off on an aisle and not next to all the new LCD and Plasma TVs they were selling. Likely because it had a much better picture than those early flat-screens and was $1200 vs the others that started at $1800 and quickly went up from there.
> Mantras like "methods should be shorter than 15 lines of code" or "classes should be small" turned out to be somewhat wrong.

These hard rules may be useful when trying to instill good habits in juniors, but they become counterproductive when you start constraining experienced developers with arbitrary limits.

It’s really bad when you join a team that enforces rules like this. It almost always comes from a lead or manager who reads too many business books and then cargo cults those books on to the team.
Judge Mehta would be slightly more incisive. :)
With LLM generated code (and any code really) the interface between components becomes much more important. It needs to be clearly defined so that it can be tested and avoid implicit features that could go away if it were re-generated.

Only when you know for sure the problem can't be coming through from that component can you stop thinking about it and reduce the cognitive load.
> The question is: how do you feel about probably living in a state of global instability (including war) and famines before the end of your own life? Because that's what seems to be the most likely if we don't magically start giving a shit.

That's pretty typical for the global civilization. We have a recency bias to the post-ww2 is the norm. That was a highly atypical peaceful time.

It would be surprising that trend continued - even in a climate vacuum.

How do we know that wouldn't happen anyway just given how many people have been born? How do we know that the planet getting 2C hotter is the cause, and exactly how much of the cause it is?
But the language spec for Python is what allows for this, not the compiler. \n is just the magic character now except now we also need a \ to make multiline expressions. It’s all trade offs, compilers are not magic
Computrace was replaced by the Absolute BIOS module, so yes... 100% RAT features have been active for sometime. Whatever legitimate asset recovery and remote drive deletion features it offers, is superseded by potential backdoors on the refurbished PC market.

This is why we can't have nice things. =3
The other approach that can work in some areas is to use a plough to bury the undersea cable in a trench. This is much slower, more expensive, and damaging to the marine environment.

https://www.royalihc.com/offshore-energy/offshore-equipment/...
yes, drumbeats of war take so many forms!
> then it can be shown as part of the rendering of the program on a screen

I disagree with this, and can most easily express my disagreement by pointing out that people look at code with a diversity of programs: From simple text editors with few affordances to convey a programs meaning apart from the plain text like notepad and pico all the way up to the full IDEs that can do automatic refactoring and structured editing like the Jet Brains suite, Emacs+Paredit, or the clearly ever-superior Visual Interdev 6.

If people view code through a diversity of programs, then code's on-disk form matters, IMO.
In the ideal case, sure, but if assuming this can't be refactored, then the code

foo(...):
// init
f1(a,b,c,d,e,f)
f2(a,b,c,d,e,f)
...
f7(a,b,c,d,e,f)

or the same just with a,b,c,d,e,f stuffed into a class/struct and passed around, isn't any easier to reason about than if those functions are inline.
Same deal with DRY, the principle is obviously correct but people can take it too literally. It's so easy to get yourself in a huge mess trying to extract out two or three bits of code that look pretty similar but aren't really used in the same context.