skysight-inc/HackerNews huggingface dataset:
I recommend the LLVM source code. I've worked a bit with it implementing toy compilers and using LLVM as a backend for generating x86/SPARC object code. Just compiling it is a nice exercise if you're new to C++ and CMake (as I was, then).

I would start by reading the LLVM Programmer's Manual [prog man] and the LLVM Coding Standards [code stand] and looking up how the code they reference and the examples are implemented and how they interact with each other. You can browse the code in the LLVM Mirror Git repository [llvm-git] or the cross-referenced Doxygen [llvm-doxy] (has very useful links!). If you're willing to spend the time it might be worth setting up the codebase in your IDE of choice with the proper integrations to be able to browse and cross-reference the source code there.

There is a lot to learn especially from the Important and useful LLVM APIs and Picking the Right Data Structure for a Task (and the corresponding code) in the Programmer's Manual. The data structures under llvm/ADT could be especially useful to look at. They are good generic data structures that you may even want to directly reuse in your own project, but they are much easier on the eyes and closer to what you and I would want to see in our own codebases than the source code of the standard library or the Boost data structures.

[prog man]: https://releases.llvm.org/4.0.1/docs/ProgrammersManual.html

[code stand]: https://releases.llvm.org/4.0.1/docs/CodingStandards.html

[llvm-git]: https://github.com/llvm-mirror/llvm

[llvm-doxy]: http://llvm.org/doxygen/modules.html

PS. The Coding Standards will contain a lot of subjective stuff that makes sense inside LLVM for consistency but you don't want to adopt verbatim into an existing (maybe not even a green field) project, like naming variables with Capital letters. You can skim these parts, but it might be useful to know about the existence of these types of issues.
Taken to extremes, it's easy to see how a virus that is 50% fatal within 24 hours will not last long itself.

Is there really very much selection pressure between 1% and 2% fatality rates over 4 week timespans, though? Especially if immunity is conveyed by infection, I don't see any reason why a virus like that would evolve to be less fatal within the timescales that humans care about.
For a simple command line program, I created 2048.cpp: https://github.com/plibither8/2048.cpp. It's gained quite some popularity (GitHub tweeted about it [1]), and the codebase has improved and grown all thanks to a new maintainer.

[1]: https://twitter.com/github/status/1017094930991370240

Also on HN: https://news.ycombinator.com/item?id=17897283

PS: A fork of 2048.cpp was even used as a demo at CppCon 2020 (https://www.youtube.com/watch?v=HrOEyJVU5As)
I think (hope!) that the poster meant amongst other things. After all, someone's chemo change is someone else's life savings.
I’ve been reading a growing body of literature which entertains childbirth as a form of violence, largely based on this premise.

Knowingly causing pain against the will of another is violence, so creating a being that will experience pain could be considered the same.

I’ve noticed it especially in Japanese fiction, for some added context.
There's (arguably) the limited exception of pharmaceuticals--and, even there, there's a government fund to handle people who get sick or die because of vaccines. But it's hard to otherwise identify products used by consumers that, when maintained and used properly, sometimes randomly kill people and we shrug our shoulders and say "Stuff happens. Still a net benefit to society." We certainly don't do it today in the case of manufacturing or design defects in vehicles.
Grafana Tempo, a scalable distributed tracing system
I have a SNES DK competition cartridge in great condition framed with an unpopped condition milton bradley pog set https://www.worthpoint.com/worthopedia/1995-donkey-kong-pog-...

All acquired when I was a nintendo power obsessed kid :)

Hope to sell it some day to a SV tech bro for 5 figures
It seems like all of these questions are answered in the article? Hell, they've even got a geneticist working on sequencing the genome of the dormant yeast they extracted from the ancient pottery, so once that's finished I think we'll know pretty conclusively what we're looking at. But that the yeast would only grow when fed emmer flour, not modern wheat flour, already seems to suggest that something unusual is going on here that you wouldn't be seeing if it were truly modern bread yeast.
But 1994 is not much earlier than 1994, right? How is the comment you reply to inaccurate? The first non-NeXT browsers appeared in 1992 (unless you count the Line Mode Browser from 1991).
I don't have hard numbers to prove it. But I think it's significant that https://deepspec.org/main, the largest recent formal verification project (at least in the US) chose to use Coq, which is based on type theory. There's also Coq-verified code in Chrome (http://adam.chlipala.net/papers/FiatCryptoSP19/FiatCryptoSP1...), a claim that can't be made for any other theorem provers (as far as I'm aware).
We simply don’t know.
Teenage Engineering’s new synths produce Mega Man and Street Fighter soundtracks
You can implement your own with canvas and PDFjs ... I did something back in the day with latex and java (yikes) ... but anything is possible ... now I would try socket.io whiteboard example so many could destroy the same PDF
octave is not a 1-1 replacement. If you are sharing and contributing to a matlab project, you probably want to run it in matlab
Researchers have been able to make integrated circuits emit radio waves.
Yes I understand that. But I’m specifically talking about this in the context of machine learning, more specifically deep learning. This tech by design is supposed to learn on its own. So while the traditional cyber security is a game between humans, this is a battle between humans and machines that learn faster than humans.
Ask HN: Best programmable robot for a child with SDK?
I want to show my kids what you can achieve with software development, and I think dealing with some physical thing that is controlled by your code is incredible fun - you are getting feedback instantly.

I see that there some projects like Sphero, etc.. that already got an API - I think it's great.

Can you advice some other things that are falls into that category? (I'm actually afraid of doing hardware part of it... so I think arduino-based things are too complex -- correct me if I'm wrong)
>the problem at Mozilla is bad management for the last decade.

It sure is a problem but I'd say Google's market dominance not being an issue is false. Remember when H264 became the standard just because Google decided it after what must've felt like a fakeout to mozilla. Then had to start working on a non proprietary implementation of what google already had ready.
This was back when people consistently complained bout firefox having fallen behind because a single youtube tab could make the entire browser lag and when chrom(ium) wasn't as dominant as it is today.
Thank you for sharing!

Peter Singer, one of the most famous philosophers (and perhaps "the grandfather" of animal rights / animal welfare movement) argues that perhaps, unless we were willing to perform an experiment on humans, we ought not perform the experiment on animals.

There are so many experiments which treat animals in awful ways for virtually no progress towards the goal of improving human lives. We were far worse in the past (see Draize test) and have gotten better at not performing really horrible experiments on animals. But it's precisely because animal lives are seen as less important that we are willing to perform experiments with almost no benefit for humanity.

At the moment, the largest tragedy is meat consumption - we can focus on improving lab animals' lives too, but the meat consumption is orders of magnitude worse with respect to causing suffering to sentient creatures.
The GDAL library is a present from the gods to the geospatial community (well, Frank Warmerdam mostly). I read the parts of the source code a while ago and the C component was fairly readable. I had troubles following the C++ code. That's the beauty of C, even if you don't use it frequently, you can still read and write half-decent code with it.
The Internet is not made of fine unicorn hair braided by pixies. It’s a huge very physical machine comprised of wires, switches, demarcation points, interchange data centers (carrier hotels), undersea and long haul overland cables, satellites, and massive cloud data centers that host shared compute and data and SaaS apps. It consumes a ton of energy and if you weighed it all would be quite massive.

PCs and mobile devices are part of that vast spaghetti monster, but only small parts.

If we could achieve cloud SaaS levels of performance and usability in pure P2P apps it would be possible to dispense with some of that, but not all of it. You would still need the wiring and interchanges and stuff. Pure P2P is also hard and doing it that efficiently requires solving some unsolved engineering problems around rapid bootstrapping, data lookup, consensus, and security.
AFAIK this is the variant that formed in northern Italy back in February and is since ruling the world
Why would anyone care about this racist creep's failed software from 25 years ago?
I've noticed a few ways in which this overload of information manifests.

You've got the people who consume a lot of "information" yet can't make much sense of it, or at least in a way that lines up to shared reality. I'd say this represents the average person. The main coping mechanism for these people is to consume information as entertainment and otherwise not think about what they're taking in. Otherwise, they might subscribe to prefab reality "lenses" that effectively give them the orders they need to make executive decisions in life.

Then you have those who actually can remember lots of trivial knowledge, but can hardly think beyond the level of factoids. In other words, they think that the world can be explained by what's directly in front of them, ignoring the need to distill, synthesize, and extrapolate in order to make predictive models of the world. I know a few intellectuals that insist on this thought process, and their predictions are usually wrong, yet they don't adjust their belief that memorizing a bunch of facts makes them more accurate thinkers. Likewise to the common person, the trivial knowledge archetype sometimes subscribes to existing world views so they can cherry pick knowledge that fits those views, mistakenly believing that their views are original and not assigned to them.

There's also the opposite of the last archetype, which is the overly abstract thinker who can't remember many specific facts at all, so they cope by passively consuming large amounts of "data" and distilling it down into a models of the world that make sense to them. This is the camp that I fall into. It's not that I don't remember anything specific, but individual factoids must be of significant interest for me to commit them to concrete memory. Even if my models of reality don't line up on a factual basis, the more important thing to me is whether I get results. The problem with people like I am is that we can think in terms of big picture but sometimes fail when thinking in a micro-scale actually counts for something. This becomes even worse when there is too much information to consume, because any bit of compelling data causes the distilled reality models to expand in ways that might not be justified.
There are various legal restrictions and responsibilities on your relationship with a minor child that are not present for an AI, as well as a time limit to your control.

Children may be under parental control for a period of time, but describing them as slaves would be fairly silly IMO. The proposed/prospective use cases for AIs tend to be far more in the slavery direction.
Hope you have your bluetooth also turned off
NHS Covid-19 app does not work for phones set to French and Spanish
This is pretty awesome! How does pricing work for this?
There is some research to suggest memories are stickier when tied to locations or other physical things.
What about an "update(state, event) -> NewState" design for state machines and stateful protocols?
Not if you take the kind of measures they're taking to maintain a fully sterile, sealed environment.
Only if they are so deadly that it's harming their transmissibility.
L.A. campuses unlikely to reopen until at least January
It doesn't have an isolated ground (the focus was on size and cost), but this shouldn't be an issue. All spec-compliant USB ports contain self-resetting overcurrent protection - in practice this is almost always via a PTC resettable fuse on USB GND.
For what it's worth, I haven't had a single complaint related to the grounding in 3 years.
No need to create interfaces generally in spring when there will only be one class implementing. For testing, mocks can be created directly from the actual classes.
Oh yeah, I definitely agree. I don't think it's relevant for someone just starting out. Just wanted to put it out as an example
This is just the same ridiculous, overly cynical nonsense people have been saying for decades regurgitated.

- Good relationships are a requirement for a good manager.

- You may not care about them but executives do, and the manager is judged on their quality.

- If you don't think managerial work is work you must have truly had some terrible managers.
Is the child programming the robot, or the robot programming the child?
"They" (Qt Company) are a commercial enterprise that mostly makes its money from license sales. Relicensing as MIT would be terrible for them. From their product policy you can clearly tell that even LGPL isn't working as they would like, but they can't get rid of that, so they focus in fields that don't like LGPL either. That's of course annoying for those of us who don't optimize for "what makes them money", but for "how can we build software best"...
Wow, this takes me back. My first job used OpenACS and AOLServer. We ended up converting everything to Ruby on Rails (1.16) because development had slowed so much and it was hard to find new developers, documentation, and other resources.

TCL was certainly an interesting language.
Show HN: JAMstack Low-code with 1-click AWS deploy
Strongly seconded. Beyond the language aspects, the scylladb projects are full of instructive architectural ideas and design choices.
Are you talking about this article? As far as I can see, the release manual linked in this article details "major" changes that users should watch out for: https://nixos.org/manual/nixos/stable/release-notes.html#sec...
Shh, you're going to ruin everything.
Fzf Powered Git Fixups
Yep this is how I implemented it on Good Annotations. I used PDFjs to render the PDF as an image data string. I'll checkout socket.io but my understanding of socket.io is that it is websocket technology so i'm not totally sure what you mean.

Something i do want to figure out is server side rendering the PDF vs the client, because I beleive there is a lot of data lost using PDFjs i.e. signatures
Huh? It looks great to me? There are plenty of modern breads denser than this. What exactly are you expecting here?
I have a quirk in my brain that I can't remember strings of numbers if I try to, but if I read it once I'll recall it just fine.

It's like my brain realises I am intending to go back and read the string 2 numbers at a time, over and over again, so it doesn't bother remembering. But if I just read it out once and don't think about it until I need to recall it, my brain has the information available for me.
For me personally, the internet has made my brain better at remembering associations between ideas, but worse at free-recall of factual information. It's like my mind got better at indexing at the expense of storage.
This is excellent and a great option for responsible users!

We should not get distracted from the reality however that to really move the needle we need universal carbon pricing.
The issue with KDE was that Qt was nonfree so there was also a few efforts to replace Qt with something else.
Blazor WebAssembly Full Stack Bootcamp
The Controller, both in power consumption and size requires for those USB 3 Speed never quite fit into iPhone requirement. ( You can check out the size of USB 3 Speed lightning controller on that iPad, if my memory serves me correct it was 4x the size of similar controller for iPhone ) In 2020 this may no longer be the case, but then there is the BOM cost issue. Why pay more for this feature when you can do it wirelessly? WiFi 6, and in the future 802.11ay using mmWave provide 1Gbps to 10Gbps real world wireless transfer speed.
A 2g or 3g module is <$100 and easy enough to hide without RF detection equipment. Plain radio is easier.

If the NSA has enough of an interest to be intercepting your packages, they're not going to shy away at adding in a transmitter or two of their own preference.
Grid batteries have slightly different requirements compared to EV batteries. Weight/volume doesn't matter. Charge speed isn't a priority. Discharge speed isn't awfully important either. Round trip efficiency and cycle life are even more important. Temperature ranges aren't as wide.

Overall, I think these differences will lead to separate production facilities and differing designs.
You take it into to far wide a scope. It is something that is, for the most part a modern notion in the context of taking from somebodies culture and presenting it either as yours to show your cultural superiority, and obfuscating in some cases the origin.
Basically it’s the same as if copied your shiny new app you worked on and declaring I made it, or invented it. I am appropriating your work as mine.
Being interrupted (and especially by the type of interruptions on a bus, like what's the worse interruption? getting asked to move?) or working in bursts is not the same as doing 2 minutes of work then stopping.

The reason I'm nitpicking this example is because I've found it helps substantially to know that even if I only do 2 minutes of the thing, I'm making progress. Otherwise it's very hard to trick my brain into doing the thing. I don't like the "wear running shoes" example either. I have found that when I plan habits like that I maybe do them once or twice, then never again. There is no reward for me without the progress and in the case of the coding example would only bring me frustration.
Kudos to Stripe and the team behind for this proposal. Unfortunately, it's only available for US companies. Hope they will expand it soon.
> only to eventually discover that there's only one class that implements that interface

I mean, in this case it's literally:

* right click on "someInjectedService"

* select "Go To Implementations"

and you'll be there.

Generally I do relate to the complaint though. DI makes your project feel like a "system" as opposed to a "program" (not that this is a bad thing or unnecessary).
Why would that ever happen? Anyway you can boot a Windows VM off of zfs already.
I prefer the first example. It’s more straightforward and avoids accidentally creating dependencies (for example some other code calling pluck_definition) that will be make it harder to modify when you need to add features or the API changes.

Testing pluck_definition by itself is completely pointless since it does nothing on its own. This is the “test public interfaces, not private implementation” principle.

Similarly build_url and pluck_definition need to be coupled because they both depend on the specifics of a third party API. It makes it much more clear what the expected output is to keep them together so that if something breaks you know which url to check and what the response should look like.

I also dispute that it’s hard to unit test the first function—-you would simply mock the api response and then you have a great test. Much better than having separate tests for tiny helper functions that do nothing on their own.

Now maybe this example is just too simple and the presented architecture makes more sense on larger code but if so then the article is poorly written. Examples need to be realistic enough not to obfuscate.
For anyone not familiar with Philip Greenspun (he of Greenspun's Tenth Law fame) this is a good example of this writing and humor:

> e.g.,
(set! ten-factorial (factorial 10))
(set! checking-account-balance (+ 25 34 86))
(print "If you're so smart, why aren't you rich like Bill Gates?")
will set ten-factorial to the result of evaluating the factorial procedure with an argument of 10, then compute a graduate student's checking account balance, then print out some career advice to a computer science graduate student.
Yes, they can – you can make a lab environment within the normal range for human fetal development, therefore causing the brains to develop consciousness in the same way, for the same reasons. Therefore, there exists at least one scenario in which this can occur.

There's not much difference between the way that brain tissue develops in fetal development and in current lab environments.
I recommend Abseil. They have a good style that uses some modern C++ features but not the kitchen sink. Example you could start right here:

https://github.com/abseil/abseil-cpp/blob/master/absl/string...

LevelDB is good reading, too.
In all likelihood, Amazon was also bidding on the rights to the show. This article reads to me like a cheap shot from Amazon because Apple won a licensing bid. Maybe "loss" is the wrong word, but there are certainly more complicated intentions behind the article. Why was it written? Does WaPo really care about Charlie Brown, and does its new location in broadcast media really make a difference in the theme of "Democracy Dies in Darkness?" If Amazon picked up sole rights to Charlie Brown, would this article have been written? Or did Amazon pass on Charlie Brown because they felt it should appear on broadcast TV, where it "belongs", where its always been?

In reality, Charlie Brown Halloween is just on a different channel now, paid via different mechanism, but WaPo is saying it "won't air", as if its getting locked in the vault.
Ask HN: Should I learn C/C++ or Rust as my first systems programming language?
I work as a data scientist in telecommunications. Mainly, I used python and matlab, but I want to extend my programming range to include a compiled, systems language because lots of digital signal processing is written on embedded devices.

To me, it seems Rust is so much better than C/C++ in many ways: lots of Python-like abstractions, rigid compile time safety checks... A modern language designed from scratch without a hodge podge of welded on features.

Rust could also turn into something big, by the looks of it, in the next 10 years.

So I have two questions: how much does it make sense for me, in my circumstance, to learn Rust as my first systems language, and the second question is how much, in general ignoring my circumstances, does it make sense to learn Rust first?