skysight-inc/HackerNews huggingface dataset:
The plan9 compiler: https://www.geeklan.co.uk/files/oshug69-Miller-criscv.pdf
What's built in these things are quite often of 2 kinds:

1: Highlevel entity logic, something implemented by a number of game characters but nothing that really steals too much performance (and at that point could be rewritten).

2: Shader stuff that is often quite plain formula calculations that doesn't introduce extra iterations and most of that perf cost is just eaten up by the GPU's.

But most importantly, the initial iteration isn't always the same as the final product. If something really becomes a bottleneck a developer can often rewrite the stuff in a more performant way (and often still leave parameters available for tweaking).
Speaking for France, we had a lot of flat out lies throughout the pandemic.

The most obvious one was on masks and their lack of protection, hammered week after week by the gov spokesperson, until there was enough masks to be distributed. Then masks started to be pushed by the gov, people were encouraged to make their own, and we all know the story from there.

There was no lack of information or evidence, and they paid a lot to keep a full stock of emergency masks up until two years before the pandemic stroke (and then fucked up by giving up on emergency preparation). It was just plain criminal lying to avoid being confronted.
I wouldn't widely blame workers for coming to work sick. Often they're either instructed to do so or have no paid sick leave and desperately need the money.
https://jv-la.com

Recently gave this a facelift (like... 3 weeks ago) :) Some fun color palette generation stuff happening (especially with the book covers)
Deliberate lack of learning. Cui bono etc.
> "Considering the factors mentioned above, we can reason that unit tests are only useful to verify pure business logic inside of a given function."

> That just isn't true and it makes the rest of the blogpost also not true.

It's not? Writing unit test is all about minimizing side effects and interaction with other systems.
https://patrickkeane.me/

Basic wordpress + simple theme. Need to keep it updated more often :)
Another thing is that everyone makes "authentic" food differently.
Chips these days are generally designed to be tested before they're packaged - maybe not at speed but usually some scan vectors and a sanity check for current usage.

Time spent on a tester (a machine costing ~$1M+) is expensive, so is packaging a chip - so typically one does a quick sanity test before packaging and a longer test afterwards.

For chiplets one is more likely to do more early testing, because the packaging is likely to be more expensive (along with all the other dies in the package)
> I stopped reading right here:

Me too. The author shows a deep misunderstanding and even obliviousness to testing, particularly from a practical point of view, that takes any credibility from any argument listed in the article.

It's even perplexing how the best example the author could come up with was this absurd chain of strawmen that a) it's impossible to test code that uses instances of HttpClient, b) dependencies used in dependency injection "serve no practical purpose other than making unit testing possible."

There are plenty of people talking about unit tests. This article is not one of which justifies any click.
Selenean summit refers to the “highest” point on the Moon, but not a mountain
Clarktown: A zero-dependency, pure-Clojure Markdown parser
Interesting Stereotypes About Science
Show HN: Race to complete CSS challenges against other players
most important hardware announcement ever made by a tech firm?
I was under the impression that people set their thermostat at XX.X degrees and determine their comfort level more from that value on the wall than actual temperature.
it's not so much about success with women, it's about having secure home and finances such that i don't have to worry about the future.

getting married, having kids, i could do it now, but i would be living as a renter, dependent on my job. i would not be able to sleep at night.

i feel like my parents generation at least had the safety net of social welfare, but that is no longer there.
There's nothing that cements the value of units tests more, for me, than surfacing bugs in new code almost immediately that would otherwise need debugging "in situ" in the application.

Figuring out where your bug is is so much harder when you have to do it though the lens of other code, whereas in your unit test, you can just see "oh, I'm returning foo.X, not foo.Y".

It also makes sure you actually can construct your object at all without dragging in a dependency on the entire system. Code without tests tends to accrete things that can only be set up in a very long and complex process. This is both hard to reason about (because your system can only be thought about as an ensemble) and fragile when the system changes: you now have to unpick the dependencies to allow your "SendEmail" function to not somehow depend on an interface to some SPI hardware!

But there's certainly value in not spending hours testing obvious code to death: a getter is almost certainly fine, and even if it isn't, the first "real" test that uses it will fail if you're returning the wrong thing. But if, down the line, you do find a bug in it, then something was probably not that obvious!
RISC-V itself is a very confusing branding. "Not a MIPS RISC processor, a MIPS RISC-V processor!"
This guy is such a genius. I'm continuously blown away by his stuff. His work just keeps getting better and better. It's mind-boggling. He's also the author of all this stuff on GitHub which is incredible:

https://github.com/LingDong-

His work is timeless. to me it has this sort of timeless quality to it: people will look at it in like a hundred years or 400 years and be like yeah this person was a genius, they were doing like 2022-Renaissance level stuff at this time. That's what I think... And obviously there's incredible groups like what openai just did with the drawing technology. But as an individual contributor this person's incredible.

Also I love the relentless exploration of code as an artistic medium.
Tests are an extension of documentation, in my opinion.
I go on Github and I read the readme then I go to the test folder and try to see some valid usage examples.

This is what writing useful tests mean, from a client perspective I just want to understand what's valid and what's invalid.

Also useful to make sure we fixed specific scenario bugs.

I've seen a lot of people doing things wrong but we can summarise in two cases:
- "We've got 100% coverage, it must mean we've got no bugs, right?"
- We've got tests covering happy path, everything else is tested manually. It takes forever and it's not shared anywhere, but "trust me" I've tested this.
https://5pi.de/

I really like having a blog and blog posts, but I can't say I love to write them. But as a freelancer, it has been one of my main sources to find new clients.
People are adults. You tell them the truth. Lies don’t work as well now that we have access to so much information.

We now have a sizable percentage of people who not only don’t care what the WHO has to say, but also want to outright cut funding to the organization. Great outcome. Panick avoided.
It means that hand washing was wildly overrated and that 1.5m are no substitute for masks at all.
If you are making classes or methods public because you want to unit test them, you're doing it wrong.

I've heard this a lot, but how do I test private methods right? If my public method just calls 8 private methods (which each call out to a bunch of other private methods), how to I test to make sure all those private methods do what I want them to do so that I know which one is broken when my public method breaks.
> Even if this is true, the very fact that it was even an option that came up in discussion in Cabinet says a lot.

I think it's always worth examining your assumptions. Every time you consider a policy of government, you should consider what would happen if you didn't do it, even if only to compare against a baseline.

> By that time, even a five year old kid could have told you that "taking it on the chin" was not up for discussion.

It was not so obvious at the time. It seemed like a very bad idea to me, but lots of people, including on this forum, were vehement that it was the only option.
Education or Indoctrination? The Violent Origins of Public School Systems
https://captnemo.in/archive.html
> It's not? Writing unit test is all about minimizing side effects and interaction with other systems.

Not really. Writing unit tests is all about verifying behavior from combinations of inputs, and side effects are inputs as well.

You can write unit tests that inject delays and timeouts and retries and throw exceptions under specific circumstances.
I don't like:
- manual testing
- fixing bugs found in production under extreme time pressure
- people finding embarrassing bugs in my code
- spending lots of time explaining what code should be doing to other developers

Unit testing massively reduces all of these. Therefore I assume people that don't like unit tests either enjoy doing these things or are masochistic.
>”developing some degree of a safe word system. Ask us in operations for something the right way and we can give an annoying answer”

This is genius and I must know more..
I think the focus that everything should be testable is a wrong one, but almost every codebase has functionality that can be easily unit tested without major refactors. For everything else, integration tests can already help a lot.
https://arthurdouillard.com/deepcourse/

It's a deep learning course I built for my students around some kinds of "skill tree" like in video games.

PS: I know CSS can be a bit broken on some browsers, I don't care enough to fix that.
Cool, biology is a very nice field to be in, good luck! Beware of the "guy that can fix the printer"-label (happened to me), just play dumb, don't let them know you're good with computers ;)
Business Breakdowns Podcast – Block: Square, Cash App and Economic Access
Using objects on white background as init image is also quite helpful to isolate the subject you want to generate.

That's what I did here with sea slugs and sex toys mix: https://www.instagram.com/p/CWqvXHXj4sM/
3rd level iFrame does not open the parent website for some reason (Keep opening https://dustinbrett.com/ in the browser)
www.sohum.com
I should add that I've written my own Nim web stack on top of Jester. I'm getting it release ready. It integrates with a Flutter front-end engine that will be released first. https://nexusdev.tools/
> "xor r0,r0" would possibly stall a long pipeline

but the same advanced implementation that can break dependencies when reading/writing to r0 can do the same when handling xor r0,r0. Indeed that's exactly what many CPUs do.

I'm not qualified to say whether a zero register is better or not, but I will mention that it basically requires your ISA to be 3 operands that has a cost in term of instruction length: so you save bits to have a smaller set of instructions, but need more bits to increase the number of registers.

RISCs are usually 3 operands anyway for many reasons, so in practice it doesn't make a difference I guess.
Pico-8 Education Edition – A web-based version of pico8
Fixing Dirty Pipe: Samsung rolls out Google code faster than Google
> Consider mocking only as a last resort

Consider trying to write tests in a non-trivial Spring Boot app without mocks
> He’s done a fantastic job creating a new model for understanding reality, some of which suggest interesting physical structures underlying our Universe. He’s changed my understanding of evolution completely with his insights on computational irreducibility and complexity.

> And he’s laying the groundwork for understanding the meta-rules that undergird not just our Universe, but all possible Universes. It’s fantastic stuff.

What are you basing this on? This is the key point: so far, he has only vaguely gestured to such a model, built a whole mathematical tower around it, and is now claiming that this is directly applicable in vastly different domains. If this were a random forum poster saying it, it would smell to high heavens of someone who has no idea what they're speaking about noticing vague similarities between domains and hand waving a mathematical framework that would explain those similarities into being. This being Stephen Wolfram, he definitely knows something about those domains, but I still think it's almost impossible for his claims to be right.

At the very best, he has come up with a powerful mathematical abstraction, perhaps akin to Category Theory: something which can be used to model and relate extremely different phenomena, and allow insights from one domain to be used in another; but which typically doesn't in itself create much knowledge directly. Edit: to be clear, this would be an extraordinary achievement in itself. But it wouldn't "revolutionize science".

Otherwise, when you claim your model can be used equally well in the foundations of physics, economics, pure mathematics, evolutionary biology, computer science and chemistry - it's entirely on you to first prove this absolutely extraordinary claim. Making it with a gentle wave of the hand towards the future and then asking for money to get there raises all possible red flags.
I'm wondering if that's part of the problem, the fact that unit testing started out in Smalltalk. It does make a lot more sense in a dynamic language, because any line that's not touched is a potential typo.
https://youtu.be/To93v46PllQ?t=444
Plenty of time to check Reddit while waiting for the server to reload.
I wish darwin expressed more opinions about evolution in human civilization, especially about answering Spencer's "survival of the fittest", as it would have helped settle a lot of political talk.

Social darwinism is quite well alive today, when you hear people say that poor people deserve their situation, and that poverty is a normal product of meritocracy.
Oh come on!

We call him delusional cause he has lost all humility. He is utterly convinced that he discovered the underlying mechanism of literally everything from physics to eceonomics. Delusion of grandeur is a well-known psychological condition, and no matter what you think of the science, it's hard to argue that Wolfram doesn't have it.

Why can't he just say: "hey I've got this idea, it's crazy, but you know what? I am going to pursue it and see where it leads, anyone wants to join?" Noone would be annoyed by that.

Whether being delusional affects the way you work, I would tend to think so, but you can think otherwise...
You're presenting a false dichotomy: most software is neither proprietary or FOSS; it's in-house, custom-developed functionality, that's never released/available outside of the business that created it.

Its only "user" is the business that made it; they have full access to the source (unless they deleted it; whoops!), are not bound by its copyright (since they're the owners), etc. The FSF has no problem with that.

Although my first job was working on FOSS, all the ones since have been working on such bespoke, in-house software. To be honest, I don't think I've ever seen a job ad for proprietary software (as in, closed-source software that runs on end-user machines).

A few subtleties:

- Javascript is probably a glaring exception. Opinions differ on whether it should count as shipping proprietary software (the FSF think it is, many HNers probably consider it less clear-cut). For what it's worth, the little JS I've written professionally has always been of a progressive, site-still-works-without-it form.

- Some of that never-released software may be accessible to others, e.g. Google's search software can be accessed via google.com. The AGPL has an interesting take on that particular niche.

- Sometimes the human end-users of this software have very limited access/control over it, e.g. if Walmart maintains its own checkout software, those operating the checkouts probably can't access the source, etc. However, that's nothing to do with copyright, FOSS, etc. it's just a business decision, presumably covered by employment contracts (e.g. "in the course of your work you may be given access to computer systems; these are confidential, and you must not hack/compromise/etc.").
https://lwgmnz.me/
Nothing fancy, but where I'm from coding/technical blogs are very kinda rare. I mainly talk about mobile development. Thank you for visiting.
I am always quite surprised to see these as being labeled "overachiever" goals (they are pretty commonly expressed similarly).

Being an "overachiever" means : benefiting from the work of others (food, clothes, transports, ...) for roughly 23 years (time it takes to complete a master degree), then contributing to society for roughly 7 years (until the "successful company is built) by working extremely and then benefiting from the work of other for 60 more years (assuming death at 90) once financial independence is reached.

This is absolutely not sustainable for society as a whole, if more people managed to do that, mankind would not be better off. The fact that you have been able to complete your last goal, and that you are still contributing to society in a meaningful way, hopefully for many years to come is a much better outcome for everyone than if these self imposed goals had been reached. And the fact that you are content with your achievements so far a reflection of that.

You are absolutely succeeding at life, and you actually have overachieved those goals.
One of the intriguing things about the Witness is that it feels more like studying a simulation than experiencing a story. It that sense it is remarkable. It feels a bit like some of the weirder niche games of the 90‘s but with incredible polish. Instead of guiding you literally, it communicates through taking your perspective while you slowly emerge yourself. It’s a game made with deep appreciation of their craft, respect of their players and almost something like a longing to communicate.
Are these bugs in the sense that the code's plain wrong or that the developer misunderstood the spec? Good unit tests (when written alongside the code they're testing) should go a long way towards preventing the former.
The government and hospitals don’t source masks from the local store or amazon. They can also force companies in a crisis to sell only to them and ban exports.

If the government is competing for masks with regular citizens, they had already failed years before. And they did, spectacularly.
DISCLAIMER: Translation of a propaganda article by a Russian publication.
ah ok a bit like the french used to do prunes wrapped in bacon. do the spanish grow dates? never seen a spanish date
The 0.5 MB of nothing in all Apple Music files (2020)
To me it fits into the experience that as a team goes through growth, you need to adjust your team communications/management as you grow. Roughly: 7 people, 15, 35-42, 100ish. Where the Dunbar number is just the top number. (Which tells me I need to pull out Vern Harnish’s Scaling Up, again).
The problem with this (regardless of your position on Nuclear energy) is that the current UK government have a woeful record of long term commitments.

They're fond of flashy announcements, but the hard long term work to bring them to fruition is another matter.
> You might get bought-out or a new thing might come along that suits your model really well.

Once you get bought out, you'll likely need to integrate or replatform to the buyer's tech. Just look @ Google acquisitions. They spend the next few years paying down tech debt and scaling, so don't waste your time on that pre liquidity event. Spend that period of time on product improvements and market expansion.
Cool website, but I have to note that the picture file of you on the front page is humongous, when compared to the little size it's scaled to. :)
Because that seems like they're doing things backwards...

You should know what result you want before you even start writing the code.
That your public function calls private functions is an implementation detail. It does not matter, test the public function. Subsequently that tests the private functions for all relevant input.

There was recently a submission here on HN that talked about this and different perspectives on that topic. It's not a universally shared opinion, surprisingly.
Maybe he simply can't escape his impostor syndrome. It's not always nefarious.
Agree with everything you said, but want to add one more point:

I have made my peace with all of these bureaucratic failures. Maybe a certain amount of contradiction and chaos is part of living in a democracy.

The scary part is that at the same time there has been an authoritarian push to crack down on "disinformation", you know, like the lab leak theory, or the conspiracy theory that vaccination will become mandatory. That has sent my trust from low into negative territory.
If you got the capital he had could you replicate Tesla’s success?

I know I couldn’t.
Yup. I am a sober alcoholic and the most meaningful experience in my life—by a country mile—is sponsoring another alcoholic young man and watching him transform into a responsible, capable adult.
>Facts are carefully constructed human artifacts, not ideal platonic forms.

Is that a fact, or opinion?
Imho one of the benefits of unit testing is precisely that you have to write/refactor your code to make it more testable and in the process you uncover and fix flaws in lacking abstraction and isolation.
https://www.justus.ws

Built with Eleventy, hosted on GitHub Pages. I’ve had more polished looking sites, but I’m having fun with it and trying not to take myself too seriously.

For dev, it gets rebuilt locally after every file change (Eleventy's file watching and live refresh is awesome). For prod, it gets built on GitHub by Actions after every push. That way I can make quick updates using GitHub's editor on-the-go if I need to.

I write about sysadmin/sewing/running/outdoors/whatever else interests me.
Universities and science academies are full of guys loudly announcing their revolutions. Wolfram uses his own money for it - I respect that.
Hi HN,
I've been developing CSS Race for the past few months as a side project, and would love to hear your thoughts! There are still heaps of features I would love to develop, particularly leaderboards, but I thought I would do an initial release to make sure I haven't gone the complete wrong route.

Stack is:
Next.js + Typescript with Styled Components on the front-end.
Node.js + Express + Prisma + Typescript on the back-end + PostgreSQL.

Any feedback is greatly appreciated!
Thanks for the list. How are you certain the author didn't independently rediscover their perspective?
A fixed zero register is a trivial "increase in the number of registers". To be fair there's very little real-world code that even comes close to making use of 16 registers, let alone 32. So if you really wanted to optimize use of the encoding space, that would be something to focus on first.
> It pains me when I see developers testing their functionality end to end, manually

On the other hand I know developers that only unit test. Hundreds of lines of mock code, dozens of tests. No documentation, no sample configuration for the final application and dozens of data races because the unit tests don't cover multi threading. But hey an unusable buggy mess is a net positive as long as it makes the test coverage statistic happy and that is one of those things reported to management.

While a bit exaggerated one of the downsides of unit tests is that they quickly become part of a metric without regards for when they ad value.
A bit late to the party, but here is my site/blog:

https://danrh.net/

A Jekyll site, hosted on DigitalOcean, and tested it on w3m and firefox. I mainly write about Software Engineering / Infrastructure.

I'm currently in the process of revamping it, partially because I'm looking for a new job.
From context collapse to content collapse (2020)
Your expecting too much detail from your tests. As consequence your probably over-specifying them as well. Test through your public interface.