MurphyA/hacker-news huggingface dataset:
by bsder | 2025-08-10 23:59:17+00:00
> I don't really know how else to put it, but it's vaguely like a C derived spiritual cousin of Lisp with structs instead of lists.

Zig comptime operates a lot like very old school Lisp FEXPRS before the Lisp intelligentsia booted them out because FEXPRS were theoretically messy and hard to compile.
by liamdgray | 2025-08-10 23:59:42+00:00
Abstract: "Associative Memories like the famous Hopfield Networks are elegant models for describing fully recurrent neural networks whose fundamental job is to store and retrieve information. In the past few years they experienced a surge of interest due to novel theoretical results pertaining to their information storage capabilities, and their relationship with SOTA AI architectures, such as Transformers and Diffusion Models. These connections open up possibilities for interpreting the computation of traditional AI networks through the theoretical lens of Associative Memories. Additionally, novel Lagrangian formulations of these networks make it possible to design powerful distributed models that learn useful representations and inform the design of novel architectures. This tutorial provides an approachable introduction to Associative Memories, emphasizing the modern language and methods used in this area of research, with practical hands-on mathematical derivations and coding notebooks."
by mrandish | 2025-08-11 00:00:19+00:00
> Do you share this concern?

I have no concern because there's nothing about a low carb diet that restricts any essential nutrients. On evolutionary time scales, consuming a significant amount of carbs is a recent and unprecedented change to human diets. There are three types of macro-nutrients: protein, fat and carbs. For most of history our hunter/gatherer ancestors ate far more protein and fat than carbs, which is why they were in a ketogenic state most of the time. It's only in the last hundred years in Western democracies that carbs have become overwhelmingly dominant in human diets. In terms of long-term dietary impact, highly-processed manufactured foods and intensive factory farming (which are mostly carbs) are the massive uncontrolled experiment on the broad population that's worth being concerned about. That's the new thing for which there's no long-term data whereas keto has tens of thousands of years of proven success in humans. Going from the Standard American Diet to keto is opting out of the uncontrolled experiment and returning to what we know works. Chronic obesity and Type II diabetes are diseases of diet and they weren't common in humans until the last hundred years.

As for my personal health and longevity, keto has certainly added at least a decade to my life because before keto I was significantly overweight and had been diagnosed with pre-diabetes, high blood pressure, high triglycerides and bad HDL/LDL. I also had chronic sleep apnea as well as IBS/GERDS. I was on five prescribed medications to treat these issues. By the end of the first year on keto those serious health problems had completely resolved and I was off all five medications. To be clear, keto itself isn't some miracle cure. These problems were caused by my obesity and unhealthy diet. Keto helped me not be obese and to eat a healthier diet richer in nutrients and with far fewer manufactured and processed foods. My previous diet was making me sick.
by JonChesterfield | 2025-08-11 00:00:31+00:00
Outperforming languages in its class is doing some heavy lifting here. Missing comparison to wasm interpreter, any of the java or dot net interpreters, the MLs, any lisps etc.

Compile to register bytecode is legitimate as a strategy but its not the fast one, as the author knows, so probably shouldn't be branding the language as fast at this point.

It might be a fast language. Hard to tell from a superficial look, depends on how the type system, alias analysis and concurrency models interact. It's not a fast implementation at this point.

> This means functions do not need to dynamically capture their imports, avoiding closure invocations, and are able to linearly address them in the import array instead of making some kind of environment lookup.

That is suspect, could be burning function identifiers into the bytecode directly, not emitting lookups in a table.

Likewise the switch on the end of each instruction is probably the wrong thing, take a look at a function per op, forced tailcalls, with the interpreter state in the argument registers of the machine function call. There's some good notes on that from some wasm interpreters, and some context on why from luajit if you go looking.
by jfagnani | 2025-08-11 00:00:55+00:00
I think events are a bit unsung and underutilized in a lot of web projects. Events are really powerful and you can build systems with them that can replace proprietary framework features with interoperable protocols.

Context: Components that need a context value can fire an event to request it. Any other element or listener higher in the tree can handle the event and provide a value via the event object. Event are synchronous, so you can get values synchronously. The Web Components Community Group maintains an interoperable context community protocol: https://github.com/webcomponents-cg/community-protocols/blob...

Suspense: Components that have some pending some work, like awaiting data to render, can fire an event to signal that they have pending work. The event can carry a promise, and then a suspense-boundary-like component can handle the event and display a spinner until all the pending work in the tree below it is finished. Another protocol: https://github.com/webcomponents-cg/community-protocols/blob...

Error boundaries: A component can fire an ErrorEvent if it fails to render, and an error boundary component can display the error or some other user affordance.

Child-parent registration: A child component can fire an event to tell some parent that it's available. This is useful for using components as plugins. A <code-mirror> element could have children that provide language support, syntax highlight themes, etc.

Actions: Redux-like actions can be done with events instead. You can build a nice data-down, events-up system this way with very little code and very loose coupling.

Event buses: components can listen for events on a top-level node like document, and they'll receive every event of that type from every other dispatcher.
by toomuchtodo | 2025-08-11 00:00:59+00:00
I'm unsure how this isn't political. Some states are economic engines of the US, some states are net takers of resources. States that have resources by way of being economic engines should protect themselves from the coming impact of climate change (if one doesn't believe in climate change, or the impending risk it presents, don't bother replying, there is no common ground to be had). That's it, that's the thesis. How California is handling fire code and mitigation currently is somewhat immaterial; more importantly, they have the resources by way of their economy to fix the problem if and when they choose to (to spend to de-risk against fire risk). They have the economy of a developed nation state. They can spend whatever is required when they decide to appropriately spend. If you don't have the resources to defend against climate risk, or don't believe in the risk, you have little recourse against it.

This could've been a collective action problem at the nation state level; it no longer is due to political choices by people who believe a global climate phenomenon is a hoax. So those who can afford it must go it alone for the foreseeable future.
by owlstuffing | 2025-08-11 00:02:27+00:00
> Aggregation is not inheritance, rather a workaround, using delegation

Although the designers of COM had the right idea, they implemented delegation in just about the worst way possible. Instead of implementing true delegation with multiple interface inheritance, similar to traits, they went pure braindead compositional. The result: unintuitive APIs that led to incomprehensible chains of QueryInferface calls.
by yencabulator | 2025-08-11 00:02:58+00:00
No need for a reboot, echo 9999 >/sys/module/ttm/parameters/pages_limit

You're talking about an allocator policy for when to allow GTT and when not, not the old firmware-level VRAM split thing where whatever size the BIOS sets for VRAM is permanently away from the CPU. The max GTT limit is there to decrease accidental footguns, it's not a technological limitation; at least earlier the default policy was to reserve 1/4 of RAM for non-GPU use, and 1/4*128 GB=32GB is more than enough so you're looking to adjust the policy. It's just an if statement in the kernel, GTT the mechanism doesn't limit it, and deallocating a chunk of memory used by the GPU returns it to the general kernel memory pool, where it can next be used by the CPU again.
by jdiff | 2025-08-11 00:05:20+00:00
It's reasonable for tools to produce reasonable, predictable output to enable them to be used well. A tool can have awful, dangerous failure modes as long as they're able to be anticipated and worked around. This is the critical issue with AI, it's not deterministic.

And because it always comes up, no, not even if temperature is set to 0. It still hinges on insignificant phrasing quirks, and the tiniest change can produce drastically different output. Temperature 0 gives you reproducibility but not the necessary predictability for a good tool.
by unfocused | 2025-08-11 00:05:23+00:00
Agreed! I have a 2020 Macbook Air (Apple Silicon) and it's been at 81% for about a year. Heck, it's now at 82% according to System Information, but Coconut Battery says 77.4%. Not sure which is correct any more, and if Apple is doing some funny business. Battery cycle count is at 845, with a manufacture date of 2020-10-05. So 1,770 days old.
by syphia | 2025-08-11 00:05:35+00:00
> The Framework Desktop with 64GB RAM + 2TB NVMe is $1,876

And it's ~$1000 to build a PC with a similar CPU, somewhat larger form factor, and fans. Unless the AI processor is actually useful for AI, and you need that, this is silly.

Framework desktop dimensions are 20.6 x 9.7 x 22.6 LWH. My IM01 case is 37.2 x 18.5 x 28.7. It won't be going in my bag, but it fits nicely on a desktop.

Pre-builts are so expensive these days...
by hinkley | 2025-08-11 00:06:33+00:00
The other responder suggested that the coordination is handled differently.

If you know the periodicity of a signal you can violate the Shannon Coding Limit. It's just that most signals you have to have a high enough sampling rate to detect the period, which gets you back to Shannon.

The LHC signal has out of band data that you can use to establish exactly when to take a sample, and the samples happen exactly 40 million times per second. So once you tune the time offset, the period is precise.
by gexla | 2025-08-11 00:06:36+00:00
No, it's a practice. You're not necessarily building technical knowledge, rather you're building up an intuition. It's for sure not like learning a programming language. It's more like feeling your way along and figuring out how to inhabit a dwelling in the dark. We would just have to agree to disagree on this. I feel exactly as the parent commenter felt. But it's not easy to explain (or to understand from someones explanation.)
by thomassmith65 | 2025-08-11 00:08:25+00:00
When I watched the 2007 Apple keynote where Jobs announced the iPhone, it completely blew me away.

These days the smartphone doesn't fill me with awe anymore the same way many earlier and even subsequent inventions still do.

It's possibly because I could carry on quite easily without a smartphone. The greater loss would be for me to live without a mobile phone (of any variety), a computer, or a portable music player.
by chrisco255 | 2025-08-11 00:09:04+00:00
1620 was after the advent of the printing press and mass production of paper and the spread of reading and writing generally. By then we recorded everything.

We don't know as much about who conquered whom in pre-Colombian America, other than standout examples like the Incans, Mayans, and Aztecs. Oral histories fade rather quickly especially when decimated by war, famine, or disease. But even when conquered and absorbed into a society, how quickly would the descendents forget if properly integrated? A few generations is all it would take. We speak English because there was a society known as the Angles that I know almost nothing about. Are there any pure blood Angles still around? Who knows? They were conquered by the Saxons and no one can today tell you the difference. I'd reckon that the Anglo or Saxon distinction went away rather quickly.
by bevhill | 2025-08-11 00:10:30+00:00
People in red states can't afford those materials. Half of the houses in the Midwest still use PVC siding and wooden stilts in crawlspace. The first hot day or heavy rain they see and they start melting and molding. But that's all you can do on $30,000 a year from your Walmart job when every other employer in town leaves for the coasts.
by gexla | 2025-08-11 00:11:30+00:00
Love this, and it's so true. A lot of people don't get this, because it's so nuanced. It's not something that's slowing you down. It's not learning a technical skill. Rather, it's building an intuition.

I find it funny when people ask me if it's true that they can build an app using an LLM without knowing how to code. I think of this... that it took me months before I started feeling like I "got it" with fitting LLMs into my coding process. So, not only do you need to learn how to code, but getting to the point that the LLM feels like a natural extension of you has its own timeline on top.
by awesome_dude | 2025-08-11 00:11:37+00:00
One of the weirdest things I am seeing is the pushback from employers on "Remote"

We have actual studies showing that remote workers are more productive, have higher morale, and save themselves and their company money (no commute, no office rent)

And yet employers are still doggedly determined that employees sit in their toxic offices being miserable.

Employers are worse off (lower productivity), employees are worse off (lower morale).
by danielmarkbruce | 2025-08-11 00:13:08+00:00
math + computer science is a no brainer if you like it and are smart enough to do it.

There is a strong argument that understanding the relevant math (which isn't rocket science) behind AI gives one a leg-up. Most people just can't be bothered to do it and it's really important and actually practical in the modern world. Linear algebra, calculus, probability + statistics, optimization, discrete math.
by al_borland | 2025-08-11 00:13:13+00:00
How is it supposed to know what parts you want from the output?

If you only want part of the output, select the part you want a copy it. A dedicated copy button not copying everything would be very confusing and frustrating. The only time I ever use copy buttons are when I was absolutely everything, without worrying about getting extra stuff from the previous/next post or weird invisible characters.
by JustExAWS | 2025-08-11 00:14:02+00:00
Don’t you think a) everyone is thinking the same thing and it’s going to be common place in 2029, b) he is going to gain enough skills at a tier 2 state school (I graduated from one so that’s not meant to be an insult) to stand out , c) that the companies that need the top talent are going to recruit people graduating from there?
by giantg2 | 2025-08-11 00:17:16+00:00
So according to you CA has the resources to rebuild themselves and should protect themselves, but you consider it immaterial that they are choosing not to protect themselves with fire code and insurance changes? This sounds classist - we can do whatever we want because we have money, but we don't want to pay taxes because that might help other states that are also making suboptimal choices. But both Florida and Texas (your examples) are also donor states. It's hard to find what the basis is for your thesis when it seems to be applied irrespective of the facts.
by mezentius | 2025-08-11 00:18:03+00:00
The excellent book, “Rites Of Spring: The Great War and the Birth of the Modern Age”—which uses this infamous incident as a jumping-off point from which to explore Modernity as an incipient artistic and social phenomenon that accelerates during the interwar period—concludes that this account of the crowd’s reaction was, at the very least, highly embellished, and not dissimilar to tall tales about crowds fleeing from the Lumière brothers’ image of a train bearing down upon them. But since these stories are contemporary to the events, they do nevertheless tell us something important about the spirit of the age.
by jasone | 2025-08-11 00:19:13+00:00
The former merely exposes a `BlogPostRepository` class. The latter requires some mechanism for creating a generic object of concrete type, which is a lot bigger change to the implementation. Does each parametrized generic type have its own implementation? Or does each object have sufficient RTTI to dynamically dispatch? And what are the implications for module API data structures? Etc. In other words, this limitation avoids tremendously disruptive implementation impacts. Not pretty, but we're talking PHP here anyway. ;-)
by makeitdouble | 2025-08-11 00:20:40+00:00
To dig a bit on this, setting up the review itself isn't trivial. I felt we were just applying different biases, which could be fine, but it also wasn't catching up internally.

For instance I personally use and abuse the online GitHub/gitlab interface a lot and am extremely familiar with both. But looking at my colleagues, many do code reviews locally, diffing in their IDE.

Some also don't navigate the code the same way and tend to work "bottom up" instead of "top down", which puts them at a disadvantage in time limited settings when they might be better reviewers in general.

Referring to the other comment wishing to get full A3 printout to look at the code, we also had a guy who used his personal laptop to interview and felt lost as he usually reviews code on his giant work screen.

Having the candidate choose could be the best of both worlds, but that' a lot more work on the interviewing side.
by grishka | 2025-08-11 00:20:48+00:00
Probably your ISP, or more precisely, the ТСПУ box they were required to install. You can use this tool to test your connectivity to these hosting providers that the government dislikes: https://hyperion-cs.github.io/dpi-checkers/ru/tcp-16-20/

Ken himself did block access to his website from Russia for a while after 24/02/2022, but right now it loads for me after a CF captcha.
by bongodongobob | 2025-08-11 00:22:13+00:00
It ended up being less, yeah, but not by that much, maybe 15%. Thing is, there was no "extract methods" possible. It was an old user script creation tool that had been modified over the last 10 years. If it were that easy, I would have just done it myself.

What this shows me is that it truly understands all the things this script was supposed to do and was able to organize it better, while not breaking any functionality.
by NobodyNada | 2025-08-11 00:23:49+00:00
There's a huge semantic difference: a type with zero allowed values can never be constructed.

This means that a function that returns an uninhabited type is statically known to not return -- since there's no way it could construct an uninhabited value for a return expression. It also means you can coerce a value of uninhabited type into any other type, because any code which recieves a value of an uninhabited type must be unreachable.

For instance, in Rust you can write the following:

let weekday_name: &str = match weekday_number { 1 => "Sunday", 2 => "Monday", 3 => "Tuesday", 4 => "Wednesday", 5 => "Thursday", 6 => "Friday", 7 => "Saturday", i => panic!("invalid weekday number: {i}); };

Because panic! aborts the program and doesn't return, its return type is uninhabited. Thus, a panic! can be used in a context where a string is expected.
by ailives | 2025-08-11 00:24:00+00:00
Should they instead have said its essence dissolves into an indeterminate flux, its ontological status contingent upon shifting power geometries that animate its spectral form; as praxis, it is enmeshed in the web of institutional stratifications and independent forces shaping its ephemeral manifestations. Its cultural function tethered to contextualized modes of existence, rendering its artifacts intelligible only through mutable currencies of meaning circulated within- phantasmic tokens of a fragmented, non-linear chronicle. Absent a unified narrative, its obscure history flickers as a series of discontinuous incursions across a formless field of institutional spaces, a territory whose contours and boundaries are perpetually reconfigured; it is this field- permeable, unstable, and overdetermined- that warrants investigation, not the fleeting, insubstantial entity itself?
by kjs3 | 2025-08-11 00:24:51+00:00
I guess I grew up in 'then', and that sort of 'assumption' is so depressing. But I get that some people only want to see medicine, and by extension science, as black-and-white.

"We haven't cured diabetes" (only made massive strides in control and management and came up with whole new classes of drugs that attack root causes). "We haven't cured cancer" (except the ones we have cured, the ones we came up with vaccines to prevent (HPV), and came up with all sorts of innovative and less unpleasant treatments extending lifespan with less side effects), "Haven't cured blindness or deafness" (except for the types we have cured).

And haven't cured death...well, I guess you got us there.

But, yeah, it's low hanging fruit from the anti-science playbook to focus on what hasn't been done, and pretend that means nothing has been done.