skysight-inc/HackerNews huggingface dataset:
In 1993 the unintended consequences of X3J11 “undefined behavior” had not yet emerged, nor had the reality that future Standard committees would double down rather than fix it.

If anyone had realized what UB would turn out to mean, it would not have been invented that way. Dennis Ritchie's 1988 comments on the `noalias` proposal match exactly: “the committee is planting timebombs that are sure to explode in people's faces”; “a license for the compiler to undertake aggressive optimizations that are completely legal by the committee's rules, but make hash of apparently safe programs”, and consequently: “[It] must go. This is non-negotiable. [...] The concept is wrong from start to finish. It negates every brave promise X3J11 ever made about codifying existing practices, preserving the existing body of code, and keeping (dare I say it?) ‘the spirit of C.’”
And because that’s where those who bought Evernote have always been located. Why bother with maintaining a US office, and the associated admin work?
> due to its low level of expressivity, you often have to introduce less efficient solutions simply because language deficiencies. Things like small string optimizations in C++ are simply not possible in C.

You don't have to use an inefficient solution. You can always roll your own optimized solution or use a library. I agree that C++ has some nice string optimizations built into the standard library, but it's not obvious to me that they're always better than the simplicity and predictability of a simple chunk of memory.

Besides, you generally don't write C code in the same way you write C++ but with more primitive tools. You often allocate a buffer once and operate on it; you don't emulate passing strings by value from function to function, doing lots of allocations and deallocations in the process.

> Well, will it really compile to what you meant? If you have UB, it might still compile but the semantics of your program could change entirely depending on which compiler and which version you use.

I'm not sure what point you're making here. If you have bugs in your program then it may work incorrectly, yes, but that's true no matter the language.
Not really, C is easy enough, and you can still use a small subset of C++ that is quite easy to use.

It's not possible in rust.
i think you either over-estimate the complexity of your json api call, or under-estimate how complex accessing a stock exchange is
Fairphone is also tackling this. They guarantee 5 years but have been providing updates well past that. The Fairphone 2 from 2015 got upgrades to Android 6, 7, 9 and 10 with the latest security update in March this year. You can see their release notes here: https://support.fairphone.com/hc/en-us/articles/360019515018
While it seems Rust supports ARM devices like M0, M4 and of course more powerful chips like those capable of running Linux, there are huge swathes of chips that it doesn't support like 8051, PIC etc.
Sundar Pichai in Da House: Google’s CEO on AI and the Future of Robotics
He’s not someone who takes up a lot of space in the world. In fact Sundar Pichai’s soft spoken reflectiveness felt about as far away from your typical tech-bro as is possible to imagine.
How can I tell, did I meet him!?
Someone was curious as to my method so I made a YouTube video. After a year or so of not solving I was rusty on my method, so my YouTube video taught myself how to do it again.
It does have information about what's changed. It shouldn't be a patch release and it's not supposed to be a breaking change.

Outside of new things it informs you about the work expected with downgrades. Going down in minor versions and you should check for breaking changes or removed functionality.
sorry, i didn't realise the usa don't do g3 and g4
Yea - super dynamic actually with web sockets and server sent events all over the place. All what your would expect from a modern SPA SaaS.
> let me store some state or have a loop

This is arguably already possible, and was possible even before c99 added variadic macros. Although the code is a bit cumbersome to write.
The press did not try to smear him with the Russian collusion "story". That story is and was very real. The Mueller investigation lead to dozens of criminal charges, of trump appointees and foreign Russian agents. Whoever convinced you otherwise had a successful propaganda campaign and you are one of millions of victims.

https://abcnews.go.com/Politics/breakdown-indictments-cases-...
Quite simply there haven't been any candidates so far which both got the "essence" of C and had the momentum to actually replace C. Zig looks like the most promising so far, if they don't fuck up on their way to 1.0

(disclaimer: I switched back from C++ to C as my language of choice for writing libraries ca 2017, but also continue to write C++ (if necessary to talk to C++ libs) and a lot of Python and Typescript for simple cmdline tools and web stuff, also ObjC on Mac of course for talking to system frameworks, in recent years dabbled with Rust, Odin and Nim, in the long distant past also with C#, Java, Lisp and some Forth, and eventually hope to transition over to Zig for the stuff I currently use C for (maybe in 3..5 years?)

TL;DR: use the language that suits a problem best, and C is a very good tool to have in any language toolbox, because it can usually provide a solution where other languages have to give up or just become to much of a hassle (for various reasons)
I have infinite tabs on notepad++ with the copy pasted links and some notable sentences from the links.
I would rather call it a workaround. They are doing the exact same thing everyone do, but for longer.

Which I guess is better, but they are not tackling the root of the problem.
Indeed, hence why buybacks are so popular. However keep in mind that there are qualified dividends as well which are taxed at the preferential long term capital gains rate. Still a tax though but rolling those back into the stock has good long term results.

I think congress was talking about taxing buybacks?
If your code style is what gives you the feeling of security at work… Well that’s a bit sad and I’m not convinced a linter can be blamed for anyone losing their jobs.
I think the heuristic is “single-implementation languages have a logo”. So, in some sense, you could say the implementation has a logo that is also associated with the language.

(And yes, ‘single implementation must be interpreted a bit loosely. Python qualifies, for example)
Correct me if I’m wrong but sqlite has no support for concurrent users right? You would have to have a mutex or queue system in production to make sure only one thing at a time tries to run sql?
People should focus more on waste avoidance and reuse instead of buying a new gadget allegedly made from recycled materials that only lasts 3 years. I say allegedly because making durable, nicely colored materials from waste is so hard that we don’t know what tricks were used or shortcuts were taken to make this happen.
You don't have to update it if you don't want to?
How did you find it?

I don't see it in .net meta data nor about
Same in Poland - none of my friends who did their required internship at studies was ever actually taught anything.

It was always just "do your job, don't cause problems".

And for free. Of course.
My uni literally bans us from being paid. If we do, they won't acknowledge it as internship.
> In absolute numbers, sure.

I did not meant in absolute numbers. And I stand by that claim.

Also, in the context of this thread, there is no reason to focus on super Uber rich. The money cease to be stressor long before that.
I have come to that conclusion myself over the years too.

But "bad people" or aholes also have usefulness. You sometimes need people to challenge things that only an unreasonable person would challenge. And you need the occasional Steve Jobs too.

But unlike altruistic people, we generally don't give the aholes as much credit. So, ironically, perhaps altruism is the better self serving strategy.
I was brought in to repair a codebase built by a programmer who wanted to make himself "less replaceable" for 4 years before he quit.

It took me 6 months to fully decode all his personal mnemonics, abbreviations, style decisions and bizarre architecture plans.

There were several times during that time when I considered trying to find him to tell him what I thought about him to his face.

You are going to be replaced at some point, unless you think this company is going to fold before you retire.
Size: 2.3GB

From https://www.linuxliteos.com/download.php#current
I will likely have some software compatibility/security issue by using a 10y old phone. Theoretically I do not have to, but software is designed with constant internal requirement changes.
I just find the "everyone in here used to be libertarian which somehow implied diversity of view. But now that people with other opinions shown up, it became bubble" fundamentally amusing.
Every impact story photo is: "Beautiful place covered in dirty drug paraphernalia". It's the same train of thought when people here describe homelessness in big cities. "They're sleeping in our public spaces!"

If you want undesirables to go away, you have to give them somewhere to go. A better life or at least a safe place. Moving them on solves nothing.

As another comment reiterates, Portugal had a good start but then gutted the social support funding. A huge part of that has to be giving people a way out, so that drug taking isn't the default for the down and out. Decriminalisation is a good first step but not on its own.
The Firefox Unleashed – These Weeks in Firefox: Issue 141
Days? What use are 'days' on Mars?

A different approach to time is desirable, instead of being loosely related to celestial mechanics.

How about: a shorter second. 100,000 seconds in a 'day'. 1M seconds in a 'week'. and so on.

On a space station they sure wouldn't mind the difference. They'd talk about 'see you in a klik' meaning 1000 seconds, or 'thatll take about a megasec' meaning a week.

86400? Give me a break.
Got a fairphone 4 for somenody I care about and will likely get one for myself when my current unrepairable, glued-battery piece of e-waste becomes unusable.

I wish they would come preinstalled with something like kde plasma mobile though. I will never warm to android, no matter how "degoogled" it might become. There is something about its architecture that seems freakish. Like the entire digital universe that was created in the last decades.
The sheer audacity to claim no one cared about perf/watt before Apple. More like you did not know what it is before you consumed Apple marketing.
I work in data science in python (and the parent was about ML) and basically everything in that space has C and Fortran level dependencies and this is where Python is really really bad, so no it is not as simple as you're making out.

I really really wish it was, as then I wouldn't have had to learn Docker.
A Japanese factory that designs clothes on a 40-year-old computer [video]
"We’re taking this step to boost operational efficiency and to make the most of the Bending Spoons employer brand, which is extremely strong in Europe."

Doesn't mean anything. Next time try with GPT.
It’s not. It’s pretty much sums up the comment.
N=1, in 1997, when drugs were pretty heavily enforced in NYC, there were mildly scary people at the exit to Penn Station, saying "Want some smoke? Want some blow?"

Now those guys are gone, but there are basically food trucks selling pot gummies with licenses.

There were homeless sleeping on heating vents both times.
Implementing Wordle in the Firefox address bar
Ask HN: Would you take pictures if nobody interested?
Imagine there is zero public care about your pictures. Would you still keep taking pictures?

Family pictures don't count.
Ask HN: Frameworks for Testing and Optimising Prompts?
Does anyone have any frameworks or approaches they can recommend for testing and optimising LLM prompt variants? So far I am just looping through variations and manually reviewing the quality of responses, but this doesn't feel very scientific.
And R is a clone of S which is from 1973.
With C23 there's the #embed feature. Might be super useful for embedded software. How are the toolkits e.g. for ESP32 and TI in terms of C23 compatibility?
I've been using my Fairphone 4 for around a year or so and it's been great.

An easily removable battery is a godsend and the phone is surprisingly durable as I've been dropping it a lot (me clumsy).

I haven't encountered any issue and the one complaint I have is the lack of 3.5 jack. It was quite hard to find a USB converter that worked and having to use an adapter is really annoying.

Still if this one breaks I can repair it and I would even buy a new one if I had to.
This is clearly talking about default behaviours, so it'd already be there as standard. It's no different than expecting a different status code for the purpose of requesting crawlers not to index.
FWIW, I'm a recent owner of a Framework Laptop 13, 13th gen 1370p. I am extremely happy with it. w/regards to battery life, I'm doing ~4.5watts idling/text-editing, screen on, wifi on. That is more efficient that I got out of my 5850u I had before this. I get about 9ish hours of battery life. You do need to run things like thermald, tlp and set the lower tdp setting in the bios (max battery setting lowers the tdp afaik). Fan barely turns on. I could probably take it further with ectool tweaks. Edit: to add, powertop is your friend! measure. Anything above 6watts usually means something is doing something (this ball-park 6watts comes from experience, last 3ish devices - anything lower than that whilst doing things == great. I do about 8ish watts when using VA-API to play video for example, which I find very reasonable + similar to my previous 5850u).
Let's build A distributed, concurrent editor
I know its history but Javascript is not in any meaningful sense a "Lisp dialect". Code is not data, code is not even an object, you have to define a function, closure or object to manipulate the code itself.
Not a hello world example, I renamed a function in a program which is part of a 13K LoC project to get that error message.
To add to this, with a flathead screwdriver you can open a beer bottle, kill someone, make holes in a wall, nada all sorts of other useful things.
I work for an American company remotely from Europe. I didn't leverage any educational facility from the US yet I'm contributing to the fact that the US is "leading the way" in technology. And the reason is simple: not only do they pay me more than an equivalent European company, often it's hard to find an "equivalent" European company where I can work on something I find interesting.

Now, something did originally created the conditions for why US is leading, but once that has happened it can become a self sustaining network effect, provided enough money is kept flowing
this doesnt seem to be a currency conversion function, just a currency conversion table dump.
Besides not making smartphones what do you think the actual root problem is and how would you tackle it?
I am using a similar concept to scale my team's impact at a F100 company; making processes and ways for other teams to contribute code that is otherwise bottlenecked to/by us but ends up getting owned by us.

It's worked for the last year or two semi-effectively, but I am loving this discussion for reminding me of the downsides/risks.
Addressing many comments: It's not a hackathon photo. It's a programming contest photo.

https://www.devchallenge.it/

That's why is looks like a fancy SAT test, not a 3 day camp-in.
Why wouldn't you use assembly for programming a microcontroller? Sure, it's not a great language for web backends but microcontrollers are where it shines. /s

Because as the OP states, it's an objectively (pun intended) terribly abstracted language. There is nothing 100% predictable about C except that you'll eventually get screwed because you didn't account for some random obscure thing that should never have even been possible to do. Any language that allows using static variables can have predictable memory consumption. There is nothing inherent to it that makes it better than a language that works at the same level but built to modern standards, except the piles upon piles of legacy code you can use.
> basically a PDP-11 from 1970-something

That PDP-11 from the seventies had ADC/SBC (addition/subtraction with carry) in its instruction set, the result of MUL was twice the size of the inputs (i.e., multiplying two ints produced a long), and DIV produced both the quoitient and the remainder. None of that is visible from C and yet people keep clamoring that "C is close to the metal". Bah, humbug: while " * p++" and " * --p" idioms translate directly into an addressing mode particular for PDP-11 — most other architectures don't have autoincrement/decrements — there is no specific support for " * ++p " or " * p--" in the machine itself.
The answer isn't the issue. It's the fact the question needs to be asked as a requirement.
Reimplementing a whole complex API with mocks is not exactly quick or easy or less error prone than the code that should interact with that API.
What's the difference between PHP giving "2" as the result of 1 + "1" and Python giving "999" as the result of "9" * 3?
Github profile.
> Who is going to maintain the React app in 3 years?

Uhm, developers? Using projects documentation?

> Who is going to work with the various "repairments" made to get normal browser behavior back into a SPA? History, back button, forward button, bookmarkability, context menu (if modified).

I never had to manually “repair” any of that. Most often you just don't need them. Why would you use a back button in an image editor or an IDE?

> The original developer will have moved on to the next gig.

Developer, singular? Are we taking about small projects here again?

> Are you going to rebuild, or pay even more for the next developer with more experience, to subject themselves to work with this?

In my personal experience, React projects were one of the nicest codebases to work with. I came to projects 2-4 years old, found great documentation, good architectural decisions, and was able to compete a ticket on the first day.

Overall, I think it’s a difference in experience. I build complex web applications. IDEs. User interfaces with complex, customisable data widgets updated in real time. People I talk with about web development are building 3d visualization platforms with C++ compiled to WebAssembly. Games. Image editors.

What your are talking about seem to be simple CRUD apps. I have built those with server-rendered templates, yes (here's a takehome for some company from a couple of years back: https://github.com/golergka/url-shortener).

However, a lot of apps _seem_ to be simple CRUD apps in the beginning, until you anticipate future features and other requirements that will force you to adopt a frontend framework all too late. Do you need a form with search over content from the server? You need a system to query data and cache the results. Update data in real time with websocket connection, while also allowing your user to edit it? You need a system to consolidate state. Save user's data in local storage? Also local state, but also schemas and migrations for when your app updates. Table of 100s of thousands units of data, which user should be able to filter, sort and edit, with updates from the server too? Don't even get me started. There's a lot of other examples I'm too lazy to type. Overall — you either adopt a proper frontend framework or try and implement it in “simple JS” and then spend much more time fighting a lot of subtle bugs that simply would not happen if you used proper abstractions and tools.
You can't have too many altruistic people. You can however have too many assholes and the number of assholes where this effect starts to dominate is not all that high. The fact that our societies reward asshole behavior as much as they do is a huge problem.
The title is misleading. The article does not reject existence of willpower, just discusses a different theories about it.

Addictive substances show that in some cases chemicals can affect willpower.

It could still can be explained that the brain processes the pleasure gained from heroin as more important than the possibility of early death. However, different drugs have different addiction-forming potential which could indicate at least partial chemical influence.
But it doesn't necessarily have to be considered 'public data' for Google to be able to exploit it. Google uses opt-in by default for privacy settings and has a long track record of being misleading when it comes to privacy. I'm sure there's plenty of people out there who have unknowingly opted in to 'volunteering' their Gmail data or will soon be.
Ukraine.

How rich was the country you grew up in?
anything is mockable if your code is broken into smaller easy to reason about easy to test chunks and you have a complete understanding of what the thing you're mocking is able to do.

If you don't have a complete understanding of what it's able to do then I think how you write your tests is the least of your worries.
I take pictures instead of notes, go out somewhere, take a picture, I can see from geolocation when I went there.
This photo is a programming contest, not a hackathon. It was much shorter.
3:2 is used by microsoft on the surface.

16:9 is plain disgusting for a computer.
I don't think that follows at all. I've seen my share of development groups where someone had previously made a bad hire or brought in the wrong consultants and that had left them with a body of code that simply wasn't very good. That doesn't necessarily reflect the overall culture at the organisation and it doesn't say anything about whether the people currently available would make the same mistakes.

The assumption that a big rewrite would be too expensive and end up with the same problems is itself quite dangerous. Some of those groups I mentioned knew very well they had a pile of junk but management had apparently read the usual advocacy about how Big Rewrites Are Bad and stubbornly insisted on adapting the existing code instead of recognising that it should be written off. They spent far more time and money on the updates than it would have taken to do a clean rewrite. And then they got into this kind of sunk cost fallacy where because they'd spent months doing what should have been weeks of work once they then became even more attached to the flawed code and kept repeating the same mistake.
That's mostly just an advert for the cryogenic preservation/upload industry from my reading. AKA the nerds version of the rapture.
To the folks I've seen in this thread despairing about how this seems really, really hard at first brush: it is. This is not really a page of intro level electronics concepts. Doesn't mention a whole lot about voltage, current, time vs frequency response, or how to get a grasp on any of those concepts.

If you want a gentler intro that walks you through some of the foundational concepts, Analog Devices has some great free courses on Circuit Theory:

https://wiki.analog.com/university/courses/circuits#circuits...

And another great one on electronics:

https://wiki.analog.com/university/courses/electronics/text/...

They are the best in the business at analog circuit design and A/D conversion. Worthy of your attention if you're serious about learning this stuff.
I guess if you store the filetable in unlimited S3 storage, maybe ;-)
No.

Or is this a rhetorical answer?
if your test implements a whole complex API then it's not a unit test
Ayn Rand was there a while ago.