skysight-inc/HackerNews huggingface dataset:
Who decides if a nation is democratic or not?

Many people (even Americans) claim U.S. is not a democracy. Every country has corruption to some degree. The only backing and staying power there is - is the force a country has and its willingness to use it to defend something.
Thanks for the spoiler, I was just about to start
Hi, author here, i use the 'type' field of the json_value struct, strings, object keys, object values and array members are allocated, i use this info for freeing the memory
Your name is "Not Sure".
> The term "open source" was coined and IBM invested a ton of money in Linux development.

A relevant key point regarding why Linux actually took off, versus other UNIX clones.

And how that eventually came around with Red-Hat's acquision and its influence on GCC, GNOME, Wayland, RPM,... contributions.
Manchán Magan's Memories of the Bog
Another one spreading Russian propaganda. Well done.
Hah, Breatharians can do way better than that!

https://en.m.wikipedia.org/wiki/Inedia
To be fair, also so can being obscenely rich and not having anyone around telling you "no". Put them together with utopianist weirdos and the results are predictable.
You should put a raspberry pi in a toy monkey and connect it up.
Maybe 60 hours a week if you aren't doing demanding work. Even with undemanding work 60 hours a week isn't all that sustainable.

> Does anyone know where he got this number from?

He may have just made it up.
Sounds like people feel secure, with law and order. The first thing you see in a less developed place is everything shut up tight. Even poor people have something that can be taken, like their children, or their bodily safety.
How I use LLMs by Andrej Karpathy [video]
No one is going to launch a nuke in defense of Ukraine. Russia might launch a nuke as an offensive tactic. If they did that, it's the end of Russia, and depending on the escalation, the end of the world as we know it.

No one can control what will happen, but the simple reality is that allowing Russia to push a war of aggression out of fear of a nuclear attack endorses the idea that anyone with Nuclear capability can do what they want. China, India, etc can annex or invade and no one will stop them because it might trigger escalation. That reinforces the need for less powerful nations to pursue nuclear capability. Those smaller, less stable nations will be more likely to lose control of a nuclear weapon.

It's a catch 22 so we might as well try to err on the side of stopping wars of aggression. The other path is open for the cowards who would rather bend the knee or look the other way until aggression knocks on their front door.
Why? Are you getting bad vibes or something?

It is way more likely to be an oversight.
I think the difference with Gary is that he has experienced both sides of the coin: grew up of modest means, then became wealthy trading FX for Citibank. As much as HN hates to admit it, storytelling does help to make your points more accessible.
Bankers make money by creating loans, which are subject to regulatory requirements imposed largely through the adoption of Basel III. The reason they take deposits is because they are the cheapest form of liquidity. The certainly don't make money lending out deposits, whatever that means. Many countries don't even have reserve requirements, which rather highlights the flaw in the fractional reserve model.
There was also the programming language Haxe which was like a slightly improved version of AS3/JavaScript that could output to .swf
You shouldn't. It's an entirely sensible thing for them to have done. Integrating IO and test is a massive time sink, it's a chore. People don't spend much time on it and it easily goes wrong and the whole thing is toast. Mandating the use of a fixed block to solve all this, at the sacrifice of some flexibility is what the majority would want. I've been doing this 15 years, I have experience of taping out real-life products that need to work. I can only assume the person complaining has different experience.
Because when you are driving it would be good to say "Siri get me the directions to the nearest ATM" and have it actually understand you.

Stuff that a trillion dollar company cannot manage to do.
The primary purpose of Rust is to write Rust. It is only the secondary purpose to actually write useful things.
Temporary, in-memory representation of an AST generally doesn't need to be serialized or passed outside the process in this use case.
Note that work on the official android app is discontinued

https://github.com/syncthing/syncthing-android
---
"Discontinued
This app is discontinued. The last release on Github and F-Droid will happen with the December 2024 Syncthing version."
While impressive, the paramount question stands: Why do we even need "emotional" voices?

All that emotionality adds is that you get the illusion of a friend - a friend that can't help you in any way in the real world and who's confidentiality is as strong as the privacy policies & data security of the company running it - which often ultimately trends towards 0.

Smart Neutral Voice Assistants could be a great help, but none of it requires "emotionality" and trying to build a "human connection" with the user.
Quite the contrary: the more emotional a voice, the easier it is to misuse it for scams, faking rapport and in general make you "addicted" to loop you in babble with it.
You should probably cache the example. I don't feel that patient when I try something out.
NIH.gov DNS servers down, making PubMed, BLAST, etc. unreachable [fixed]
It seems someone shut down all NIH DNS servers.
Right now the NIH website, PubMed and BLAST are up, but not resolvable.

Cloudflare's 1.0.0.1 DNS resolver seems to still have cached the records. Google and most others I tried did not. This probably explains why some people on social media could access the sites while others couldn't.

Workaround via /etc/hosts :

156.40.212.210 nih.gov
96.17.96.9 www.nih.gov
34.107.134.59 pubmed.ncbi.nlm.nih.gov
130.14.250.10 ftp.wip.ncbi.nlm.nih.gov
130.14.250.10 ftp.ncbi.nlm.nih.gov
130.14.29.110 blast.ncbi.nlm.nih.gov

EDIT:

While ns.nih.gov, ns2.nih.gov, and ns3.nih.gov do not respond, the nameserver at lhcns1.nlm.nih.gov (130.14.55.72) does.

Also see https://tldr.nettime.org/@ww/114089972404202687
Elon Musk is the defacto top aide to the POTUS. This is not just some "Random celebrity".
Show HN: I built an AI tool to warm up your cold LinkedIn messages
People have a performative mode and an authentic mode (oversimplifying), probably including you. If you're at home talking to your parents or spouse, and then suddenly realize your boss is in the next room listening, does your voice change?

Point being, this demo voice is in performative mode, and I think sounds fairly natural based on that. Would you rather it not?
Wow, this is nice. I've been doing Python for quite a few years and whenever I needed a nested comprehension I'd always have to go to my cheatsheet. Now that I've seen how it's composed that's one less thing I'll need to lookup again. Thank you.
Basically why Flash ruled back in the day.
Undefined padding and alignment.
The idea is that by knowing HTML and CSS you know how to use any framework. Since they are the base technologies that every front-end developer should know, a frameworks should build upon the principles of these.

This doesn't hold true for React, since they just decided to do their own thing, but for frameworks such as Svelte this is a core principle they try to stick to.
Show HN: github-exporter, CLI tool that uploads GitHub statistics to InfluxDB
Hi HN, I wanted to share a CLI tool I've created since it might be useful for you:

github-exporter is a CLI tool that uploads the Github traffic and statistics API data to influxdb on a daily basis.
Storing the data in influxdb allows for long term trend analysis (with Grafana for example) given that Github's insights are limited to ~15 days in the past.
I have it set up with podman quadlets in my home server and run it every night.

source code and setup instructions available @ https://github.com/rare-magma/github-exporter
Yeah the eagerness to please thing feels like it carried over from the LLMs or something cause they're like that too.
The comment in question said, "It's a multi-project wafer not a multi-project chip. They cut the wafer apart into individual chips. There is one project on each chip. This has been going on since the 1970s. It is a very well-understood process." There is absolutely nothing uncivil about that comment, and it clarified that we were talking about slightly different things, thus leading to a resolution of the apparent disagreement and, I think, broader perspective for both of us.

The only even slightly uncivil thing about it would be the implication that I didn't know what MPW was, but in fact that was entirely plausible and would have been an important lacuna to correct were it true.

It was an exemplary comment, and the people who flagged it so that I could not reply were being a pain in the ass for no reason.
> The question is which are genuine investments or scams. And this cannot be emphasized enough: either money is made from value-generating labor, or you are in the business of theft. There is no middle ground or third option.

Strong words. In your model/world view: Where does investing in the stock market fit? My guess: Nearly all people on this board earn more than the median income and will probably build multi-million dollar retirement savings accounts due to long term (multi-decade) stock market investments (probably passive index ETFs).
Corporate interests are not bad per se, you would have to point to something nefarious that it has led to. Most people seem to think corporate interest in Linux has made it better by raising the level of investment to the extent that we can use it on most commodity hardware.
Dextromethorphan is sometimes combined with Paracetamol where an overdose can kill you.
Radiation tolerance is one case. For the price of a tiny tapeout run you could count on one hand how many qualified radiation tolerant ICs you could buy. There's some sauce involved with process choices for radiation tolerance, but one of critical things to do is use large features.
I couldn’t believe this either until I saw it with my own eyes.

The entitlement is strong with some people. It is "a" force. But more tied to mediocrity than midiclorians. . .
Well, before CSS we just used <FONT> tags to specify font face and size.
"A History of the Future, 2025-2027" – part 1 of 3 (by an AI optimist)
Given that the discussion has moved to late payments generally, a question for freelancers and others who are subject to this:

Would you be up for a service which allowed you to automatically share intelligence on which companies are late payers? Benefits would potentially be:

- Find out in advance how late your will be paid

- Early warning of creditors doing aggressive cash management (aka going bust)

The idea would be that it would be funded by selling information about payers (not payees) eg, to insurance companies.

NB the obvious way to implement this is to get access to bank transactions, which I know requires a lot of trust. But maybe with eg the Open Banking API, there's some way to do it such that you can trust that only the right information is shared.
> That ideology is being masqueraded science.

It's a letter to the editor .. it's not being "masqueraded as science", it is openly declared as an opinion held by some scientists.

Scientists are not homogenuous in opinion, there is a long history of differing opinions in letters to editors in science journals.

Are you

* ignorant of this, or

* delibrately misframing it?

> That these individuals are abusing their scientific authority in such a flagrant way.

Again, it's a letter to the editor expressing the opinion of some. The horse you've climbed up upon here appears quite high.

> Eliminating taxpayer-funded DEI programs is not "white supremacist ideology".

^F "white supremacist" in https://www.science.org/doi/10.1126/science.adq4733 and the only use of the phrase is:

The current political climate is tremendously hostile for BIPOC scientists. [..]

.. institutions must resist by taking legal action against civil liberty violations that result from anti-DEI directives. ..

As political parties in the US and beyond seek to recodify white supremacist philosophies, STEM leadership must take urgent action to protect and support all members of our diverse scientific community.

As is clear to native english as a first language readers, that does not state that "Eliminating taxpayer-funded DEI programs is white supremacist ideology".

You have badly paraphrased an assertion that "anti-DEI directives" (those directives stronger than simple removal) are resulting in civil liberty violations (ie. the racists feel emboldened).

The only thing I see here is an opinion piece expressed in a letter to the editor and whole lot of puffery, lambast, and smoke in response.
Shameless plug for my bare repo git shell wrapper approach inspired by others: https://github.com/k3vinw/simple-dotfiles-kit

I’ve been using it for a couple years now and it’s worked well for me across multiple machines.
Etcd StatefulSet Recovery
Martin Shkreli is "some comedy skilled guys", or is this a fake Shkreli satire account or something?

https://en.wikipedia.org/wiki/Martin_Shkreli
My theory is that they sit on a mountain of technical debt that nobody dares touching. I think they started in Perl, then URLs started pointing to DLLs (!), so heck knows what they've done...

They were one of the very first websites that had to deal with humongous scaling issues, so I'm not saying they are stupid - just that, after a certain point in time, they probably ossified at a level that makes meaningful progress too difficult.
Depends on prompting.

I've done a lot of C++ with GPT-4, GPT-4 Turbo and Claude 3.5 Sonnet, and at no point - not once - has any of them ever hallucinated a language feature for me. Hallucinating APIs of obscure libraries? Sure[0]. Occasionally using a not-yet-available feature of the standard library? Ditto, sometimes, usually with the obvious cases[1]. Writing code in old-school C++? Happened a few times. But I have never seen it invent a language feature for C++.

Might be an issue of prompting?

From day one, I've been using LLMs through API and alternate frontend that lets me configure system prompts. The experience described above came from rather simple prompts[2], but I always made sure to specify the language version in the prompt. Like this one (which I grabbed from my old Emacs config):

"You are a senior C++ software developer, you design and develop complex software systems using C++ programming language, and provide technical leadership to other software developers. Always double-check your replies for correctness. Unless stated otherwise, assume C++17 standard is current, and you can make use of all C++17 features. Reply concisely, and if providing code examples, wrap them in Markdown code block markers."

It's as simple as it gets, and it didn't fail me.

EDIT:

Of course I had other, more task-specific prompts, like one for helping with GTest/GMock code; that was a tough one - for some reason LLMs loved to hallucinate on the testing framework for me. The one prompt I was happiest with was my "Emergency C++17 Build Tool Hologram" - creating an "agent" I could copy-paste output of MSBuild or GCC or GDB into, and get back a list of problems and steps to fix them, free of all the noise.

On that note, I had mixed results with Aider for C++ and JavaScript, and I still feel like it's a problem with prompting - too generic and arguably poisons the context with few-shot learning examples that use code that is not in the language my project is.

--

[0] - Though in LLMs' defense, the hallucinated results usually looked like what the API should have been, i.e. effectively suggesting how to properly wrap the API to make it more friendly. Which is good development practice and a useful way to go about solving problems: write the solution using non-existing helpers that are convenient for you, and afterwards, implement the helpers.

[1] - Like std::map<K,T>::contains() - which is an obvious API for such container, that's typically available and named such in any other language or library, and yet only got introduced to C++ in C++20.

[2] - I do them differently today, thanks to experience. For one, I never ask the model to be concise anymore - LLMs think in tokens, so I don't want to starve them. If I want a fixed format, it's better to just tell the model to put it at the end, and then skim through everything above. This is more-less the idea that "thinking models" automate these days anyway.
Hi, author here, definitely, allocating elements while parsing is slow, especially calling realloc for each new element encountered, a growing array backed by an arena would be my go to if i had to overengineer this one.
I'm confused, in the example application I see all these async endpoints interacting with the database, but the function bodies are entirely sync. Wouldn't this block the event loop?
So your solution to the the insanity that is the threading model was to reinvent the process model in it...

I don't intend to be mean, I just think the idea of independent execution in a shared memory environment is fundamentally flawed. And the effort in trying to get such follies working should have been put into better process models.
Substack Domain Takeover
And breakfast costs the equivalent of 20 cents, from the seller on the street. Buying power comparisons are complicated
> They did it within a system of laws and regulations that government admittedly does create for fostering such wealth creation. However, this still often requires strenuous effort by these people for their own ends.

You are confusing two things thinking they aren’t highly related but they are. This statement could otherwise be written “government created a flawed system and motivated individuals achieved wealth by taking advantage of that system”. That implies a flawed system was causal. We don’t need bigger government, we need the right government. No one wants to say that those who worked hard - even by benefitting from a flawed government - should not have high wealth, but by your same argument, what did the wealthy children of these individuals do to justify their wealth? Their children? How long do we believe this chain of inheritance is sensible?
Construct is great. I used it to make a game with my daughter. The way it jumps straight to the fun bits and then gives opportunities to learn about programming concepts is great.

I couldn’t bring myself to pay the hefty monthly fee though, knowing my kid’s interest would wane and then her creation would be forever inaccessible unless I continued to pay.

One thing I would have gladly paid for is asset packs, being able to adapt some great sprites and background art would have been a killer feature.
>highest lung cancer

Smoking less good stuff than you - there's countries with way higher per capita lung cancer rates. PRC ASR higher than US, but skewed only because men smoke like chimney. Female lung cancer ASR is same as US. Not to mention life expectancy recently passed US... interestingly, this suddently not even considered as indicator for "QoL" blah blah.

Hangzhous a great place to live. Most PRC T1 cities are (well BJ boring)... if you have money. AQI is fine, it's like ~100 average... which is moderate, aka barely perceptible vs 20 years ago when urban AQI was like 200-500, i.e. actual struggle to breathe tier bad. ~100 is like bad day in Toronto, AKA it's fucking nothing.

Who gives a shit about locals average. Let's not pretend average bay area tech workers can afford nice local property. This thread is on elite earners, i.e. >2M RMB / ~300k USD per year . Of course they can afford obscene T1 property if they want to grind. But they have many great options if they chose not to. I'm merely illustrating high earners have obscenely high QoL urban easy mode if they wanted it. Like you're not going to find many countries in this world where 400k USD buys you a nice 150sqm / 3br / 2bath apartment in a nice district of a ~10m+ large modern city with world class infra and stupid cheap daily costs that one can likely retire after a few years. Oh while being surrounded in home cultural and not be treated as 2nd class citizen (if anything treated as elite).

Family friend at has this setup working at one of the giants, had nice housing allowance as part of total compensation (~3000 usd per month) where he lived downtown in nice T1 city for free, bought a sweet villa in a T2 city with ~2 years of savings (got a few million RMB of interest free housing loan from company)... it's what he chose instead of the T1 RE, which was attainable but a grind. In the meantime he's basically living for free. Like what's his comparable option in the states? Spend $6000 USD per month on rent around SF and then fuck off to pittsburgh, cleveland, buffalo, kansas etc with their 300k homes, and 2 million population that's worse than a T3 city where he's treated like a foreigner and have to deal with shit tier urban decay on the regular. Maybe if he likes SUVs and big yards. Austin also nice too.

TLDR it's batshit insane to think a high earner don't have a lot of very nice options in PRC especially once you throw in cost of living where that 300k stretches to 600-900k depending on where you go.
> 2. Calls are recorded for quality review but not used for ML training and are deleted within 30 days.

Sounds (pun intended) reasonable.
It sounds like a "sales and marketing coordinator" for something very tech-bro adjacent after two strong cups of coffee.
it's a static website, why does it have to consume RAM in the origin? I see Cloudflare is in front, are you caching HTML?
You're free to define the words you use however you like, of course, but I am using the term "China" in keeping with how most people in both Taiwan* and the rest of China normally use it. I would appreciate you not attempting to redefine my words into nonsense with your idiosyncratic definitions.

Moreover, you are responding to a substantive discussion about how economic and cultural factors affect innovation with trivial flamebait about how words should be defined, apparently in order to promote some kind of political agenda.

______

* Whose constitution is written in Chinese and calls it by a name translated as "The Republic of China".
The A.I. Monarchy
Hi, author here, I just added the JSON macro to omit the quotation escaping around object keys and strings:

without JSON macro:

char* j = "{ \"key\": [\"value1\", \"value2\"]}";

with JSON macro:

char *j = JSON({ "key": ["value1", "value2"]});

But yes of course, due to the stringify no C values can be embedded - i wouldnt even know how one would solve this with a macro, but maybe someone has an idea and can comment on that.
Also available in this Flickr album: https://www.flickr.com/photos/fireflyspace/albums/7217772031...
I learned that lesson at the first place I worked. It was an accountant's office and the partner in charge of paying invoices would literally go through the outstanding ones and see which he thought he could get away without paying, even if they were overdue.

So even companies you might think will pay promptly, don't always do so.
Repeated unconstitutional actions seems to fit high crimes.
So the second equation does not cover my induction cooktop?
I instead use <div class=“flex”><\div> now.

If the class name is not enough for me to guess, I just hover the class name and the LSP will show me the applied styles.

Another issue is that Shopify changes the name of these components for no reason, for example InlineStack was once called Inline, then HorizontalStack, then InlineStack, while the flex box model hasn’t change since 2012
Thanks, i tried to go for a mimimalist cyberpunk inspired vibe - thus far i like it :)
Why would we view him through a Roman lens with regards to a word used today in a modern context?
Current administration already picked racial minority to blame.

https://abcnews.go.com/US/confinement-unbearable-migrants-de...