skysight-inc/HackerNews huggingface dataset:
Don't all thread implementations leak unfreed memory when a thread exits?

I mean, how would the thread know that the memory needs to be freed? It cannot know that the application hasn't ROT13 encoded the pointer, passed it to another thread, and that thread plans to use the memory.
Err, yeah...
Here's how I understand it.

One important (and beautiful) thing to understand about C is that declarations and use in C mirror each other.

Consider the same type written in Go and C: array of ten pointers to functions from int to int.

Go: var funcs [10]*func(int) int

C: int (*funcs[10])(int)

Go's version reads left to right, clearly. C version is ugly.

But beautiful thing about C version is that it mirrors how funcs can be used:

(*funcs[0])(5)

See how it's just like the declaration.

Go's version doesn't have this property.

So, now about the *.

Usage of * doesn't require spaces.

If p is a pointer to int, you use it like this: *p

And not like this: * p

And since type declarations follow usage, therefore "int *p" makes more sense.

There is also a good argument about "int *p, i". In the end, these usages follow from how the C grammar works.

There are many more musings about that on the web, but here is one of my favourites: https://go.dev/blog/declaration-syntax.

Edit: HN formatting.
Cavemen did not have candy. Cavemen had fruit. Fruit is energy-dense, easy to harvest, and it keeps longer than meat--it's the perfect food for an omnivore, so we evolved to crave it.

And then we figured out how to make stuff that's even sweeter and more energy-dense than fruit, so it tastes even better and we eat loads of it even though we're not starving hunter-gatherers and don't the extra energy at all. But that didn't play into our evolutionary process.

Of course sweet isn't the only flavor we crave. I don't know exactly what combination of tastes makes meat appealing, but the fact that there's no single "meat" taste doesn't mean we didn't evolve to crave it. It just means that's the chemical pathway that our taste buds happened to follow.
Like raw /etc/passwd support or passwd support via PAM? Should always use PAM over reading passwd/shadow directly
I'd like to read the full statement. Of course CNN doesn't link to it or provide the full text. The actions of Hamas are beyond unconscionable, but unconscionable acts by Israel in the past arguably caused the recent terrorist attacks.
This is a great comment.

And not only that, a lot of history involves interpretation of motives, which attempts to boil down rather complex, multi-faceted decisions into one overarching motive which makes it easy to paint historical events in very positive/negative lights.
Previous dscussion on the article (https://www.experimental-history.com/p/im-so-sorry-for-psych...) this one is responding to: https://news.ycombinator.com/item?id=37315292
"We are rolling Kagi Assistant beta for all our current Ultimate plan members (new Ultimate plan users will be onboarded daily). Assistant includes four dynamic AI modes - Research, Code, Chat, and Custom - powered by cutting-edge language models like GPT-4 and Claude-2 (on the Ultimate plan), all in one package. Stay tuned, as we plan to make the Assistant available to all members in the coming weeks." [1]

1: https://kagifeedback.org/d/2136-sep-28-2023-assistant-beta-a...
I think they mean writing code using compiler intrinsics, which are one layer above assembly (and how you should write most “assembly” these days). Many of the modern intrinsics in silicon are sufficiently complex in how they manipulate the data that it is effectively impossible for a compiler to detect applications of those instructions to normal idiomatic code. If you want to use those instructions, you will have to use them directly because the compiler can’t do it for you. The nice thing about intrinsics is that they look like C functions so they are easy to use.

There is definitely a growing cottage industry for writing high-performance kernels using this increasingly rich set of intrinsics. I find myself writing a lot more intrinsics code than I used to.
Reported by numerous news agencies in early 2023, e.g.

https://www.reuters.com/technology/tesla-video-promoting-sel...
Accuse? The commenter said they "asked ChatGPT to give us the Clifs [sic] Notes."
Hmm, and apparently you can also ask it to block shit like pinterest from your search results?
> Oh yes, I've experienced a similar problem with ChatGPT. I asked it to look up a certain fact and provide references, and the ones it did provide ended up being quasi URLs which didn't actually work.

To be clear, the references Quick Answer provides are legitimate, since they are taken from the search results. The results for my name provide a reference to my namesake's obituary and also to my public profile on the institution website. ie "[ToasterOS] died in 2013[1] and he currently works as a [Job Title][2]". It's just a pretty unique situation where a full name search returns an obit AND a living person's profile on the same website. ChatGPT will indeed create completely bogus references when asked, but this isn't that.

> This seems interesting, though I'm secretly (or not so, now it's on here) hoping it's not another lazy ChatGPT integration

I believe it's GPT but it is their own implementation of FastGPT instead of an API thing.

> This is intriguing -- may I ask in what way it's better? Are there any anecdotes you could share?

I search a LOT. In fact the billing page says I've made 540 searches since September 24th; maybe that's higher than most or significantly lower, I don't know. I find search is my main entrypoint into the web; I rarely use bookmarks or anything, and I'll often search things that I want updates on.

As a VERY silly example - I play Old School RuneScape (OSRS). OSRS has two Wikis - an official one, and a crappy one hosted on Fandom. Google tends to prioritise results from the Fandom wiki, which is full of inaccurate information as well as all the other warts Fandom has. Kagi immediately put the official Wiki ahead of that, and also gave me the option to completely remove the Fandom Wiki from future searches. I realise using a search engine as an entrypoint to a Wiki is quite silly, but Wiki searches tend to require exact terminology whereas a web search allows me to be more fuzzy. So, I'm generally finding I can search on Kagi for the functions of things in the game, and subsequently be lead to the correct Wiki article on the correct Wiki right away.

To be a little more real though - I am finding Kagi does an excellent job of cutting out dead internet cruft out of results. One of my favourite pieces of content on the web is a winemaking guide on creating 32-bit winebottles[0]. Spammy, automatically generated articles like this one don't appear in my results for things. I instead find that legitimate content is put ahead of it, and so I find I can trust the top results more. And, in cases where bad content is being prioritised - I can just block it.

I haven't got much use out of them yet but I also quite enjoy the Lenses feature, which allows me to hone in my search to a specific "part" of the web. I also have presences in two countries, and it's nice to be able to select which country I want my search to "take place in".

And then there is just... it's not Google. I hope it remains a decent company for a long time, because I really am happier knowing I'm paying for a service with currency instead of just...incidentally via my participation.

[0]: https://www.slowine.com/how-to-make-a-32-bit-wine-bottle/
Fruit that isn't sweet is less energy-rich and less appealing. That's by design. In the wild, sweet = lots of sugar = evolution wants you to eat this.
Can someone provide some sort of overview as to how these sort of pathways, or on a even more detailed level, specific protein receptors for certain diseases, are identified?
A fair call, but to quote their privacy policy:

> Unlike "free" search engines, we do not log searches or in any way tie them to an account.

So if you trust them to do what they say, then yes, that pretty much solves the issue. If not, well...
That's like saying "bash specifies a large number of character patterns which may not be used as arguments."

No. It just requires they be quoted.

---

The SQL standard forbids certain "regular identifiers," however it places no such restriction of "delimited identifiers." I.e. use quotes.
I am betting in 5 years apple will come up with a 1" or 3/4" sensor for their phones. iPhone 20 maybe.
How LSP could have been better
Even Autopilot can't be trusted in my experience. I've had it slam on the breaks countless times when the light changes (going under an overpass or through a tunnel). I've had it swerve over yellow lines, or onto the shoulder, or into a turning lane while I wasn't planning on turning. The only time I ever use it is when I'm going straight on a highway and I need to blow my nose... then I quickly turn it off.
Ergo he has no incentive to target certain laws. Nothing I said was incorrect
OMG, what a flash back for me. When I was about 14, my favorite uncle, you know, that cool uncle, he became a lawyer but when he was in college, he worked part time as a DJ at an underground FM rock station in Portland Oregon. Later, they went out of business and he was handling their chapter 11 or whaqt3ever. He knew I was a nerdly kid and was enthralled by all things electronics and said he would take me there and I could salvage some things which, now I realize he probably paid for but as a kid I had no idea at the time of course. They had this amazing TEAC 4 channel reel to reel, and boxes full of tapes. I grabbed that tape deck, the tapes and a sound board, a mic and whatever else. I was in heaven of course as a dumb kid. Later in college, I used that stuff and me and a some friends had a shitty punk rock band. But as a kid, way back in the 1970's I, for whatever reason, decided to listen to some of the tapes before recording over them. What I found on them was, The Fuggs, Captain Beefheart, Frank Zappa and a lot more. I changed/warped my life and led me to be in a punk rock band, but also, got my Masters in EE and eventually, a responsible life blah blah, but... It was so cool, like I some how tapped into some secret trove of... no idea. But I used that tape deck to make a demo tape that got us a single that well, no one cared about but for about 10 seconds, it was like I was cool. Sorry for the kooky memory. :)
20 years from now, I'm imagining "Fully Full Self Driving, For Real This Time, No Take-Backs".
A google-free chrome … from Microsoft. Doesn’t sound so attractive to me.
I think the effort would be better spent teaching kids how to think and reason about information.

If we keep trying to play whack a mole, we don't really get anywhere.
We have a use case for some of our stuff that's not too dissimilar to part of what you're talking about here. One of our products is basically a trace-based verification tool that consumes a bunch of different kinds of telemetry from a bunch of different layers of a tech stack across a bunch of different devices and then leverages that data to do system-level testing. It turns out that it's not too hard to instrument the tools of business processes in a manner similar to how one might instrument embedded devices or REST APIs. That business process data can be written to our causal graph datastore like anything else and then be analyzed for fault-localization or used for verification just like machine telemetry from a rover, satellite, or robotaxi would be.
> With more connectivity, the stakes for war will be greater
> The fact that I will not let it attempt to navigate certain intersections, either out of embarrassment or risk of getting hit, does not diminish the fact that my car will give it the ol' college try.

If there are regularly occurring street driving situations it can't be trusted in for safety reasons, even (perhaps especially) it if it "will give it the ol' college try" in those circumstances, I suppose you can argue whether that indicates that it is fraudulent to describe it as "Full Self-Driving" or if it is merely defective Full Self-Driving, but I think that that's a fairly fine distinction in what Tesla has done wrong.

> and should be required to give an extended free trial to everyone to see exactly what it is that FSD can and cannot do

That seems to be exactly the wrong solution for a system which, by your own description, is unsafe in some of the situations one would reasonably expect "Full Self-Driving" to handle.
No - the earthquake was strong enough to send a tsunami to Japan. Its epicentre was on the west coast: https://en.m.wikipedia.org/wiki/1700_Cascadia_earthquake
> Walkable neighborhoods in my town are outrageously expensive

Yep, bingo. People asking whether we really want these kinds of development only need to look at the price of housing in desirable walkable town centers. The home-buying market craves more of it.

I’m in a fairly small town but the price of a townhouse walkable to downtown is easily double an equivalent single-family detached suburban house a 10 minute drive away.
I’ve also seen Kagi’s result quality start to decline in the last few months, and I now automatically bang to Google for anything local.

My unsourced theory is that they’ve optimized getting their search costs down, at the expense of some edge cases that don’t show up in their KPIs.

I’m still a satisfied customer, the product makes me two Starbucks coffees a month happier than I would be still using Google for everything.
Yes, you can certainly do that, but I wonder how long the appeal and approval process took? I'd bet it's measured in months.
Don't do this. This isn't what you're supposed to be doing for a better search experience. To provide a more satisfying experience for users, it's important to make sense for both Bing and Google to keep most traffic within their own platform. You can already monetize the search engine, so please prioritize delivering high-quality curated search results instead of diverting your efforts in this direction.

If this is the path you envision for the future, You don't have the resources to compete with the billions in spending or the vast amount of data that companies like Google possess. Focus on your core product.
> There's no such thing as "failed" or "successful" when it comes to community management. There's "better" and "worse", and it's subjective. Communities are gardens, and the goal of managers/moderators is to try to make it nice for the folks you want to happily grow there.

Well put! That is my sentiment exactly.
I like it! I'm going to use that!
this aws scapegoat keeps getting worse with no real merit behind it
Early career - job hop
Mid to late career - stay longer unless something is seriously wrong
It’s always been a fond memory from high school watching one of my teachers with a TEAC TASCAM 4 track Cassette Portastudio.

He was just there doing a rhythm track using a pair of those things you shake that rattle (pretty sure that’s the technical term for them).

It was a keen insight at the time on how music was created and recorded, and something as a consumer we take for granted.

We may be aware of the process of music recording or film editing in the abstract without really realizing the complexities involved. We’re used to the final products, not the bits and pieces they’re built from.

I thought it was a really amazing piece of kit, while realizing its limitations and why it ran at double speed. (there’s only so much you can squeeze onto a thin cassette tape). But there he was in his living room with this thing on an end table, it was an empowering piece of tech.
masked operations are really useful for dealing with the tail of loops. You can add a single masked instruction to deal with the last few elements rather than having to do a scalar loop at the end to deal with the bits that don't fit nicely into a register. Doubling the number of registers is also great. It's basically free (since CPUS have lots of virtual registers) and can lead to way fewer load and store instructions. Most importantly, these changes are basically free from an area and power perspective. A 2x wider register will give you ~1.8x better performance, but it typically comes with ~1.5x higher power and wasted silicon for non-vectorized code. EVEX gives you all the really nice to have features that might only give you 20% better performance, but do so while lowering power and not taking up extra die area.
Any context? Do we know how big the model is? Is it based on some open source model? Home built?
The memory could be freed from another thread with a classical allocator—but this one passes it back to the allocating thread, leaving the question what happens to it?
Big time into home automation using Homeassistant. Dashboard creation is frustrating at sometimes but outcome is incredible.
Amazing how, given a clear demonstration of right-wing "cancel culture" in action, the immediate response is to invent a purely hypothetical scenario to vilify left-wing "cancel culture." A clear demonstration -- as if one was needed -- that the right's objection to "cancel culture" is that they believe it is a tool only they are allowed to wield.
We had a couple of these in primary school, as late as early 90s, as part of the "computing section", an extra-curricular activity with a couple of us attending a couple of times a month. We typically practiced BASIC commands and writing a couple of example "programs" - taking the keyboard input, producing results of arithmetic operations or producing lines on the screen, which was absolutely magical.
This is nice. This being Kagi, which I'm paying for, it's the first time I use a public LLM that I trust to serve me more than it serves anyone else. More of this, please. Quality and speed will come.
First AI tutor launched in Australia to help students with their exams
In a world first, Australian students will have access to cutting-edge AI to act as their tutor and study guide as they enter the high school senior year exams including the HSC, VCE and QCE.
Yes and no. PCs from beginning was very simple business machines, for accounting, but later benefited from free market and cheap clones.

As for me, VGA was wonder, I now think from marketing considerations, PCs way was to make Super-EGA, with little colors, but high resolution. But, sometimes wonders happen.

Amigas, or to be more exact, Commodore computers, from beginning made as home computers, with decent integrated graphics and sound.

Unfortunately, Amiga parent company was very aggressive against clones, and from what I hear, was not effectively managed (or may be, just tried to made too complex architecture). So after some time, initial superiority was lost, and PCs not just dominated market, but also, once become better technically (because of constant competition on free market).

Approx after 1987-middle 1990s, Amiga become technically lagged behind forever, then parent company bankrupt and now, each year, Amigas become more history artifacts.
Maps can be downloaded offline and directions calculated locally. Only really need updates for traffic (which could be broadcast, which I think some old gps receivers had)
Ollama have prompts properly defined for you in the library.but back to OP that is the problem I am facing too even with ollama.
One word per second isn't what I'd consider fast...
It has happened in some of my previous posts.
Ask HN: How to break into sales engineer role?
Hello,

How’s your experience has been breaking into this role and working as a sales engineer
There are mitigations for these security issues. The most important is that you only email the user a random code which is bound to the browser login attempt session. The user is required to enter the code they received in that session. This removes the need to trust any of the parties you listed.
Have been using Kagi for around a month and a half now and have been loving it. The results do feel better compared to Bing, but hard to describe how exactly, they just do.
How to Efficiently Advance Your Software Engineering Career
They also “do not log searches or in any way tie them to an account”.

So you essentially have to make the same leap of faith as you would with a commercial VPN.
It’s not fast when a million people are hitting it. Lolz
Yeah this is similar to how facts are not copyrightable, but data is. You can't just extract rows out of a data file one-by-one, into a variable named "just_a_fact", put it back into a new file and pretend that you didn't derive it from the original.

Courts are not dumb. Trying to scale up a technicality to circumvent the law usually does not fly.
Kagi doesn't need to win, and they know that. Kagi just has to focus on serving a tiny percentage of Google power users in order to be profitable and induce Google search to compete.
There is no way this is true. Only explanation is you work for AWS :-).
GCP strength is it's cost. Yes may be the support could be better. But can you care to explain what "hacks" are you talking about ? And the claim that K8S(from Google) is better on AWS than GCP is absolutely false
Practically untrue and untrue don't mean the same thing.

You could argue that they could be treated as if they mean the same thing (in some limited scope), but that is different to them meaning the same thing, and, since such an argument is not presented in the Wikipedia page (rather, a contrary position is presented by Russell in the second quotation on that page[0]) you would have to make that argument yourself.

[0] He makes an explicit distinction between what he ought to call himself if being purely logical and what he practically is (an agnostic and an atheist, respectively).
15 minutes is not a long time. Easily understand doesn't mean instantly understand with no background reading.
I’m baffled by your comment. This wouldn’t benefit the government at all. They just want their money and wouldn’t want to collapse a major American enterprise over money they will collect by any means necessary.
This is one of my biggest loves of Kagi. I have all pintrest domain's blocked and it's great. And it's really easy to add a block too so when I get a result for a website that is useless or I don't like on to the blocklist it goes!
Respectfully, I don't know about that. I wouldn't trust it if my life was on the line. I go for walks and bike rides when it's -25C to -30C air temperature (before windchill) and I've had old samsung galaxies and newer pixels both crash if I take them out to take a photo. I presumable due to voltage dip.
Being able to set up custom search weights would be cool. Like up-weighting results from sites you like and down-rating sites you don't.
Maybe try reading more than one sentence.

"We care about data protection: We will be good stewards of any personal information you share with us. We do not log or associate searches with an account. More at our privacy policy."

literally on the main page. Smh.
> how many fingers on human

oh my, its providing Quora links as sources, its worse than I could have possibly imagined.

https://quora.com/How-many-fingers-do-you-have

https://quora.com/Do-people-have-8-fingers-and-2-thumbs-or-1...

https://quora.com/How-many-fingers-does-a-normal-human-have-...
Seems to me like there are still plenty of relationships in a chat app. Postgres can be used like a NoSQL database via JSONB too if you want.

I think the truth is that you should use the simplest, most effective tech possible until you are absolutely certain you need something more niche.