skysight-inc/HackerNews huggingface dataset:
IMO, TDD really depends on which kind of code you're writing, which language, which tooling...

I just finished a quite large collection of parsers and did it entirely using TDD, got 100% coverage and it was much easier than when I did it without it in the past. I kinda HAD to get 100% coverage because how else would I test my code? I only wrote the part that read from files at the end of the project.

Also, when I was writing code that communicated with banks or telcos in arcane COBOL-era protocols, I didn't really have a way to "test" my code other than in production, so I relied on TDD for my day-to-day coding. It worked fine.

For GUI stuff, or web development? I used TDD in the past and didn't gain anything for it.

This should be obvious for everyone, but TDD only works when it works... it's not a silver bullet.
To do TDD correctly, things have to be defined in great detail. 'Given X, I should get Y'.
> In the case most favorable to Epic, it could be reduced to a lower value

No.

The most favourable outcome would be allowing Epic and others who already have their own sales and payment channels to use them alongside the app store payment system.

I think that's the main reason this lawsuit exists. I don't think Epic or Spotify really want to creat their own iOS app store.
Design machines online. Receive real parts to build them in the mail
> what did western civilisation do to grow such a huge amount of wealth compared to the rest of the world?

Many civilizations have taken turns at doing this, from ancient Mesopotamia, now part of the Middle East, and onwards. There's nothing exceptional about Western civilization, in this regard. Nor, I suspect, will the US hegemony -- which was gained by selling arms to both sides of 2 world wars which both crippled the former hegemony -- be exceptional.
Sure looks like the same technology, thanks for finding that.

Even if they did improve the density, talk about stuffing these into phones as they imply is premature. I don't want Florida Man cracking open these "to get muh diamonds" and turn some of the C-14 into a fine mist in the process. While beta decay is okay as a lump, I don't want that as an inhalant.

If we developed some kind of unobtainium armor that cannot be breached without say, some cooperation by friendly high-energy physicists, then I'd maybe be comfortable handing these out at the local convenience store or putting them in mass consumer devices (that also last thousands of years).

A comment in that YouTube video pointed to in this thread puts numbers on the density problem:

The Nuclear Diamond Battery can make 11,400 electrons. That's hardly enough to power anything. It takes 6.24 x 10 to the eighteen to make 1 amp of useful current. One microamp of current is 6.24 x 10 to the 12 electrons. That's 6240000000000 electrons to make one microamp of current which can hardly power anything. The electricity produced by the nuclear diamond battery will not power any device we currently use.

The 11,400 electrons figure comes from this:

https://ndb.technology/news-releases/

That 11,400 is the "up to" figure of "energetic electrons released from the enegetic electron decay could scatter and deposit energy to the [C-14] diamond". No detail on how thick the graphite and diamond are for that example, I can't locate their patents, and I can't find better specs to get a feel for the power density. Nor can I find any references to "Orano Call" that don't point back to NDB, so I have strong doubts that event really exists. There is an Orano SA, but they don't mention NDB on their site.

But 16 orders of magnitude still make for an unwieldy battery. And there is the purification problem as well, which will generate a mountain of radioactive waste to put back where they got the C-14 from in the first place. And the physics prof in the YouTube pointed out the C-12 itself is also slightly radioactive (I would have to evaluate the medical implications to satisfy myself).

I agree with the flagging, unless NDB comes out with real specs, metrics, and a prototype independent engineers can poke and prod.
People have been accusing Apple devices of being a fashion symbol since the first iPod came out. In the US, Apple has 45% market share. How is anything with that type of market share a status symbol.
Ask HN: Is front end testing a part of your dev team's workflow?
I've read a lot about different front end testing techniques and frameworks, and also written a decent amount of front end tests (unit, integration, e2e). I have yet to see the value, even over time, compared to the cost of writing and maintaining those tests. Tests for the back end is a different story, especially with a RESTful API. However, I'm curious if there are other teams that have had different experiences, and if so, what tools are you using to conduct your tests?
Some of these Kpop bands do the Lords work in keeping democracy alive, so there's that.
>Every webserver logs the IP address and the URL visited.

I maintain a webserver - https://git.sr.ht/~ancarda/tls-redirector - that has no support for logging. If you wanted logs for some reason, you'd need to modify the source code to add that functionality.

Granted, tls-redirector isn't a general purpose webserver, but even in production I tend to turn off logging. I just don't see the need to have logs lying around that I never use.
The First Open GPT-3 Demo Day [video]
Sure, please explain your life to me and amuse me in some way, and I’ll send you an invite.
I looked at the linked thread and don't see anything to substantiate the claim in the title here. It looks to me like the thread was shut down by the AMA mods, not the Reddit Admins.

https://www.reddit.com/r/IAmA/comments/igeixp/i_am_william_b...

> While this is a fascinating topic from a notable public figure, the mod team would like to remind everyone not to believe everything they read on the internet. Normally, we’d hesitate to allow an AMA with a topic like this at all, but Mr. Binney meets our notability qualifications better than most, and he has the support today of a US Senate candidate. Consequently, we think it’s important we offer them this platform to share their views. That being said, we have a policy against disinformation being shared on this subreddit: we won’t hesitate to remove harmful disinformation if posted by the OP or users, particularly if it’s harmful to innocent people or spreads incorrect information about elections and voting. We also encourage all users and AMA participants to review Reddit’s site-wide rules carefully before posting - it would be quite easy to let this AMA venture into territory that would get it shut down by the Reddit Safety teams.
>
> EDIT: OP is making very bold claims with insufficient proof. This AMA has devolved into a significant vector for disinformation. We have removed and locked it.
Yes, you should delete tests for everything that isn't a required external behavior, or a bugfix IMO.

Otherwise you're implicitly testing the implementation, which makes refactoring impossible.

A big smell here is if the large majority of your tests are mocked. This might mean you're testing at too fine-grained a level.
The evolution of exactly the same illness is difficult[1].

Polio is an Enterovirus[2]. There are many virus in that family, and most of them cause only a mild stomachache and fever. A week later you forget that you where ill. Moreover, in the 95% of the case the Polio virus only cause the same symptoms instead of the paralysis.

One of the other virus can evolve and start to cause an illness that is very similar to Polio and we can decide to call it Polio, or PolioII, or some acronym like SPGWSPLI or something like that[3].

Nobody is sure about the cause of Acute flaccid myelitis [4], but it is somewhat similar to Polio and it is probably caused by an Enterovirus too. If something like that cause a big outbreak, we will hopefully make a vaccine and eradicate it too.

[1] Where "difficult" means "almost impossible, but there is a chance".

[2] https://en.wikipedia.org/wiki/Enterovirus

[3] Old illness have cool names. I hope we can eradicate them all, but they have cool names like "Cholera". New illness get a bland acronym.

[4] https://en.wikipedia.org/wiki/Acute_flaccid_myelitis
Compared to aboriginal life, Huck Finn might as well been aboard the deck of the Starship Enterprise. Steamboats, cannons, metallurgy, the beginnings of modern medicine. The mid-nineteenth century was during the industrial revolution. I'd say your life today is closer to Huck Finn than a typical aboriginal person.
Do you have a source on this? I’m interested to see if we’ve actually quantified the effectiveness of this delegitimization.
Yes, the implementation is pretty rubbish, but the concept is fine

It's how to authenticate and authorise an offline cardless transaction that's hard
And that’s not the reason people choose iPhones?
No Rabies Treatment After All: Failure of the Milwaukee Protocol
Constant change is a nuisance. When I'm working on a task I want to be able to concentrate on doing that task, not relearning my tools for the umpteenth time.

If the new feature doesn't affect my current workflow, then great! I can ignore it until I'm ready. The trouble, as the article notes, is the application making me aware of this brilliant new feature. Often application developers do this either by breaking a workflow and forcing interaction with the new feature or otherwise nagging me while I'm wanting to do something else.

Education outside of the application (tutorials, good documentation, blogs, etc) is perhaps a better way of driving adoption of features.
All of this is spot on, especially the second point. As someone who lives with ADHD, TDD is hell incarnate for my productivity. 'Lets write a test for what will be an Observable and account for for failing, passing, bad data, empty data sets...oh wait, what was the original task?' It's so unbelievably monotonous that it's REALLY easy to lose track of the original task and worse, sometimes I'll be doing something and think up an additional or better way to accomplish something, it creates real-time tech debt faster. My SO has OCD and to see the ways we think in action being so different makes it super clear to me that things like TDD probably are heaven for some people.
Umwhat? If your cat is running away when you set it loose, you're not doing it right.
I'm an architect. During the pandemic, I'm still stuck 8 hours behind my laptop, just doing calls, presentations etc.
> I think it's inevitable for WASM to replace JS eventually.

Do you think front-end developers will start writing C/C++/Rust instead of JavaScript? Or do we need other languages that can compile to WASM before it can replace JS?
This is DEFINITELY NOT explained like I’m five. More like late high school level (mathematical planes, frequencies) and above (matrixes). I appreciate the author’s attempt at vulgarization but the title is wrong.
Who's more respected? The white plumber whose Corvette is seen as the just fruits of diligent labor, or the black engineer whose BMW is regarded as clear evidence of foolish profligacy?

I'd be more inclined to credit what you're saying if I hadn't seen precisely that distinction so often expressed by people who, in contexts not influenced by their perspective on race, uphold pure meritocracy as the highest good, whose primacy is a uniquely American virtue.

And, in any case, people's perceptions aren't as simple as you make them out to be. I think it would be very nice if they were! But to behave in contravention of reality is the best way I know to betray myself into foolishness. Maybe you've had better results with the method.
If your teenage son was arrested for nor other reason than walking on the street and then was tortured. Wouldn't you want to punish the perpetrators? But you can't in Belarus. The only way is to call their wives and mothers and tell them the husband/son is a monster.
Skimming through this book, one thing i was constantly wondering, is how well does this ocaml framework use the hardware.

Leaving ocaml aside, the connection between scientific computing and hardware is the one thing I miss the most in "scientific computing" books and courses, because it sooner or later limits the science that any researcher doing scientific computing can do.

To give an example, earlier this week, one of our scientists was waiting 10 minutes between each interactive iteration of their data-set, so I was called to help, and the only feedback they gave was that "its slow", to which I replied "slow with respect to what? how fast are you expecting this to be and _why_?".

The answer to these questions is the difference between "maybe they just need a faster computer", "maybe they need a different algorithm", or even "maybe this problem cannot be solved today because computers this fast do not exist".

From their facial expression, it looked to me that they actually had never thought about any of this, probably because whatever they did before was always fast enough, but now this issue was limiting their science and they were lacking the bare minimum set of tools to even get proper help.

If you are doing scientific computing, chances are that the problems you are going to be dealing with are going to be getting bigger and harder as you advance in your career. For many scientists, the first problems will actually be big enough for the hardware to matter.

I wish scientific computing courses and books will at least provide the most basic tools to these scientist for them to at least be able to get meaningful help. Having someone on call for when this matters is quite expensive.
It looks to me like this thread was shut down by the AMA mods, not reddit.

https://www.reddit.com/r/IAmA/comments/igeixp/i_am_william_b...
I would say features never matter even for SMB demos. Sell the value and solutions, not features.
(for context: -fomit-frame-pointer causes the FP to not be saved on the stack, stack unwinding then relies on DWARF or compiler-internal information to unwind the stack.)

I don't see how that would have an effect on TCO, as the storing or not of the FP (beyond in a register) is not part of the calling convention AFAIK.
- Only externally linked functions have to conform, so I can understand if TCO does not apply to mutually recursive external functions. Perhaps with LTO it can?
- Even an external function that calls itself in tail-position should be TCO-able under -fno-omit-frame-pointer. The compiler reuses the same frame and generates a jump instead of a full function call.
I'm not defeatist. I'm not defending less privacy for the sake of less privacy. In the end the goal is to not suffer.

Whether its done through less privacy or more privacy doesn't really matter.

>Only if citizens let governments continue to increase their surveillance activities with no oversight and no pushback

I would rather push for more openness and transparency, open up the surveillance for everyone to reduce the information asymmetries.

Or pushing for technology that enable citizen to survilance the government.
It doesn't have to literally be incremented, my thinking was just that you can't really run out of numbers.

But then again if they used something like a 32 bit int and don't us sequential numbers, I suppose retrofitting for a 64 bit int might take a decent amount of work.
Much as I love Ben Thompson, this is rearranging the deck chairs while the Titanic is sinking. Or maybe arguing about which dinner fork the gorilla should use while it's eating you.

Treat the App Store like any other modern open market. Apply real world market rules to all these digital markets.

- rule of law. contracts, civil, business, etc.

- fair and impartial judiciary

- right of appeal

- regulations to ensure equal footing of participants

- tort

Etc.

Voila, fixed.

A bit more discipline is needed to rationalize Google, Facebook, and Amazon. Starting with no self-dealing (conflicts of interest). And the social networks need particular mitigations to deweaponize their outrage engine feedback loops.

This is all pretty simple, obvious stuff.

Seriously, am I the only person whose read books like The Mystery of Capital?

Why are so many self-proclaimed capitalists so painfully oblivious to liberal and neoliberal traditions?
According to the subreddit mods:

> EDIT: OP is making very bold claims with insufficient proof. This AMA has devolved into a significant vector for disinformation. We have removed and locked it.
He Built a $1B Business by Creating Software That Modernizes Finance
> Essentially, with regular DRAM, you cannot do better than the contemporary low-latency DDRx memory. You might chose to increase latency to increase throughput, though.

My understanding is that, given how memory systems work right now, typically it's the opposite: increasing throughput decreases latency.
You're missing the point. The reference to 9/11 was meant to indicate that since then tracing transactions worldwide got a lot stricter due to pressure from US to international banking systems.
What next, a Teen Vogue piece on non-euclidean geometry?
Please call it Sealab 2021.
I am part of Owl contributors/maintainers.

You are right that the ecosystem is small, and will likely be always behind Python, R and Julia. But considering how small the community around numerical methods in OCaml is, I think the work that went into owl and this book is incredible and may help raising awareness and growing the userbase.

I think one of our current limitations is the lack of a high quality, full-featured plotting library. There are some which are used for publication level plots, but they are nowhere near the experience of plotly, matplotlib, ggplot2 or julia's plots.

In any case, the community seems to be slowly growing already, so there is some hope.
I think the best would be if we can start integrating it with SciML and similar projects.
That ranks right up there with "You do realize that X, right?" It's like, not only am I going to tell you you're wrong, but I'm also going to imply it's because you're too stupid to have put any thought into your opinion.
>Police generally are seen as the folk who take the fun out of things

You must live in a very safe/upper-class neighborhood if that's how you think.
Via AMZN-/MSFT-/VC-praised work, IDed threat to AI-ers; KWs: molecular genetics
The main benefit of TDD is that it forces you to code with testing in mind. This produces a decoupled architecture of easily testable system components...

However, once you learn the skill of making things testable, you can find that you don't really need to write tests first anymore... which makes TDD less useful

This is not necessarily rational, but it can explain why it's popularity has diminished, even among people who know it's benefits.
Guilt is as much a tool as pride. I think the way Martin Luther King, Jr. frames the goal of direct action in “A Letter from Birmingham Jail”[1] is helpful in understanding the power of internal guilt in changing things:

> You may well ask: "Why direct action? Why sit ins, marches and so forth? Isn't negotiation a better path?" You are quite right in calling for negotiation. Indeed, this is the very purpose of direct action. Nonviolent direct action seeks to create such a crisis and foster such a tension that a community which has constantly refused to negotiate is forced to confront the issue.

You can then use both the stick (tension that leads to confronting a crisis) to lead people to the carrot (pride for confronting that crisis).

It does depend on the community’s ability to internalize that tension, though. I’m concerned that is much harder than it used to be. I think for many American Republicans in particular that is no longer possible, because they’ve created parallel information streams that scrubs out all of that tension. If that’s true, I don’t actually know what the right tactic is to help them understand the tension that exist in so many issues, or even if there is a plausible tactic.

[1]: https://www.africa.upenn.edu/Articles_Gen/Letter_Birmingham....
I read last week about unconfirmed reports that the fire was caused by workers welding a door. It would be tragically ironic if a report that highlighted security concerns about a missing door is what caused the explosions.

In a July 20, 2020, report to the president and prime minister — just two weeks prior to the explosion — Lebanese security services warned that there were serious security flaws at the facility that left the ammonium nitrate open to theft.

One door of the unguarded warehouse was missing, while there was also a hole in the southern wall, the report said.
Are you suggesting that no one should investigate how this became the government’s problem in the first place? That is absurd.
OCaml is the strongly-typed functional language that sees most serious use.

It's harder to do generic polymorphism in OCaml since the language has nothing like C++'s parametric templates or Haskell's type classes. It does have a very nice module system that has the required flexibility, but compared to these languages, I think it is clunky for the kind of genericity seen in scientific computing.

I think Julia has shown us that strong typing is not really needed for scientific computing.
Programming in K (2016)
Let's go further. Make it a quiz about the general topic too. If you don't have any fundamental knowledge about a topic, your opinion shouldn't get a platform for it to spread.
If you hate sitting in front of a computer, you might retrain to be a hardware engineer (e.g. in robotics, aerospace etc.). They can sometimes spend a lot of the time building prototypes or testing the physical component in a lab (of course, there's plenty of hardware jobs where you just spend the whole day in front of a CAD, but you can filter them out during your job search). Unfortunately, this will still require a lot of focus. So, if you're tired with having to be focused all the time, then I'm afraid you need to either get used to it or stop working office jobs entirely (or maybe try to go part-time in software?).
The most obvious case I have seen of this is the addiction to over mock everything and to not write any integration tests.

We got 90% coverage! Sure, all the mocks use 'any' and are not really relevant to real world returns, we don't test any part of the front end and the tests have never actually caught a failure of the many we have every quarter, but 90%!
When plunder becomes a way of life for a group of men in a society, over the course of time they create for themselves a legal system that authorizes it and a moral code that glorifies it.

Frédéric Bastiat
Actually, there's a lot in this new release that I like (my high light is when navigating back, actually going back to where you were on that previous page, without the page jumping around as things are re-rendered on my somewhat slow phone). Yes, there are changes, but I can deal with changes (they are part of life, please get used to them) and who knows, over time (ie not within 2 hours after the update installing) we might even come to appreciate Mozilla's choices.
ooo I like this.
Given RT née Russia Today's heavy bias, what are we reading into this?
Wouldn't that require going back to get an entire BSEE at least?
> ..., Germany all had unprecedented terror attacks in the years since 9-11.

Germany hasn't - we've had much worse terror attacks in the years before 9-11. I'll just mention the Oktoberfest attack or the attack on the munich olympic games. In terms of collective scare, the RAF (Rote Armee Fraktion) far eclipses any terror risk after 9-11. Even today, more people get killed by Nazi supporters than other terrorists.

We still have put a lot of restrictive measures in place, but it's more that 9-11 and terrorism act as a convenient leverage to impose those measures and not the actual danger.
Fabrice Bellard has done some work on this - https://bellard.org/textsynth/sms.html
For me it’s watching all the responses from the likes of people who don’t get the satire Kvetching right here in the comments.
https://en.wikipedia.org/wiki/A.C.A.B.