skysight-inc/HackerNews huggingface dataset:
Take a look at https://github.com/wjakob/nanobind

> More concretely, benchmarks show up to ~4× faster compile time, ~5× smaller binaries, and ~10× lower runtime overheads compared to pybind11.
Let's assume I have an array of 10.000 lat/lng-pairs. I want to compute the length of the track. I duplicate the array and remove the first item in the duplicated array, append the last entry of the original array to the duplicate in order for them to be equal in length.

Then I use a vectorized haversine algorithm on these arrays to obtain a third one with the distances between each "row" of the two arrays.

With NumPy this is fast, but I guess that a GPU could also perform this and likely do it much faster. Would it be worth it if one has to consider that the data needs to be moved to the GPU and the result be retrieved?
At first I thought this is a real problem, but the more I think about it, the more it's one of those "I asked an AI how to be evil and it told me!!!!" situations.

The AI has to return something when given a vague prompt like that, and it is also specifically tuned to try to return similar things for the same prompt. It would be much less useful if it wasn't consistent because you wouldn't be able to gradually tune a prompt to get the image you want.

So then their ask reduces to make the AI return a specifically not-stereotypical image of the race even though all that's specified in the prompt is the race. That could be done but doesn't seem much better.

Maybe we should just expose the temperature control on these models and rename it to "diversity"..
Apex Books of Goodreads
Transactions Are Not Locks (2022)
Counter evidence...

His interpretation is similar to mine, higher up this thread. It is therefore far from unique.

I think it is also not at all unique for scholars to hear a saying and assume a meaning from it, and because they wrote it down on wiktionary it becomes the 'official version'. Whereas my version came from working with other tradesmen for a decade...non of whom were scholars, but were the owners of the culture.
The Tao Te Ching opens with almost exactly that subject... though, of course, it also makes you think about it a while first to understand what it's getting at.
I like this approach. Customers should be paying for relatively expensive options like SMS if they prefer it.
Not sure what ELF and C type system has to do with this. C type information can be stored in ELF (as well as many other things). This is how a debugger can know the types.

It is simply a language design flaw of C++ that class implementation (not just templates) ended up in the headers.
This bank sounds like a terrible workplace.
Reddit is destroyed, out of lack of maintenance and leaving everything to moderators who have grown to become figurative monsters.

Lemmy is growing and it s at this "not big enough" phase that makes things seem great . It doesnt scale, but it will be interesting to see how popular it will get before hitting the limit. Hopefully it will find equilibrium at a level that makes it still usable.
Hard drives are the best drives.
I think we're very close to being on the same page. I am against raising animals inhumanely to maximize profit. I do my best to only eat chicken or meat that is free range and ethically raised.

Of course that can be difficult and opens other conversations.

My point is, the reason humanity generally prefers to eat cows over dogs, is not necessarily because we are hypocrites who want one animal to be a family member and another to die.

It's because (moral issues aside) it's a lot more efficient to eat cows than dogs.

Following my previous example, imagine we wanted to raise lions for food. Lions can eat (among other things) sheep.

So to raise lions you first need to raise many sheep, take care of them, graze them, breed them, etc.

A lion can eat hundreds of sheep for many years before it's big enough to slaughter and eat.

This is inefficient. So we logically decided to just eat the sheep. Sheep eat grass that we don't want so it costs us nothing to feed them.

As an atheist that believes in evolution I believe we are just another animal. If its moral for a wolf to hunt and eat a deer it should also be moral for us. To say otherwise is to get into religious territory where we are somehow divine and not just a slightly smarter ape.

I 10000% agree we have gone past the point of just hunting. There is no moral justification for caging 100 chickens in a small space, pumping them full of hormones, killing them as soon as they are viable to eat.

That is torture and no other animal (AFAIK) engages in that behavior.
Humans are very bad on whiteboard interviews. I like giving people a laptop better now
Yeah, that's what stopped me from getting LASIK. Even just constantly dry eyes would probably drive me insane
Small nitpick, XOR is invertible when parameterized by either of its inputs, whereas OR and MOD are not in general.

I.e., (x,y) -> (x,xor(x,y)) is invertible, but (x,y) -> (x,or(x,y)) is not for arbitrary x,y and neither are (x,y) -> (x,mod(x,y)) or (x,y) -> (mod(x,y),y).
I looked at nand2tetris a while ago briefly and I have the impression that it focuses too much on making complex circuits.

The target audience for nand2tetris are people that want to understand how the CPU works, and nand2tetris focuses too much on how to make logic using nand gates leaving other areas uncovered.

I recommend the Ben Eater youtube chamnel, he has a series of videos about building an 8bit computer, that in my opinion is much more informative for a curious person.
I don't see how it compares. Go-app does page rendering in the frontend, in this website's case based on Markdown files. It does have some backend generation capabilities (for SEO, apparently) but that's not its main feature.

I suppose you could probably port templ to a frontend framework through WASM, but I don't know why you would go through the effort when go-app is already there.
There's a big difference between tech demos and production software for a general audience. Generative AI is only barely production software at the best of times, so almost any compromises mean it's not shippable.

This blog post is interesting, but there are so many caveats to it. It's a 1B parameter model which is tiny. Inference takes 20 seconds, which sucks for UX, but also that will be 20s of sustained extremely high load on the device, which means battery drain that would probably make this unshippable as well. It's also worth noting that the images in the blog post were not generated by this process as far as I can tell, they're just stable diffusion examples.

It's good this research is being done of course, but I think we're a few years away from this being shipped in any real form on device.
I don't want to be a product of my environment. I want it to be a product of me
Credit to The Departed, but how did you shape it for you?
Google owes executive $1M after losing gender bias lawsuit
> Most programmers have an intimate understanding of CPUs

Not at all. Very few programmers have an intimate understanding of CPUs. I'm not one of them, for example. And that's without mentioning how most programmers actually write Excel scripts, and most of the rest write interpreted code like Javascript or Python which is somewhat removed from the CPU.

> because they grow up writing code for the CPU

There is not really such thing as "The CPU". The design space of CPUs is large enough for it to contain quite a variation of beasts. For example,

> CPUs were designed to execute sequential instructions

Originally, yes, but - one cannot really make this argument about CPUs since Dennard scaling hit the wall, and scale-out began in earnest.

-----

While the mental model is indeed different, hardware-wise, you should think of GPUs as CPUs, except that...

* You only ever use SIMD registers: 32 lanes x 32bit

* Large register file (up to 256 SIMD registers)

* No branch prediction

* Predicated execution supported, but no if-then-else (sort of).

* Very little stack to speak of

* ~10x L1 cache latency

* A piece of L1 "cache" which doesn't cache anything and you
can just write to it like regular memory.

* ~100x L2 cache latency, no coherence, and it's smaller

* ~100x main memory latency (and no L3)

* A bunch of special registers for implementing geometric thread & lane indexing.

* ~10x memory bandwidth

* ~5x-10x cores than on a CPU

(numbers are for NVIDIA cards, AMD are slightly different; and of course individual cards differ etc.)

-----

Now take all of those hardware differences, and conceive a programming model. What you get is the fanciful tale of a "not-like-a-CPU" processor.

Programming for the CPU, we often do the opposite, i.e. ignore the cores we have, ignore things like latency hiding, careful management of what's in registers and what's in the cache, and just write naive serial programs.
Integrating VBA into excel was an interesting one as the excel team refused to just pull it in as a dynamic dependency but wanted it embedded straight into the deployment to avoid the DLL hell that was common on the windows platform. In addition going from having no automation via something like VBA to having automation required some pretty complex work.

As for the Manhattan Project, you might want to think on the difference between the words complexity and difficulty. And then you might consider that when working with nuclear material to create the world's first nuclear bomb, you would want to keep the complexity as low as possible, sheerly out of self preservation.
Why do you believe you have to drink kombucha?
It only takes access to a DMA-enabled bus (e.g. PCIe) though, to siphon memory contents.
If the counts were kept somewhere else, they wouldn't pollute, or if you could turn off ref counts for everything allocated before the call to fork, then you would also be good.

The other option is you could allocate all the shared data off of the Python heap prior to the fork call.
Two thoughts:

a) By introducing a large number of one or a couple of particular species, you're influencing the demographics.

b) The type of creatures you find in fermented foods are exactly the type of creatures who can help you digest those foods.
> OLE style

The Oberon component model actually differs significantly from COM/OLE. Oberon uses messages and message protocols; COM uses interfaces and the same virtual function tables as C++. Also interesting to note that there is not a single type-bound procedure in the whole Oberon System release 2.3.6 code.
As a youth, I had a computer that was not capable of running The 7th Guest, but I wanted to play it badly. I spent many hours learning about computer hardware and working a summer job so I could upgrade my computer appropriately. I listened to the soundtrack and watched the "making of" video many times before I could actually play the game I had purchased. While the gameplay itself was a bit of a disappointment when I finally experienced it, I have very fond memories of the game.
Garlic is both antimicrobial and a rich source of food (oligosaccharides) for many strains of gut bacteria. It happens to be a favorite additive to fermentation recipes for this reason.
Why was this even posted, it’s been around for years and barely changed. Does not make it bad, but what’s the answer to “so what?”
There was a time I would have agreed abuses like these would end badly, but after seeing the effects of the Snowden and Wikileaks revelations about how nihilistic and evil our institutions can be, I doubt the reaction to these or other surveillance realities will come to much. The main effect of those disclosures was a rise in populism, but even with the loss of the White House for a term, it had no lasting impact and that populist reaction has been effectively quashed.

If you want to effect change, get in earlier when it's still just the crazy fringe talking about it, like 25 years ago, or 25 years from now, and maybe you can steer the course away from the next one.
If you have Forager where you live, I'd highly recommend it. It's a cashew based probiotic.

https://www.foragerproject.com/
> Today, as the U.S. is drawn into wars in Israel and Ukraine

The US has not factually been drawn into either of those wars, though it is sending money and supplies to the people who have been.

> Surges due to wars aren’t new, and there’s always some time lag between the build-up and the delivery. But today, the lengths of time are weirdly long. For instance, the Army is awarding contracts to RTX and Lockheed Martin to build new Stinger missiles, which makes sense. But the process will take.. five years. Why?

Because the Stinger hasn't been manufactured for twenty years; there have been upgrades that involve modifying existing Stingers from stores, but not no new units, so there's no production line, and no supply chain, and most of the bill of materials is components that can't be sourced anymore, so much of the system will need to be redesigned to use currently-available components, and a new supply chain built for it. In fact, the new contract is referred to in much coverage not as a contract for new Stingers, but as a contract to competitively develop a replacement system for the Stinger, which is compatible with existing systems built to use the Stinger. [0][1]

A big part of that is that the Stinger simply aren't needed in very large numbers in the kinds of wars the US fights and expects to fight, where the world's first (US Air Force), second (US Army Aviation), third (US Naval Aviation), and seventh (US Marine Corps Aviation) largest aviation services will be used to secure air superiority and destroy enemy aircraft in the air and on the ground, though they still have some important uses.

(They are, OTOH, much more useful in wars where the US isn't fighting but another great power is fighting on the other side.)

The author wants to blame "Wall Street" and "mergers", but its not Wall Street and mergers that mad the Stinger not a priority for US defense planners, not something that has been needed to be produced for twenty years, and not something for which the supply chain exists.

[0] see, e.g., https://www.defenseone.com/business/2023/06/raytheon-calls-r...

[1] https://www.defensenews.com/industry/techwatch/2023/10/09/us...
All this is part of how the city can get away with being so badly run. It can coast on its beautiful location and the network effect of the tech industry.

Detroit in the 80s and 90s is what you get when a city without so much free ballast is badly run. (Though in some respects it doesn’t seem to have been as badly run as SF. At no point did it have anything like the housing affordability nightmare SF has, just bad urban planning and crime.)
A lot of game dev now happens in high-level engines, often with their own extra layer of scripting engine. Even working on the nitty-gritty of spatial logic rather than using engine-based colliders/detection would be pretty rare.
The only thing I have to say about that is that pH is probably not very clinically relevant. The rest more or less checks out.
These don't appear to be general-public myths, but misapprehensions from fellow scientists working in the field. Most of them are too specific ("Firmicutes:Bacteroidetes ratio", really?) to be prevalent among non-scientists.

Also, this one is curious:

- There are 10^12 bacterial cells per gram of human faeces

They first say "it is incorrect", then continue with "the real figure is typically between 10^10 and 10^11" -- that's just one order of magnitude off, on a 12-digit number. The pedanticism is strong on that one. It only makes sense if they're addressing their fellow colleagues, who are supposed to know better.
Style doesn't mean 100% the same C++ code as OLE.

Of course the Document/Gadgets/Library system was implemented in a different way as OLE.
Tried it. Meh. Uninstalled.
Unless it’s an integer multiple. Shrug.
I've argued to management that it's no less than 50% of the time it took to develop. If you're actually reviewing functionality, you need to understand the original ticket, and at least loosely architect it in your mind.

Anything less than that is basically just checking code style or egregious errors.
Yes, but then the refactor value is dubious. To write simple code you actually need to understand the difficulty of the problem. Why is certain code easier to talk about than other type of code? Why is it better written this way and not another way?

If you don't understand the problem enough you may hack at it in another wrong way.
Looks great, congrats!

Feature request: dedicated command for “forward without color”. Perhaps “L”, as in “lifting the pen”?

I know black on black is treated the same, but I would like the separation of concerns.

I would even accept dropping “C” if this helped (effectively: reducing color palette to two, making “C” work like my proposed “L”).

So perhaps this feature request is about defining custom color palettes.

Edit - random doodling: https://susam.net/cfr.html#B12F2E3RB3CF2E3RE2RE3CB6F2E3R4ER2...
This might be an excellent chance to improve public libraries.
Ask HN: What's an annoyance you have with current logging tools?
Looking to solve some problems related to logging in my free time, curious what problems you guys have.
I like the idea of fake reddit points being crypto tokens.

But I find it pretty dumb that some people consider it an "investment", thus what should just be a silly thing with almost null value, becomes a multi million dollar market (with it's inevitable insider trading, pump and dumps, etc).
Cypress and Playwright: A Comparison [video]
I am also amused that this trait is going to die out.

The trait of changing dietary preferences based on flawed understanding of how organisms suffer and which ones.
> Where have I suggested anything remotely similar.

Apologies for taking the analogy too far.

> I have compared the EU to USSR because of the similarly unaccountable bureaucracy.

This is an opinion that is hard to justify, but whatever.

> This has to be the main confusion of our time. Just because every border is not exactly perfect, it must mean that every border that has ever been drawn is completely arbitrary.

I'm not claiming borders are completely arbitrary. I am, however, claiming that more often than not, borders are drawn such that they separate tribes that were previously quite close culturally. Other times borders are drawn through tribes.

Over generations, a strong state manages to assimilate the tribe, and tribes on either side of the divide drift apart as individual members drift toward the national identity.

I make no judgment on whether that is good or bad. I am only stating that the concept of national identity accelerates this process. I obviously do not dispute that the German language, and many parts of German national identity, were shared across modern day Germany prior to its current form. I am only arguing that these cultural regions are more flexible than you seem to think.

The problem with the argument that borders are logical delineations between tribes, cultural, or linguistic regions, is that you have to base that on some criteria. If you choose language and culture, we will have to deal with Alsace-Lorraine, again... and so on, and so on.

Everyone has a right to fight whichever state they are subject to, but they don't have some objective moral high ground just because they want to be free of it. Sovereign citizens can make all the arguments they want, nobody will take them seriously. That's one extreme end of the scale. The area is obviously very grey when it comes to real independence movements such as the Scottish or Catalan. However, at the end of the day, all that matters is whether you have the power on your side to do it, and you are willing to pay the price. We cannot establish any logical framework for when independence is objectively warranted, without also allowing things like sovereign citizens. You have to put the threshold somewhere, and as soon as you do, people will fall on either side based on personal opinion and it won't be logical any more.

I wish we could move beyond the "EU bad because it's a super-state that takes away sovereignty" arguments, because it's so silly. They're rooted in a subjective belief that the EU is bad. That's a completely acceptable opinion to have, and it is one that can have evidence presented for and against it. The sovereignty argument is an emotional excuse with no rational basis.
Is it worth hiring ex Amazonians?
"Warning: Unmaintained"

I like Refined Hacker News. https://github.com/plibither8/refined-hacker-news
I am saying as long as two brains have the same structures, the g factor varies in the production part, instead of the learning part.

By learning I mean possible learning. The connections between each brain are different and how you store the information and link it to other memories are different between humans, but you can teach any human Calculus if you can find the right method to teach them. The same for teaching any human language. Only if their brain was neurodegenerated, those structures don't exist properly.

Where it gets interesting is when the structures are different. You could still teach GPT-6 Calculus, and it could reason it. But how it learned Calculus required massive training data, to be able to understand language and then the Calculus text.

With humans, we need little training data because the rest of the brain does the reasoning part and language part.

So, AGI does not need to replicate the human brain or the structures within it, but an AGI will need to become more efficient at calculations. So, eventually, GPT-9 could reason language with a much smaller dataset, because it has a similar reasoning portion of its code like how our brain has a specific region to process language. Instead of data, it has been optimized in its code structure itself. So it needs only less data to do the same computation.

To put it simply: No. You do not need to replicate the structures that exist in the human brain. But, yes, the AGI will have structures that are segmented to process those same inputs and outputs a brain region also does. An AGI will have an optimized language structure, and optimized optical structure, an optimized reasoning structure, and as much sub structures as it needs. It won't look like our brain, but it won't look like a mess either. Otherwise, we would be using more compute than necessary or possible in the near future to create something that could be done with less compute.
Yep, the science is clear and the severe weather events are right in front of you on multiple continents. Some level of climate change is already baked in. Yet the political debates are not reflecting the current situation.
I hope we make the changes in time to avoid the worst models but I doubt that we will.

Read “the ministry for the future” by Kim Stanley Robinson. I believe that there are many possible actions that will improve the situation but there are lots of people downplaying it or just flat out ignoring it.
You need to try it and see if it is any faster. NVIDIA has a drop-in replacement for numpy: https://developer.nvidia.com/cunumeric.
> These don't appear to be general-public myths, but misapprehensions from fellow scientists working in the field.

I am a biochemist and read a few relevant journals regularly, and that’s precisely what I’m talking about.
I had a bad back and got a HAG H09 with the medium back but a long seat tube. I worked at home for several years in it. Now retired if my back hurts, sitting in it is the best remedy! Works for me.

Also set up your workplace correctly. First adjust chair so that feet are lightly on the floor. Bend your arms by your sides at 90deg. Where your hands are there should be you desk/keyboard. I have 2 bricks under each leg of my desk to make that work. Then your monitor at eye level - I have a laptop screen lower but a second monitor as main work place at eye level. Works for me.
And a JIT in later versions, with the support for slim binaries.