skysight-inc/HackerNews huggingface dataset:
> The standard states you cannot make [two] unique_ptr<> with the same pointer value within the same compilation unit.

> We got this error because the “compiler will only allow one unique_ptr per address” mantra is mostly kaka.

I'm curious where the "enforced one unique_ptr per address" idea comes from. I don't think I've ever heard of it before, and I don't see any language implying that in the current (?) draft standard [0]. If anything, I think I'd be a bit surprised if such language existed - after all, creating multiple unique_ptrs to the same place is technically harmless as long as you call release() on enough of them so you don't end up multi-deleting the common object.

This also seems like one of those things where "cannot" is more "doing this is a bad idea and you may run into UB" than "the program will not compile if you do this" due to guaranteed enforcement being statically infeasible.

The other issues including the QML stuff sounds more like unclear ownership semantics across libraries. I feel the advice here is slightly off-target; if you don't know the ownership semantics of the libraries you're using neither using smart pointers nor avoiding smart pointers are going to be a magic bullet to solve your issues maybe unless you take things to the extreme and allocate everything on startup.

> Someone thinks it is a good idea to use Smart Pointers then passes the value to library functions written in C and other languages. Usually these things are in their own threads.

Like this. The issue isn't the smart pointers, it's that the ownership semantics of the library function(s) weren't properly accounted for. unique_ptr::release() exists for a reason, after all!

> When trying to track down a ghost like crash, nuke all of the Smart Pointers in the code. Make them raw pointers and delete them when you know it is safe.

I'm somewhat surprised this is the advice given rather than something like sanitizers and/or valgrind, since those could be significantly less invasive than ripping every smart pointer in a program. Then again, the author states they work on medical devices, and I'm not sure whether sanitizers or valgrind are available for those.

In addition, the second sentence is pretty much "don't write bugs", which is technically correct but not exactly helpful; why not "look at your smart pointers again and ensure they aren't violating their ownership guarantees"? You would basically be doing the same thing - lifetime analysis - either way. Heck, you can even re-scope your smart pointers so they'll only go out of scope "when you know it is safe".

I don't think I've heard "near heap" and "far heap" used in such a way before, either. Not that it's bad; just different.

[0]: https://eel.is/c++draft/unique.ptr
Too bad they're ignoring the opportunity. And laying off people because sales have gone down :)
If your argument starts with "Sure, he micromanaged the bombing of innocent civilians but", then I think you've gotten lost in the technicalities of being right on the Internet.
fun fact, that SIM card in your phone has the same CPU :)
Hitting the last brick was the worst. Instead of pausing the top maybe swap the playing fields so I have more control over the paddle/ball? It took over 2 minutes just to hit one brick in the smaller one
It's best to have grown up with correct understanding of those terms, thanks to age and English being a second language. E.g. I knew what "zipping" in context of .zip was before I knew the word "zipper" (fastener). Or, it took me many years to learn that "icons" aren't just the tiny pictures on computers, but also paintings of saints. Etc.

Skeuomorphism, whether visual or linguistic, is just making things more confusing.
I'm running small hosting service for me and my friends powered by ISPconfig (postfix/dovecot/rspamd) for more than 10 years, no issues at all and it's really easy to set it up these days. Just recently I installed new Debian 12 server, two-three hours work tops to setup 10 domains, mails, etc....
Hyundai Uni Wheel electric drive system could revolutionize EV design
Because the kind of person that buys an expensive electric car now won't keep it 20 years.
There are security hazards around writable + executable code. They don't apply to patching before execution (e.g. the install step) since nothing needs to be executed at that point. I don't think the security concerns apply during load time either - what does it matter if the text section is edited before it gets marked read-only&executable? It just means you're running a slightly different program, exactly as if it was edited during install.

In the memcpy case, where the library call is probably in a dynamically linked library anyway, it's particularly trivial to bind to one of N implementations of memcpy at load time. That only patches code if library calls are usually implemented that way.

Patching .text does tend to mess up using the same shared pages across multiple executables though which is a shame, and somewhat argues for install time specialisation.
Where can one read the English for that?
Fascinating. I had no idea, thank you.
I always thought it was a good idea to assume all the other drivers around me were likely to be incompetent idiots. Obviously not the case, but it means when you do encounter one you will be ready.
Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
1. Silicon Vally carries a lot of weight to a point it increases prices outside of it

2. Venture Capitalism has gone wild in the US

3. the true cost of living, as in if you want proper health insurance + healthy living + security/peace of mind in the US is can be quite high, much higher then in the EU even through taxes are much lower (creating a huge gap between what seems to be the cost of living if you don't look into details and what is)

4. UK is not in the EU anymore, and the effect of leaving it are starting to hit hard
Do you also believe in magic or just wizards?
Personally I wanted to see if this llama can generate the required docker files to run itself just from pasting in the instructions from the my parent commenter and asking for docker/docker-compose. It did and it works.
The inner browser top(acting like a paddle) is not detecting collision with the ball

Firefox Version 120.0
From the rumors it's russian puppets like Macron and Sholtz
> I'm surprised Mercedes is so low in the list. They've traditionally been one of the more reliable German brands, that's why they're used as taxis in many countries.

Oh, my sweet summer child. I can tell you still have fond memories of the pre-2010 Mercedes era ...

Who's gonna tell him?
This looks great, when will you release a Firefox extension?
Very timely article, highly debatable approach. Not really worth following.
> Toyota engineers cramped tens of thousands of lines in a single file and the lines freely update hundreds of global variables.

While the "single file" part is not great, using all global variables in an embedded system can be a good thing. I've worked on a critical piece of software for aircraft that did this deliberately, for safety reasons.

One of the most important criteria for that software is determinism, which means no dynamic allocation since it is hard to predict how the allocator would behave. The stack can also be very limited in size, so what remains are global variables.

It also makes debugging easier. You know exactly which variable corresponds to which address in memory. And with a probe, you can know the full state of the program at any time. That's also how we tested "impossible" conditions (for coverage): by overwriting specific memory addresses.

Many of the reasons why globals are bad didn't apply there. We had no concurrency, no resources to share with other processes, in fact, we didn't even have an OS at first, Nothing was dynamic, all arrays were of fixed size, including strings, which were array of characters padded with spaces to the appropriate length.

Of course, we documented usage of these variables, proper up-to-date documentation was not an option as it was certified software. It was one of the most boring job I ever had, and it is probably for the best.
The Israeli government is not a trustworthy source.
The ZX81 has the older RAM chip (just one!) that required an extra -5V bias voltage. A failure mode is that either the non-switch-mode power brick and/or the internal voltage regulator can fail and deliver 9V or more into this pin, with very unhappy results.
will be reading the comment until bedtime
African culture also has a lot of influence in Brazilian culture. But anyway, there is another uniqueness aspect aspect, which is the urban development of Japan.

I visited African tribes, and of course it is different than a big city in Brazil, it is just as different as an indigenous tribe here in Brazil, or a more rural village.

Japan uniqueness, I believe, comes from its urban development. Rich, clean, polite, functional big cities is the uniqueness that I see in Japan that it’s not common in any other place in the world. I didn’t find that in LA, NY, Paris, London, Dakar.

Maybe Copenhagen (from the ones I visited) would match some aspects of it, but then it’s not as big as Tokyo, nor it is blended with the tradition as in Japan (or I am used to Nordic traditions more than Japanese)

I am convinced that Japan has some unmatched uniqueness which make it more different of other countries than other countries are among them.
What about "glue" instead of "zip"?

(I guess that's just the same as "paste", but British English, so maybe not the best idea!)
Again. It's a matter of perspective. If Biden didn't ask Xi to attend the APEC meeting, Xi probably wouldn't bother to attend. But based on your viewpoint, I guess no one needs to worry about China anymore because it's about to collapse. And whatever reserves China has is just all illusionary/fictitious, just like everything else in China.

I also wouldn't necessarily take current market values of companies to be their actual worth. A product from e.g. Apple and e.g. Xiaomi are 95% similar and more than likely sell roughly the same amount of e.g. phones. Apple's value is in its brand, not necessarily that the goods are vastly technologically superior, etc., nor its capabilities as a company to produce goods.
This idea that “the HN crowd” is an amorphous blob needs to die. Some people use the expression to mean “people like me”, others to mean “people with characteristic I don’t like”. The people who frequent HN are more diverse than the people who use that phrase think.

Stern is known to many technologists who follow the Apple world, as she has gotten exclusive interviews with the higher-ups like Craig Federighi. Those interviews have been referenced and praised by well-know Apple commentators on the Accidental Tech Podcast, Daring Fireball, and more.

I’ll say it again: the fact that you do not know her does not make her a random, it makes you one of the day’s 10000.
He has a very "old-school" personal website: https://www.eckhardkruse.net
I bought CX-3 5 years ago and it's a really fun (and reliable) car to drive and I say that as someone who previously was daily driving a sporty roadster for many years :-) Unfortunately they stopped producing the CX-3 line and replaced it with CX-30 which is very similar, but I prefer the look of CX-3..
That sounds super weird to me. Even a minor spoiler for me ruins everything. My goal is to be immersed in any kind of entertainment I spend time with, and spoilers are my absolute worst enemy.
i'm thinking two themes here: the X in xcurl and the famous MS-ism "embrace, extend, extinguish"
With archive.org 14 day loan account:

https://archive.org/details/imaginarymagnitu00lems

for purchase:

https://www.kobo.com/ww/en/ebook/imaginary-magnitude-1

and via some zlib proxy if you're going full pirate.

https://annas-archive.org/search?q=Imaginary+magnitude
So far in my life I've never felt the desire to own a car. Also, I live on the other side of the world from her.
It is a join on element index, could be a default if a join field is not set?
The scary thing is he got an extremely pro Trump judge in Texas, who is famous for making nonsensical rulings that even the current Supreme Court heavily disagrees with. So there’s a good chance he will win this and it will drag out in court for ages, despite the fact they are very obviously protected by the facts of the matter and the first amendment.
To me the way it's formulated in the press release sounds a lot like what is usually said of someone on the road to a "distinguished engineering fellow" role - lots of respect, opportunity to command enough resources to do meaningful work, but no managerial or leadership responsibilities.
> then I think you've gotten lost in the technicalities of being right on the Internet

Legality is entirely technical. When we lose sight of that, and turn legal terms like war criminal into colloquial ones, we sap the terminology of strength. If everyone horrific is a war criminal, then it’s all just banal evil. Nuremberg attempted to draw a line. This type of rhetoric loses its clarity.
I think the problem isn't that you can't come up with story which makes sense. Problem is that you if you focus on other aspects of process for example opening/close part instead of mechanism how it's closed, or other meanings of word zip as making certain sound or a fast movement and come up with other equally meaningful metaphors. Once multiple of them get used you have a problem, even worse some of those uses can form new associations. That's how you end up with 5 completely different meanings associated with a word:

* zip(sound)<->zip(quick movement) no idea of history

* zipper <- zip(sound)

* zip tie <- zip(sound?)

* zip(function) <- zipper(side by side interleave)

* pkzip <- supposedly from zip(quick movement), although some other sources suggest similarity with opening/closing a container aspect. Which also somewhat makes sense as you can more easily extract or add individual files to a zip archive, which many other archive supports don't support. Seems like some of the early software packaging had illustrations of zipper, so I guess they embraced the multiple meanings of zip.

* zip(general compression) <- pkzip

* zip drive <- quick?

* zipper -> plastic teethless zipper (closer to zipping function) -> Ziploc -> strengthen the open and close meaning without zip sound or interleaving

Does anyone have any sources of origin for computer science use of zip meaning combining multiple lists? All the examples using actual word "zip" in wikipedia are from somewhat modern programming languages no earlier than 1990, lisp is older but it doesn't seem to use the word zip.
Linux/Firefox: Paddle doesn't move and the paddle popup doesn't bounce the ball.

Linux/Chrome: Paddle doesn't move but the paddle popup does bounce the ball.
He might not need it to do scientific work, but he might want to read the bible, koran etc for his/her spiritual development.
Sentient AI driven extinction is absolute fiction at the current state of the art. We don’t know what sentience is and are unable to approach such facets of our cognition such as how qualia emerge with any level of precision.

”What if we write a computer virus that deletes all life” is a good question as you can approach from engineering feasibility perspective.

”What if someone creates a sentient AI” is not reasonable fear. At current state of the art. It’s like fearing Jaquard looms in the 19th century because someone could use them for ”something bad”. Yes - computers eventually facilitated nuclear bombs. But also lots of good stuff.

I’m not saying we can create ’sentient program’ one day. But currently we can’t quantify what sentience is. I don’t think there is any engineering capability to conclude that advanced chatbots called LLM:s, despite how amazing they are, will reach godhood anytime soon.
No not strong, just considering making the switch.
You're either pretending or incapable of understanding the point that is being reiterated in this thread.

The OpenAI company, that was supposed to be non-profit open research think lab, has been taking investments of dozens of millions from different funds, while producing highest quality research material for the public good. Up to the point when the CEO sold it for Microsoft's $1B deal that solved their infra & GPU resource problems for… completely locking the company as an unofficial division of Microsoft Research. This deal, essentially, entirely distorted the raison d'être of the non-profit company, closed the "open research" part, and made it a for-profit extension for MS/Bing services.

Here, perspectives fork in two ways: either you believe it's a great development that you can benefit of by using closed paid OpenAI/Microsoft commercial services, OR you believe that metamorphosis of the leading open AI research shop into it's exact antipode is embodiment of disappointment. From your boorish, superficial remarks, I can see which side you are on.

I don't care if Sam Altman took money from Microsoft, or Sam Bankman-Fried (before he was charged), or US govt — that entirely misses the point. I do care that Sam Altman orchestrated a complete relegation of the research lab to an overpowered for-profit "Clippy" assistant for a single huge corporation, depriving us from the open research. He had to work on attracting investments from several corporations and other entities to avoid centralisation of control. But we see that he acted according to his own personal agenda, not in the interests of the company's charter. In that perspective, I don't give a damn if he could have raised a billion or not as a non-profit company. I'd rather it was $300-500M that would have kept the company open than a $1B and what we have today. I'd rather the company didn't survive this crisis than what we have today.

I gave you the benchmarking of other LLM models that are several months (up to a year) behind GPT4 in performance development. I don't care if they are founded by megacorps or not, if they do what non-profit "Open" AI no more does, i.e. publishing open research and supplying us open models. Comprehend? Your argument of "if it weren't for Microsoft OpenAI wouldn't exist" is irrelevant, if OAI no longer produces open research that it supposed to; it better wouldn't otherwise. Let others for-profit multi-billion corps take over, if we can't have better.

To further refute your $MSFT shill demagoguery, narrowly focused on compute accelerators, I'll add that Abu Dhabi's TTI (UAE gov money for academia) has produced and released open model Falcon 180B, while French nonprofit research lab Kyutai has just raised €330M. In Europe, for a minute, not even SV! Apparently, funding open research is possible? Q.E.D. I'd rather Ilya and Andrej move to this lab than peddling "Laundry buddy" GPT Bing API tokens BS disgrace, but it's up to them.

And you can stay in your delusions where only OpenAI+Microsoft is capable of leading AI research, lead by an ego inflated CEO. Don't forget to scan your eye pupils for $worldcoin.
Unveiling the Power of Self-Attention for Shipping Cost Prediction
He's speaking like he's been drugged or something. Bizarre.
Many of us might feel that way internally or in private when we’re frustrated, but few would go up on stage, say that in front of the whole world and wait for applause afterward. Regardless of his political opinions or personal temperament, he seems to have lost touch with reality.
Lock your computer when you go to the bathroom
Teams allows you to put people in a virtual lecture theatre called "Together Mode" where the individuals are cut out. I presume it sends the alpha along with the video.
The performance they quote also seems to be in x86 compatibility mode, I wonder if you can bypass that and compile for the native architecture.
Europe was in chaos for centuries up until the end of WW2. Since WW2 western powers have worked to keep the middle east in chaos.
It's pretty hard to draw this line in Python because all built-in types and functions are effectively C extensions, just compiled directly into the interpreter.

Conversely, you can have pure C code just using PyObjects (this is effectively what Cython does), with the Python bytecode interpreter completely out of the picture. But the perf improvement is nowhere near what people naively expect from compiled code, usually.
> Eichmann had no part in the holocaust because he just organized the trains

Eichman was an SS officer! In what way did he lack command authority?
DeepSeek
You may be right, but we will need to wait and see.

China is not the first to take a crack at this. Attempts to replicate and catch up with American and European chipmaking and computing efforts go back to the dawn of the discipline, and had involved some of the largest economies of their times, yet here we are.
mad, senile and twisted world-view billionaire who has army of blind followers and wants to be world sheriff.
rants could easily overflow into shit happening on streets (see what orange idiot did couple of years ago in the state).
There are things that you can build with a dozen $30 rtlsdr dongles that would be export controlled.

The bar is pretty low these days. It reminds me of the time Phil Zimmermans PGP was considered a munition for USA export purposes
> That's what "effectively" means.

Sometimes hard things are hard, and it turns out a distributed E2E messaging system is one of those things. Same goes for writing a fit-for-purpose C compiler. Doesn't make GCC or the C standard any less open.

> Only one non-Element server is there is "Production ready", and it's dead.

Yeah I think reasonably you're looking at Synapse, Dendrite, and Conduit -- all Element-written. I think the argument was "it's too hard to implement", but someone's done it three times, so it still seems like that's wrong.

> They probably mean the DAG-like structure of rooms, which is a horror to implement, and even more horrifying to implement efficiently.

Op used "blockchain" as a pejorative, which is why I was responding "if you think Merkle trees are blockchains (and I would argue you shouldn't), you think a lot of perfectly fine software is a blockchain." If the argument is that implementing a distributed database is hard, well yeah, it is.

> It does not need to be "proof-of-anything" to be a blockchain

Not strictly, but you need a way to suppress fraudulent chains. Blockchains are Merkle trees with the requirement that the deepest tree is authoritative. They attempt to ensure this by requiring proof-of-*, which makes the creation of a fraudulent tree very computationally intensive, and therefore unlikely to ever catch up to the "real" tree. Matrix has nothing like this.

> There is a consensus protocol between home servers, and it fails terribly, leading to room resets.

Yeah, I think probably a lot of this goes away w/ the switch to MLS. But not all of it, they chose AP out of CAP (correct IMO) so this is just gonna be the way it goes. Your other options are deal with the service being down while it becomes consistent--which would happen constantly--or welcome back IRCs netsplits.
I don't watch movie trailers anymore, maybe it's nostalgia but nowadays they are absolutely awful and full of spoilers, as if spoilers were a feature and not a bug. I guess it has something to do with how the movies themselves are put together. The use of stupid plot mechanisms such as "multiple dimensions" to be able to kill a character and then revive them again, or use multiple disposable versions of the same character for a few minutes at a time, etc. I guess if you don't care about such blatant cheating in the movie itself you won't mind a bad trailer.

That said, my approach nowadays is to consider watching a movie as a kind of risk-taking. I watch the movie without knowing or expecting anything; sometimes it will be worth it, sometimes it won't, but when it is, then DAMN is it worth it! On the other hand, if I watch the trailer then I know for sure that it will not happen. So... I take the risk.
Caddy is a JavaScript tool manager made with the main aim to manage only two things - Node.js and Pnpm.
One mistake is too many when human lives are on the line.