skysight-inc/HackerNews huggingface dataset:
> So who will use C23

I can't say if I'd immediately jump to C23 but I'll be thrilled to give it a try.

Currently I'm rewriting an entire automotive OCPP charging point and it's associated CSMS in C because the original dev (who has no experience with Edge/IoT and just Cloud/SaaS) thought it was a great idea to implement this in golang. The binary size alone is already a problem where all I have is 30MB (needs to be shared with logs, sqlite, and 2 another "user-space" application).

I could have chosen Rust/Zig/Nim (I really wanted to) but the client rejected it for very good reasons that have nothing to do with type-safety/performance/security but are all about good-business practice and risk management:

- when I leave in a few weeks, there are plenty engineers inside the company who can maintain the system.

- the domain is quite niche so to understand their solutions and requirements you can't do away without an occasional trip to their office. the client is not in a capital city with a vibrant tech-scene and weekly meet-ups and lacks the talent-pool.

The constraints by the market (scarcity) makes Rust/Nim/Zig (my personal front-runners) very risky tools.

C++ could have been an option but it's total overkill because most of the components you need to build this (websocket, mqtt, http, sqlite, zlib, openssl, ...) are anyway implemented in C and I actually don't want things like exceptions or templates in this _at all_ for performance reasons.

If you split your OS into layers from HW (ring-0) all the way to layer-5 (process management e.g. systemd etc) then 99% is still written in C. So your argument throws every layer under the bus except user-land (L-6).

C isn't going away only because of embedded/IoT. It's going to stay because choosing a language is like the "3 most important rules in real-estate: location. location. location".

The language is your location and your primary lock-in factor for your solution/business. Once you've decided on language the only way to change this is an entire re-write. Even if you rewrite you still have to consider culture and available resources that must be in place long before you chose the programming language. And keep in mind the people who all took stakes in the original implementation and must all be sold on the idea that whatever new replaces the old "is sooo much better". That's not an engineering problem but a power/people problem.

Edit: So just because "the engineer inside of me" wants to use Rust/Nim/Zig or whatever new to satisfy my intellectual curiosity is not enough reason. In fact my potential inability to see beyond that is a good reason for them to be very very careful about what advise I give.
Thanks, this is a great insight. I haven’t thought about it in this way and it sounds like a very pragmatic approach without over complicating things.
Birds can be happy living with humans. As with other pets, they need stimulation and they are social animals. Ensure they have enough time outside the cage. On YouTube are many examples of birds living happily with humans.
Didn't Trump always speak like that? I.e. like cutting sentences to fold out into something else, "speaking in reverse" by backstepping to something prior and dropping negations.

His way of speaking made it really easy to make him look stupid in text quotes. But I didn't reflect on it sounding wierd (I am non native speaker).
> Cause Chrome implemented that eons ago. Of course Firefox isn't going to implement anything

If Chrome matters, Firefox doesn’t, and Safari is measured against when Chrome supports something rather than when the specification becomes stable, it sounds like you think the web is defined by “whatever Chrome supports, whenever Chrome supports it”.
I assume the parent comment was talking about the context of computations where numba is supposed to be a drop-in for wherever numpy is used.

And I agree that it's not actually usable everywhere, since the support for numpy's feature set is actually quite limited, especially around multidimensional arrays. I had to effectively rewrite my logic to make use of numba. Still it is pretty worth it imo, given how it can add parallelism for free. And conforming to numbas allowed subset of numpy usually results in simpler and more efficient code. In my case I ended up having to work around the lack of support for multidimensional arrays but ended up with a more efficient solution relying on low dimensional arrays being broadcasted, reducing a lot of duplicate computations
In practice, you will either write `nix shell nixpkgs#package` for one-off packages, or will add one single line into your configuration.nix/home-env config file and issue a rebuild.
As a developer who has been in React/Angular/Vue era, why didn't this project leverage these modern technologies for UI and instead went with Backbone and Knockout?

I am just trying think outside of the modern widely used frameworks and see how they solve some unique problems?

Please anybody can tell me why still anybody use good old technologies for frontend in their products?
Twitter has been profitable for the last several quarters, FWIW.
Or memory safe hardware.
Presumably if you are a super-advanced civilation, you would get power from what would appear to us mere primates as essentially thin air, in a fashion we can't even fathom.

"Any sufficiently advanced technology is indistinguishable from magic."
Yup. This has been shown over and over by Meehl and that gang.

> The real benefit of any form of machine learning is detecting functional relationships between variables (ie, "when this AND NOT that OR this"). It's just that these relationships don't provide a real benefit in 99/100 real world use cases.

And the real problem with humans, ironically enough, is that due to narrative fallacy, confirmation bias, etc., humans vastly overvalue the contributions of these special circumstances.

If a dumb 2--3 variable rule predicts your friend will go to the movies in the weekend, you are likely to go, "Yeah, maybe. But she complained of that headache this morning, maybe there's something deeper there that also makes them not want to go to the movies."

In most cases, you'll be wrong to override the dumb rule.

So why do people do this? Well, the original movie-going prediction might only have been a 55 % shot. So 45 % of the time, your friend won't go to the movies, headache or not. But if they don't, you'll think you made the right call considering that headache.

If they do go, you'll end up thinking, "Right, of course. They had the headache but their friend really wanted to go so of course they would endure it."

In other words, you'll think of a way to frame your incorrect call as the right one. (Hindsight bias.)
Who is the “we” you are referring to?

> I just think of all the lost time for the web and what could have been.

This doesn’t seem like it enables anything new though? It’s a convenience.
ah, I see, take a gas giant and put into fission through whatever process you want. Still seems like a lot of energy to go through until you can do fission while the star is right here
> A 'character' meaning what? […] it's ambiguity in the concept of "character"

All of this already standardised in detail in Unicode. There is no ambiguity. Read it some time to mend your ignorance, it answers all your questions with justification, I am willing to spend time on the answers only.

> the second character of sœur (o or the ligature?)

the letter œ, both character (C) and grapheme cluster (GC)

the letter o does not exist in this text (again, according to the standard)

> the second character of حبيبي (the canonical form ب or the contextual form ﺒ ?)

the letter ب, both C and GC

the letter ﺒ is a presentation form and does not exist in this text

> the third character of есть (Cyrillic t with or without soft sign

the letter т, both C and GC

the letter ь, both C and GC, is the 4th in the text

> the first character of 실례합니다 (Korean phoneme or syllabic grapheme?)

the letter 실, both C and GC

the text does not contain the jamo ᄉ

Unicode is not concerned with phonemes, only with writing

> the first character of ﷺ

is entirely itself, the letter ﷺ, both C and GC

> or ﷽ ?

is entirely itself, the symbol ﷽, both C and GC
In the same way, indexedDB has to be manually cleared by the user across all browsers?

(and safari does this automatically after some idle time, I think)
tbh when I saw the author's name and photo I thought this was Nim's Dominik Picheta (https://github.com/dom96) and the content type + quality was a bit surprising...
I'm much newer user and admittedly the documentation is not great, so I've used forums and IRC a lot and from what I've gathered, the movement is towards declarative reproduceability. This is the reason for the development of flakes. I saw installation of packages using nix-env in many search results and tutorial pages but newer comments seem to indicate that this is no longer recommended, and it fully makes sense to me. I want to get my machine back to the same state using my config checked into git, and installing imperatively using nix-env clearly goes against this.
Glad to see AdaCore reaching for the limits of their tech to improve the trust base. I hope there are some lessons learned there on the direction the proof tech needs to go in, for further solidification of our base. I also like where they're going with network stacks https://blog.adacore.com/enhancing-the-security-of-a-tcp-sta... , can't wait to get some time off to try and plug all that in something like dpdk :-)
I wonder if they could merge back utf8 patches from FreeBSD.
Well, if you're the kind of person who thinks a lot in private -- then, in conversation, you can respond quickly and deeply: because your thinking has already been done.

And for answers of the same depth and calibre, producing them faster is also indicative of more intelligence.
Even different workouts have very different calorie outcome. E.g. running at steady pace burns more than bicycle riding at steady pace at similar heart rate.
Better.com loses more senior execs as employees brace for another mass layoff
How so? You'd also need statement expressions for most of them.
Django-GDPR-assist – tools to help manage user data in the age of GDPR
I think it's not only about energy generation but what would massive civilization without dyson spheres imply:

1. sidestepping thermodynamic laws - to allow massive energy use without detectable waste heat

and/or

2. sidestepping time lags - so that the system does not need to be bunched as closely together as possible to allow for efficient communication and flows of material
Out of all the world's grievances, people who choose something like hating IDEs to pedestal about will always amaze. Humanity is hilarious sometimes.
Coal Ash Is More Radioactive Than Nuclear Waste (2007)
How cool would it not be if the computers would not only use synthetic data for training, but also simulating the outcome of their own actions before taking it. But not only it’s own actions - like a game of chess it would also include all the possible immediate actions of other actors
Less painful version:

https://threadreaderapp.com/thread/1489798651375501315.html

Edit: craziest mac I’ve ever owned was a graphite G3 clamshell iBook. Loved it.
‘Zero-click’ hacks are growing in popularity
It seems to come with a web server. An enthusiast can host it and publish it to non-enthusiasts as a web application.
Not so much, consider https://www.youtube.com/watch?v=nAgJAxkALyc .

His first sentence there is "modern trump", but listen to every other. He's more-or-less speaking like a person.
I went to a lecture at university where the lecturer stated that she was researching gynecomastia related to the presence of estrogen in drinking water - that results from wide use of the birth control pill. By the time you drink water in London, it has already been through 12 cycles of use (if memory serves correct).
I try to keep a simple tree (no more than 2 levels) in all DBs and for many things I just keep a kitchensink-style groups, like „General“. DT struggles with categorization if the amount of items in a group is small - the categorization is based on statistics and keywords. For bigger groups it makes a solid guess most of the time.

I would als not be afraid of losing something: the search is very solid and there is also a custom search with filters and boolean logic if you need it. The only thing I need is to remember that I have it and the topic for keywords, then I can find it with search.
The pricing seems weird. Why is there a limit of 10 documents on the pro plan? Even as a small team we have 50+ bases in Airtable.
> seemingly spawned by Casey Muratori’s Handmade Hero series, Zed Shaw’s “Learn C The Hard” way

It's kind of unfortunately, really, because both authors have very skewed viewpoints of C that are arguably quite incorrect.
Huh? What do you think defines “regular C code that works”? Standards.

Every compiler you have used operates at a bare minimum on the C standard. That’s why they are often advertised (if not GCC/Clang which are assumed to be up to date) as “C(89|99|11|17) compliant.” “Code that works” is code which is operates under constraints and guarantees specified by a standard, anything else is undefined or unportable.
Yup. I always advocate that the first model one should build is the one that constantly returns the most common answer.

That way, you can compare the more fancy stuff to something to see whether you're really improving.

You also get to evaluate the economic gains of the more sophisticated model against the development, maintenance, and data costs of it, compared to the dumb one.

(Another good baseline is returning a random historic result in proportion to how often it occurs. It sometimes helps against exploit attempts at the expense of data.)
Nix devs seem focused on improving the ergonomics of the new command line, but it’d probably take time to flesh out the details. In the meantime, I think specifying the package source is a reasonable tradeoff given the features it enables.

I also suspect that keeping the package specification the same between installation and uninstallation time is harder than it might look, though. By its nature, Nix identifies packages by the contents of their definition. “nixpkgs#ripgrep” is merely a pointer to the current ripgrep package definition in the Nixpkgs repository. Therefore, “nixpkgs#ripgrep” will likely not point to the same package at the time of uninstallation.
That's not at all what I'm saying.

Original poster made it seem like there is some unique American culture of anti establishment and celebration of courage and activism. Then goes on to enumerate examples that are now obviously celebrated.

My point is that it's a survivor biased argument. It's very easy _now_ to celebrate past activism that ended up on the good side of history. There's nothing special in American culture about that.

We are talking about a country that started wars on false premises, tortured prisoners, incarcerated whistle-blowers, economically bullies most of its competitors, elected an ultra conservative president, have one of the worst immigration integration policy, etc etc.

> In the US, celebrating activism with illegal techniques is part of the fabric of our culture, institutional and even foundational.

I'm sorry but that just strikes me as plain.. . Maybe that's how Americans see themselves, but get back to earth, 99% of the world would roll on the floor at this.

Most of the activism enumerated in the comment is actually a minority's activism against social problems that only existed in the US in the first place. It requires a very twisted argument to celebrate US activism on issues that the US created for itself.
Hacker news relevant how? Please, if I want to read war news I go to reddit or any other new source.
AWS Backup for AWS S3
Frequently; that comes up in basically every Issac Arthur video on the topic.

Unless such a civilisation can dump the waste heat as something other than infrared light or send that waste to somewhere other than the visible universe, it’s still extremely visible.
The odds that anybody smart enough to be able to build such a thing would not be smart enough to recognize what a bad idea it is, is closer to zero than any mere human can conceive of.
C is the best choice if you want all of: small (both language and binaries), fast (both compiler and binaries), obvious (no/minimal complex magic), close to the metal, with excellent debugging support, portability and integrations.

No other language has been battle tested for longer and more extensively than C.

Your kernels, OSes, drivers, databases, web servers and compilers are written in C.

If some of these features are not important to you, there are hundreds of slower, more complex and less portable languages to choose from, that provide other benefits instead, such as more convenience, more correctness and higher level abstractions.
> 50M years to colonize the galaxy

Our ancestors from 50M years ago are all extinct. So a civilisation spreading through the galaxy would have evolved in all kinds of different ways. It's not obvious to me that these diverse evolutionary strands would all still be interested in Dyson spheres, or space travel, or even astronomy.

There's a belief that's hard to shake off, that the properties humans have that we think most important represent some kind of evolutionary pinnacle. Typically, those properties are language, and a large brain for processing language. But if language and a large brain are really such great evolutionary advantages, why are humans the only creatures on Earth that have evolved those properties? Possibly language and a large brain are an evolutionary backwater.

At 0.25% of the speed of light, it would take us 1,600 years to reach Proxima Centauri; but it might take a lot longer to reach a star with habitable planets. We'd definitely need generation ships. After (say) a million years, we'd presumably have evolved to adapt to life on generation ships. It's not obvious to me that such adaptations would leave us fit to inhabit a planet. And perhaps adaptation to life on a generation ship means adapting to eating your fellow passengers.

Given the history of humanity, I find it hard to believe that the population of a generation ship could survive as long as 100 years without war breaking out on-board. We've had large brains and language for about 50,000 years, as far as I can tell; we've been warring the whole time. Maybe large brains and language pre-dispose us to war? If that's right, then it seems unlikely that intelligent life would ever spread far from it's planet of origin.

I'm very sceptical of the idea that any "civilisation" could ever spread far from its home planet. There are two things that we refeer to as a civilisation: a culture, and a species. Culture changes very quickly - over a single lifetime. But on a scale of millions of years, speciation is also pretty quick. So I can't see how any kind of homogenous civilisation or species could spread through a galaxy. They would have diversified before the train even reached its first stop.

So I don't have any insurance against being kidnapped by aliens.
I'm gay, and I'm definitely attracted to some of your counterexamples, apart from the Adam's apple size; I don't care for those.
The ahead of time compilation output is... Well.. let's say difficult to package _properly_ (compare it to Cython where it's well supported and documented). That makes it useless for production, unless you want to ship giant containers with compilers etc
The installer is absolutely first rate, but I would strongly recommend asking for help at discourse.nixos.org as soon as you start getting stuck (which will definitely happen, probably rather early).
How many of your preferred programming languages are written in C?

Yes, many self-host, but a considerable number of them don't want the complications that can bring.
This sounds like some strange US bullshit to me, I’m not interested in importing what you’re selling.
> when in fact the opposite must be true.

It MUST?
Row about Congolese statue loan escalates into legal battle over NFTs
There should be next title instead:

> Logging at Twitter (2021)
They're still macros. C will never add new keywords outside the reserved namespace.
Pythran sounds awesome. I've somehow always glossed over it before. That might be due to the name, which made me think it was some Fortran-interop library (and those tend to be old and not what I need)...
Title is oddly framed. What is interesting or useful about merely not-quite predicting what a human will do?

Do the AI's 5% discrepency picks perform better or worse than the human's picks?

The title is worded to suggest the AI can, or is very close, do the human's job, which could totally be so.

But it could also be that the AI loses 5% vs the human, and the bank only makes 5% on loans in the first place, and so losing 5% of them is like totally erasing the entire income of the bank (from loans) which makes the AI a complete Hindenberg, rather the opposite of the implication from the title.
> handful of glasses she used to have every week. She doesn't miss it.

Isn't a few glasses of wine even mildly correlated with better health?
Maybe I would learn something if you could actually provide some evidence besides being needlessly patronizing. Who are those people? What do their feelings have to do with a fact that there exist a set of traits which which could be used to subdivide us into groups?
What if the process interrupts before it could sleep(5) and restarts...
Open Source LXI Tools Free Us from Vendor Bloat
Or maybe focus your attention on an area where it makes more sense to vigilant about greedy corporations (join and advocate within a political party).
The example is go except for the colons. But maybe it's just the syntax and the rest is different
This also provides some arguments against synchronous (video, audio) meetings.

Although it's possible for a group to have a sensible, thoughtful conversation within a synchronous environment, a lot of that requires a calm and slow temperament on the part of (all of!) the participants.

That isn't, in my experience, the reality in most software companies -- people talk quickly and interject. That has the effect of pushing out more thoughtful responses.
Probably not. Energy is (at least to a high approximation) a conserved resource and stars are the most massive objects around besides black holes.
Show HN: Chatgate – Identify users in the live chat, mobile apps in beta
> The fact that they were both unpunished for finding loopholes in employment law

Why should companies or people be punished for finding and using loopholes? By definition, loopholes are perfectly legal. They may be against the spirit of the law, but they are still legal.
There are no secure smartphones (2016)
That's exactly how I used to develope complex formulars, until Excel introduced Lambda to write complex functions.
Far better than CHAZ which established a "no-police zone", did not even recognise the US government and where gangs regularly carried assault rifles. And of-course the shootings and the deaths were just glossed over and the whole movement glorified by the media.

The global push to communism is far, far stronger than any step to fascism.

https://www.the-sun.com/news/980814/heavily-armed-leftist-gu...

What deeply amueses me is Trudeau's quote:

"When a government starts trying to cancel dissent or avoid dissent is when it’s rapidly losing its moral authority to govern"

https://twitter.com/justintrudeau/status/205322201187106816

Protest is terrific only when it doesn't happen in my backyard.
May be there will, I don’t know. But then it will be another, separate issue.

Right here and now western media is losing the informational war by spreading the panic unfortunately :(