skysight-inc/HackerNews huggingface dataset:
This is addressed if you chase down the original kernel mailing list thread (the "flamewar" linked in the article). It was important to Linus that the macro was actually min/max and not min_slong max_uint etc, so that people couldn't "accidentally" use the untyped version. In other words he was trying quite hard to "force" people to use these macros.

If you would then say "why doesn't min/max just implement a switch on each primitive type", I think on some level it does just do that.
__Other__ consumers are the problem because they collectively decide what I can buy.

But you can just as easily say that the free market is making us poison ourselves. It is a matter of perspective.
If you dislike go, then c# is another great alternative. I chose go because it’s fast, simple and the iteration times for go are often quicker than python apps in my experience
As someone who didn’t know anything about this power station I thought maybe it was built from the start as a biomass power station. But it seems that it’s a huge coal power plant that has been converted to biomass?

This seems to me like the lesser of two evils as long as there is any coal/gas/oil left on the grid, and as long as there’s enough pressure to make sure the wood pellet production is somewhat sustainable (perfection in that area isn’t realistic though)

It seems like they don’t have incinerators that are suitable for burning waste. But I suppose the long term plan should be to convert the plant to burning waste instead. Unless they plan to just shut it down when the rest of the grid is 100% renewable + nuclear.

Waste burning IMO is great. Yeah, reduce, reuse, recycle first. But sooner or later everything gets so degraded that burning is the best option. Especially in the north where the waste heat can be used. It’s also the only way I can see that we can slowly extract and eliminate heavy metals, PFAS and such from the environment. If the entire humanity’s material stream t passes through an incinerator with good filtering, then humanity will act like a giant filter hopefully undoing some of the damages we done over the next centuries.
Not sure why the chilling effect for linking to it, you have 26k karma, but here it is:

John Oliver: Pig butchering scam.

https://youtu.be/pLPpl2ISKTg
That is WAY better than my typical Chick-Fil-A order. What's further down from "trapped toddler" on the condescension scale? That's where I'll be.
Base e is optimal under a certain metric, and 3 is closest to e.

https://en.m.wikipedia.org/wiki/Non-integer_base_of_numerati...
Cool project!

Just FYI your chosen name collides with Nous Research, which has been a prominent player in open weights AI the past year.
How about willing to build nuclear power plants and use desal. LA is on the ocean.
Is writing art? You may be more inclined to say yes, but it depends what you're writing. Is writing down the time that you first see the sun every morning art? Probably not. Art is an expressive endeavor. If the act of programming is not done expressively, it is not art. If it is done expressively, it is art.
A lot of academics are precariously employed (short, term-time only contracts). They are often against the recording of lectures because they're concerned that the universities won't bother paying them to deliver the lectures again next year when they could just give students the recordings.
Do you think the slaves would be happy if you set fire to the awful enslaver's cotton field while they were working?

Some might, but it's their choice to make, no yours.
Our Founder – Momofuku Ando
And if it is is by Nous Research we there definitely needs to be clearer branding as this is very confusing.

If OP is not Nous Research (which I suspect to be the case) then a name change is a must as they're already a fairly well established company in the LLM space (surprised OP isn't aware of the name collision already). It's a bit similar to creating a new library with the "Smiling Face with Open Hands emoji"[0] as your logo

0. https://emojipedia.org/hugging-face
sitting right in front of me the whole time. thanks.
> Besides, can we even attract experienced developers to a non-glamorous industry like logistics?

Yeah, if you're willing to pay slightly above market rates.

An acquaintance and former colleague of mine is in a very similar situation to you, working in logistics using a platform that's just terrible and causes the company a lot of stress and headaches. I offered to come on board, I have a proven track record of success in this space and could have fixed all their issues in probably six months.

But the company wasn't willing to pay the salary I was asking for, so I moved to a company who would. Apparently, they are not in this situation where they are getting bids of like $5MM and two years to complete a handful of data integrations and some dashboards.

I feel like leadership in "non-glamorous industries" do not like the idea of technical ICs commanding higher salaries than they do.
Skylicht Engine: lighweight cross-platform classic game engine
This video illustrates the principle: https://youtu.be/iHzzSao6ypE?si=maK5yPJn7LMhPDU1

Basically, people following too closely cause more braking, which cascades to more braking for an obstacle that was never actually there.
The easier reporting becomes, the more the average quality of reports decreases.

So making reporting easier is good only if you already have atleast sufficient resources to process and follow up on the current report volume. My understanding is that we don't currently have enough resources dedicated to handling the reports we do get of people who got scammed. If that is the case, then making it easier to report potential scams doesn't help until we increase the resources for tracking down and stopping scammers.
Define "typical."

To my recollection, every piece of Cortex-M firmware I've worked on professionally in the last 5 years has had at least 300K in .text on debug builds, with some going as high as 800K. I wouldn't call anything I've worked on in that time "atypical." Note that these numbers don't include the bootloader - its size isn't relevant here because we're ramloading.

If you're ram-loading encrypted firmware, the code and data have to share RAM. If your firmware is 250K, that leaves you with 270K left. That seems pretty good, but remember that the 2040 and 2350 are dual-core chips. So there's probably a second image you're loading into RAM too. Let's be generous and imagine that the second core is running something relatively small - perhaps a state machine for a timing-sensitive wireless protocol. Maybe that's another 20K of code, and 60K in data. These aren't numbers I pulled out out of my ass, by the way - they're the actual .text and .data regions used by the off-the-shelf Bluetooth firmware that runs on the secondary core of an nRF5340.

So now you're down to 190K in RAM available for your 250K application. I'd call that "normal," not huge at all. And again, this assumes that whatever you're running is smaller than anything I've worked on in years.
I'm not familiar with the .NET ecosystem at all, but in general I think the problem with the "just write everything in the framework's layer" for most companies is your whole application becomes tightly coupled to that framework, and more specifically that version of the framework. That's likely a much bigger problem for monoliths which I would imagine is still the majority of apps, even in 2024.

Most developers likely don't stick around long enough to see the pains of doing major upgrades on large codebases.

I've been using a layered architecture with great success for a large fintech application. We've even migrated from one web framework to a completely dissimilar web framework trivially as the majority of our code in the business layer needed no changes.
Human sacrifice, genital mutilation and various forms of slavery have all been excused as a 'spiritual practice'. "Understanding" will not make me go 'oh, sure...now your destructive practice makes total sense...carry on'. Get over yourself.
> To see why, consider an important metric that tallies up how much room a system will need to store data. You start with the base of the number system, which is called the radix, and multiply it by the number of digits needed to represent some large number in that radix. For example, the number 100,000 in base 10 requires six digits. Its “radix economy” is therefore 10 × 6 = 60. In base 2, the same number requires 17 digits, so its radix economy is 2 × 17 = 34. And in base 3, it requires 11 digits, so its radix economy is 3 × 11 = 33. For large numbers, base 3 has a lower radix economy than any other integer base.

I thought that was interesting so I made (well, Claude 3.5 Sonnet made) a little visualization, plotting the radix efficiency of different bases against a range of numbers:

https://paulsmith.github.io/radix-efficiency/radix_effciency...
> The Maybe and Either monads have nothing to do with state, for example.

See this is what I'm talking about. What does `state` mean to you where monads don't have any relation? It's just an abstract structure—what makes something state or not is the context.
Atomic_queue: Multiple-producer-multiple-consumer lock-free queues in C++
I remember from my 80's/90's childhood candy cigarettes [essentially sugar compressed into long cylinders]... just the other day, at a Southern US sporting goods store, I saw "Big Chew Gum," which had a baseball player with a wad of tobacco ("gum") in his mouth.

Thought this was strange, as chewing tobacco is probably more addictive than cigarettes, and the gum's packaging was clearly set at child-height.
Thank you, I didn’t see that.
i think, if i could only have one, id have accuracy, but because sometimes you can have both, and its hard to tell when, most businesses go on the assumption of having their cake and eating it too, and then being shocked when their presumption is incorrect, instead of realizing its inevitably going to happen sometimes that speed burns you. and other situations, i have to accept the fact that accuracy is not always paramount
A human needs a perfect spec too.

Anything you don't define, is literally undefined behavior the same as in a compiler. The human will do something, and maybe you like it and maybe you don't.

A perfect spec is just another way to dedcribe a formal language, ie any programming language.

If you don't care what you get, then say little and say it ambiguously and pull the slot machine lever.

If you care what you get then you don't necessarily have to say a lot but you have to remove ambiguity, and then what you have is a spec, and if it's rigorous enough, it's a program, regardless what language and syntax is used to express it.
Unless your users are hundreds of kilometers in space and at risk of decompression from something going wrong, then no, your stuff is nowhere near as risky.
Show HN: FileFillet – A Tool for Easier File Management on macOS
Hi HN, I’d like to share FileFillet, a macOS app I created to help organize files more quickly. By setting up your favorite folders, you can quickly access them while dragging files (or folders) for copy/move operations, eliminating the need to navigate through multiple Finder windows just to move a file from A to B.
Openverse
You're not wrong, but there is societal momentum to eating too much too. Common portions in the USA are ridiculous compared to say Japan. The size of a cookie, a pastry, a donut, a bag of chips, a candy bar, a meal, etc... It's much easier to avoid eating too much if at every opportunity too much food is not being put in front of you.
> An "if" statement or "map" function also has inputs and outputs and probably some internal state due to implementation details, but we don't say they represent state either.

They absolutely are in the context of a program and not just abstract expression, which never matters. The distinction strikes me as meaningless. At the very least it's worth qualifying with "mutable state" if that's the attribute of state you care about. There's still "constant expressions" as other forms of values and "statically initialized values" as other forms of state.
Node isn't the slow part of electron. Node is actually pretty darn fast.
Racehorse poo analysis predicts future success
Cool, let me know!!
There's a lot of truth to what you say. Some of my favorite people are process oriented!

I'm very, very goal oriented. I'll eagerly sacrifice process to get towards a goal. I find this works well with my work, SRE. Testing and redefining processes :D

This distinction really helps me realize how/why I get overwhelmed with projects of a certain size and go towards bisection
My opinion, warranted by experience, is that no SMB should be in the software development business for their core systems.

The likelihood, even in 2024, is that you'll do a poor job, spend too much, and suffer along the way.

There are exceptions.

The safest course would be to evaluate the packaged systems used in your vertical and license the one that best fits your current and future needs.

That'll get you 75-80% of the way there. The rest can be made up with help from the vendor or external consultants that can tweak the system.
> “As Mayor, I have not been shy about my goal to grow our city’s population to one million Milwaukeeans,” said Mayor Johnson. “To do that, we must be aggressive and reach new heights.”

At a time when it is so hard to build anything anywhere, if Milwaukee can find a way to get a large residential construction boom going I don't think they will have any problems getting hundreds of thousands of people to move there.

Obligatory:

https://www.atlasobscura.com/places/welcome-to-cleveland-sig...

https://www.youtube.com/watch?v=nRCTc6stICc
better access to diagnosis - you are diagnosed with small cancer instead of terminal state
"Okay, I think they will be busy discussing whether to switch from Fibonacci numbers to t-shirt sizes for the next hour or three. What could I do..."
Because they're engineered to optimize the bliss point (that "just right amount of saltiness, sweetness, or richness")?

https://en.wikipedia.org/wiki/Bliss_point_(food)
Sure.

They're still not as bad as ransomware hackers.
What is the most efficient open-source electric motor design?
Don't try to rewrite the whole system in one go. Move incrementally. You can start by creating your own UI that performs most common functions and uses existing system as a backend. This way you can automate what you need and work around bug. If it goes well then later you can gradually move to your own backend.
Show HN: LLM-aided OCR – Correcting Tesseract OCR errors with LLMs
Almost exactly 1 year ago, I submitted something to HN about using Llama2 (which had just come out) to improve the output of Tesseract OCR by correcting obvious OCR errors [0]. That was exciting at the time because OpenAI's API calls were still quite expensive for GPT4, and the cost of running it on a book-length PDF would just be prohibitive. In contrast, you could run Llama2 locally on a machine with just a CPU, and it would be extremely slow, but "free" if you had a spare machine lying around.

Well, it's amazing how things have changed since then. Not only have models gotten a lot better, but the latest "low tier" offerings from OpenAI (GPT4o-mini) and Anthropic (Claude3-Haiku) are incredibly cheap and incredibly fast. So cheap and fast, in fact, that you can now break the document up into little chunks and submit them to the API concurrently (where each chunk can go through a multi-stage process, in which the output of the first stage is passed into another prompt for the next stage) and assemble it all in a shockingly short amount of time, and for basically a rounding error in terms of cost.

My original project had all sorts of complex stuff for detecting hallucinations and incorrect, spurious additions to the text (like "Here is the corrected text" preambles). But the newer models are already good enough to eliminate most of that stuff. And you can get very impressive results with the multi-stage approach. In this case, the first pass asks it to correct OCR errors and to remove line breaks in the middle of a word and things like that. The next stage takes that as the input and asks the model to do things like reformat the text using markdown, to suppress page numbers and repeated page headers, etc. Anyway, I think the samples (which take less than 1-2 minutes to generate) show the power of the approach:

Original PDF:
https://github.com/Dicklesworthstone/llm_aided_ocr/blob/main...

Raw OCR Output:
https://github.com/Dicklesworthstone/llm_aided_ocr/blob/main...

LLM-Corrected Markdown Output:
https://github.com/Dicklesworthstone/llm_aided_ocr/blob/main...

One interesting thing I found was that almost all my attempts to fix/improve things using "classical" methods like regex and other rule based things made everything worse and more brittle, and the real improvements came from adjusting the prompts to make things clearer for the model, and not asking the model to do too much in a single pass (like fixing OCR mistakes AND converting to markdown format).

Anyway, this project is very handy if you have some old scanned books you want to read from Archive.org or Google Books on a Kindle or other ereader device and want things to be re-flowable and clear. It's still not perfect, but I bet within the next year the models will improve even more that it will get closer to 100%. Hope you like it!

[0] https://news.ycombinator.com/item?id=36976333
LangGraph Engineer
> You can never trust a scammer ever and even these scammers are getting scammed it seems

There’s no honor amongst thieves.
Oh nice I misunderstood and thought you forbade all games until he finished mario 1. I thought the poor kiddo couldnt play with his friends :(
Nor would it perform well during compilation, which is very well discussed in the thread. C++ compilation is slow, like the macro expansion of the C versions of min and max.

It’s all in the thread, I don’t know how GP missed it.
So each cell is a nibble. That's cool
Im also inclined to say just use it, based on pareto principle. regexr.com is the best, and has a cheatsheet section. Further, hover tooltips explaining expression behavior. Our team has an informal policy of “link to regexr demo” in comments at callsites for anything absolutely nontrivial.
UN committee approves first cybercrime treaty despite widespread opposition
Yeah this is wild to me, maybe it’s a generational thing? I never “learned” regex. I’ve written hundreds of them but I figured out what I needed and then I moved on.
Thanks! Amazing that the trains are that hard to derail, and that's back in the 1940's
Summary of the 2023 Request for Information on Open-Source Software Security [pdf]
Tom7 is the goat. Love his videos.
You are really arguing that slaves in a region with no functioning legal system should join a union?
I feel this is pretty accurate. How much does the off the shelf solution cost? How big is their team? You can take that into account when pondering on a dollar amount that would actually get what you want done. I mirror mywittyname's sentiment. If you get the right person in there they can probably do it solo. But its going to be a large number that you are not going to like. Otherwise you can hire more, less qualified people, at a lower rate and end up with the same or worse result and it will take 10 times longer. E.g. probably the team the solution you are using now has.
Still, that's insane, the country had less than 100Mbps.

It's not 'insane'. Bandwidth goes a long way when you aren't downloading 100Mb JS frameworks and watching cat videos all day.
Deciding between sticking with off-the-shelf software or building something custom in house is a significant decision. In my experience, the key advantage of bringing development in-house is the ability to create a solution aligned with your business needs. When your team understands your specific challenges, they can craft solutions that off-the-shelf solutions often can’t match. That said, this approach does come with the challenge of staffing a capable development team.

There are of course ways to mitigate this. You could build a local team or leverage outsourced options to access a broader talent pool. You could even start with a hybrid model that combines in-house leadership with external development support. Each path has its trade-offs, but if your long-term goals require flexibility and customization, investing in an in-house team is likely the way to go.
You are allowed to delete any transcription you make and with that we do not keep any copy of the transcripts :) . The cookie banner is there to comply with the EU laws.
Really happy to see some action in this space. Sendgrid is still pretty decent, but I can't stand their parent company Twilio anymore.

Tailwind though… ugh… is proper CSS still an option?

(The expressiveness of the template language is pretty cool but uncomfortably similar to ColdFusion.)
How are you different than ZITADEL specifically?

They’re open source (Apache 2.0), developer friendly (nice, documented API), and handles authorization and user management well.
Ask HN: Leagal questions regarding working with Russian developers (USA)
I know no one can give me formal legal advise here but I have some questions about US sanctions on Russia. I run my own one person software consulting firm and was recently asked by a long time client (A US owned/operated company) to help out on a new project. The software development is being led by a group of Russian developers who have been hired/contracted to develop the code which is owned by my client. I am trying to understand if I should be concerned about US sanctions on Russia but it's hard to untangle the legalize. My understanding right now is that as long as I am not providing engineering services and building code that would be owned by a Russian company then it is ok? And it's perfectly legal for my clients to contract out Russian devs as long as the specific company is not sanctioned and there is no controlled tech changing hands?
GhostWrite Bug of XuanTie C910 and C920 RISC-V CPU
AI model comparison question: list the key success factors for WeChat Pay
AI-Driven Drone Surveillance Is Leading to Home Insurance Cancellations
Consumer groups say they've seen a 'dramatic increase' in homeowners dropped from coverage because of aerial images.
NAND flash is so-named because of its physical resemblance to a NAND gate, but I don't think it actually functions as a NAND gate.

Put another way, is it possible to feed two 16-level signals (X and Y) into a QLC and get a 16-level result back out of it (Z), where Z = X NAND Y, and if so, is it significantly faster, smaller, or less power-hungry than 4 conventional NAND gates running in parallel? I don't think so.

As it stands, NAND flash cells are only used for storage, and that's because of their high information density, not any computational benefits. Once the signals leave the SSD, they've already been converted to binary.
Minor critique on your marketing page — the blurred images in the marquee look like they're a glitch, like the browser is downloading low-resolution copies on accident. Maybe replace with scale-up or a subtle ken burns effect?

otherwise it's really nice!
Same in French: "Je ne sais pas" means I do not know, not I do not not know (aka I know).

In any case, the meaning of the sentence above: "uno no es ninguno" in Spanish is clearly one is not zero, or one is not none, or one is different than none.

"Uno no es nada" could be "one is nothing", and "one is not nothing". It all depends on the frame of reference (in this case English), but for this sentence, the "one is not none" is correct IMO. I would never even do a second pass on that sentence, as a native Spanish speaker (appeal to authority, I know)
"Possession is nine tenths of the law."
I mean, that pattern is pretty common in the micro service world. Services for things like authz, locking, logging/tracing, etc. are often centralized SPOFs.

There are certainly ways to mitigate the SPOFiness of each of those cases, but that doesn’t make having them an antipattern.