skysight-inc/HackerNews huggingface dataset:
Which source code snippet do you admire the most?
I’m trying to crowd source a compilation of the most admired pieces of programming. I’m looking for snippets (or single files), not complete systems (e.g. Linux).
It's a great piece and as you say it's a shame that we won't see more detailed info from Apple but I've seen a couple of interesting comments (leaks?) from Apple employees with more details (e.g. the tweets embedded in the article below). I suspect that we'll know an awful lot about the M1 by the time we've finished!

https://blog.metaobject.com/2020/11/m1-memory-and-performanc...
Most servers, definitely not.

Consider that large chunks of Google, Twitter, Amazon, Alibaba etc run on Java.
> does not necessarily mean you're actually writing out 20GB to the disk.

You mean like preallocation? I think Virtualbox now does that. In the past it didn't though, it just kept writing a bunch of zeroes to the drive until it reached 20GB.
I'm still on the SSD I bought 6 or 7 years ago as my OS drive.

Haven't noticed a single issue on it.
Road damage goes up with the 4th power of axle weight, so trucks do far, far more damage than anything else.
You mean weight/drag related? That's tough to guess i.e. if you take something with roughly the same features and internal volume as an SUV it could be lighter (not necessarily), it's wheelbase is normally lower which helps but on the other hand some of them don't look very aerodynamic for the rest. Should be possible to make them as safe I guess.
I feel like there's exceptions to rule everywhere but I feel the general tendency is much like the US. The established Israeli lobby is more entrenched into the respective Conservative parties which leads opposing interests towards the alternative party.

Thus is the curse of the FPTP system.
> hauling a trailer, my family and our dogs

vs. how often are you driving alone in that monster truck?
Very cool, seems much higher quality than the RMI library. I’m hoping more of these learned data structures make their way into libraries.
connection refused
Safari is nowhere near IE6, but it's the closest when you compare it to all other modern browsers. We could say it's new IE11. Just this month I came across the following Safari-only bugs/compat issues:

- document.hidden can be initially true even if the user is in foreground tab

- visibilitychange event was not bubbling to window until Safari 14

- ReferenceError when you have a const + hoisted function inside a block scope

Using anything newer than 2010 APIs, I always first check caniuse and MDN to see an inevitable list of Safari bugs and missing compat (and contribute myself when I find new ones).
This is absurd. I pay sometimes almost half more in drug stores because I refuse to give my CPF number "to get a discount".
But it's still easier than it has ever been to create their own website. There are video tutorials with step by step instructions. People just don't want to. Which is okay, people are free to allocate their time to different interests.
My experience as a pro artist is that it takes about five years of directed practice to go from “I like to draw” to “I draw well enough to make a living at it”, followed by another 5-10y to get to “I just sort of move my hand and Art happens without much thought because I have internalized a ton of stuff that I used to have to do on paper”.

YMMV.
The link to [1] appears to be a subset of a larger document/program from University of Chicago (but this appears to be source from OSU). Do you have a link to all the book/materials? Thanks
The author is honest enough to admit their "superficial" reasons for using the CALF plugin suite, but unfortunately then claims that they also "sound really good".

People should be aware that we (the developers of Ardour) STRONGLY recommend against the use of the CALF plugin suite. Not only do numerous of these plugins have basic DSP mistakes in them, but they are also one of the most regular source of crashes for Ardour users.

There are better alternatives for every single plugin the CALF suite, and we encourage you to use try them, even if they don't look quite so "pretty".
I wonder why people aren’t excited about hybrids, they seem like a genuine next step of automotive engineering to me. Petrolheads of all people hate it the most, and that feels wrong. If you think twin turbo is superior to single, then THS II should be vastly more so.

I personally blame it to Toyota’s horrible packaging. The thorough objective horrendousness of Prius is inexcusable, especially the latest ones. But that shouldn’t decide on the technology!
kinda splitting hairs, but these words do have specific meanings. psychedelics and dissociatives of hallucinogens, a broader category of drugs. you definitely see weird stuff if you take enough ketamine, but the hallucinations have a very different character.

subjectively, I find psychedelics to have more of an "organic" feel and dissociatives to have a more "synthetic" feel, although I imagine others might describe it differently.
I would suggest that some in the field are developers while others are engineers. The former write some code that does what they tested it for, the latter designed code to account for every detail. The former thinks it does the job the latter knows. The former rushes through while the latter codes in ways that avoids redundant busy work to allow for the higher up front investment. The former slows over time as they slog through the "ball of mud" they call inevitable while the latter increasingly gains and shares insight on the deeper problems being solved and the opportunities afoot.

TL;DR: I think the extent to which we are engineers is a choice we individually make.
Let's not forget vehicle manufacturers have been whipsawed over the last decade, first instructed and legislated over to focus on clean diesel over short timeframes, requiring massive investment. Then scientific opinions changed and the massive subsidies and legislative pressure switched to electric vehicles, with diesel being effectively outlawed in passenger vehicles

2016 example https://www.jaguarlandrover.com/2016/cleaner-safer-smarter-m...
Very well said, there are times we lose the bigger picture of our lives and instead start wasting times with pointless stuff just to escape the reality of our lives.
Steam Code Generator 2020 – Easy Way to Get Free
> I think having a backup solution is the better choice here

Any particular provider you would recommend? I've looked into backblaze but it seems a bit pricey. Also: I am aware that cloud based backup solutions have very little failure rate in terms of drives since they're probably using RAID
I guess the key reason why software developers are not engineers is that there is no barrier to entry. If a necessary requirement to build a bridge is to hire a certified Civil Engineer who has undergone the necessary ethics and reliability training, then you have no choice but to pay up for that certification cost. You can't outsource that work to Eastern EU or Asia or hire another one willing to "hack" the bridge to deliver it on your tight timeline.

On the other hand, if someone takes software reliability seriously, either they are going to burn themselves out to meet the crazy deadlines or are going to "not deliver on time", in which case they will be replaced by someone who can "get shit done" cheaper and faster.
I don't remember ever seeing Facebook ads like that. Is any of that documented?
I started with loading the save files using an existing JS library. And then, with the help from past modders who decompiled the original Flash version, I was able to port the physics into JS. I had a lot of reference save files to verify if I did it properly.
BMW to Implement Turn Signals in All Vehicles by 2022
From the list, I would suggest to learn C, because a lot of stuff is written in it or at least uses its ABI. So understanding that will give you a lot of leverage.

Besides that, a deep dive into operating systems (yes, that means to get rid of MacOS if you use it) will give you a solid foundation to understand networking, containers and even more.
It depends on the subject more that on the device IMO.

I would not take a picture of a A4/paper document in landscape just because I use an iPad or a dslr.
If your speciality is frontend JS engineering, why are deployment, platforms, and networking (unless you simply mean how to use fetch/XMLHttpRequest) large holes? I'd even question graphics APIs beyond very basic knowledge, because in my experience I've never needed to know anything about those beyond the basics. These things sound more like full stack, rather than frontend.
This article on writing well seems to be missing basic paragraph structures, which is probably why some find it hard to read.
Is GoPro Going to Survive?
>As its basis, our reconstruction uses contemporary recordings of the Howitzer, Mauser, Stokes, Vickers and Lee Enfield guns

What an excellent article on data recovery, I found it refreshing to consider the technique of transcription .. as a musician and artist, though, I feel there could be a way to synthesize things, i.e. modelling the geometry, instead of using samples.

Anyone got Metasynth? Maybe there's an extra depth to the paper scan ..

https://uisoftware.com/metasynth/
Yes it's released: https://www.linerider.com/

I'm just working on maintenance and adding new features
Are these all purchased via the regular checkout userflows?

What other methods can be used to deter this?

A captcha or three?

Instead of purchasing an item they purchase a place in a pool, they pick randomly from the pool and refund the rest?

Verify individuals ahead of time?

Some kind of virtual queue?

There's gotta be a better way to deter or stop this.
Author of the post here. I would say that technically Kythe is the open-source version of part of Google's internal code search (specifically, the component that provides precise code navigation), but it doesn't include the search index or the UI. So it's not on its own an end-user product.

That having been said, I love Kythe, and we've actually considered using it as a semantic backend for Sourcegraph (and still might in the future). For the time, we're using indexers that emit LSIF (https://lsif.dev). This allows us to build on top of the substantial body of work provided by the many open-source language servers (https://microsoft.github.io/language-server-protocol). But Kythe has a far richer schema that can capture all sorts of useful relationships in code. It's awesome and I wish more people were building indexers for it.
And this is one of the reasons I'm wary of all these IoT linkings. We see it in cars, vacuum cleaners, fridges, doorbells and thermostats. Some folks see it as a way to market new items and increase functionality, I see it as a vector of malware and the opportunity to hold items hostage until a fee (subscription or update fee) is paid.
Somehow one guy was really sure it will never happen:

https://www.mail-archive.com/internals@lists.php.net/msg4804...
Thanks for that! The only error I see in their implementation is that we can't use variables for the name like:

$name = 'foo';
myFunction($name: 'bar');

Thankfully, we can still pass an array with the spread operator like:

$name = 'foo';
$array = [$name => 'bar'];
myFunction(...$array);

I wonder if this would work:

$name = 'foo';
myFunction(...[$name => 'bar']);

Thankfully it's rather unlikely that someone would use a variable for the name anyway.

Where this will bite people is when they do meta programming with functions that process functions and function signatures.

Maybe I'm missing something, but I find this to be another tragically missed opportunity. It's just unnecessary friction where there didn't need to be any, which makes me sad. At least they can add variable name support someday, because it's easier to allow something restricted than restrict something that used to work. Hopefully there is a "good reason" for this oversight.
Football players, to most of the world anyway ;^)
I'm not sure where you're coming from, but it's evident you haven't done JS development with nodejs, so let me give you the full picture here. nodejs is not a framework like Django or Spring. nodejs is a runtime for JS, just like Firefox and Chrome could be considered a runtime for JS (kind of, simplifying for you here). In fact, Chrome runs JS via V8, which is what nodejs is using too!

It's more correct to say "If you want to learn Python, you need to install a Python runtime", which for me makes a lot of sense. Of course I need somewhere to run Python if I want to learn Python. Same with JS, you need some sort of runtime, either the browser or something like nodejs. Many people go the nodejs route, as you'll end up probably needing or wanting tools from the nodejs ecosystem anyways, but some of us got started way before nodejs was even a thing, and some still do, nothing wrong with that.

> A simple browser extension doesn't need Node. It just doesn't. The browser itself already packs everything the extension needs.

Yeah, this is absolutely true today, for both Firefox and Chrome. In fact, the browser extensions we develop don't even have access to anything nodejs! This tool (web-ext) is simply a tool for making the developer experience better. You're in no way required to use it. You can simply create your files and manually zip things up, sign it and publish. Although it gets a bit easier with web-ext.
I collaborated on that Piano Guys project! I attached the instruments onto the riders
WordPress and PHP 8 compatibility report
On the wrong-headed advice of Strunk & White
http://www.languagesoftheworld.info/bad-linguistics/on-passi...

Strunk and White: fifty years of stupid grammar advice
http://chronicle.com/article/50-Years-of-Stupid-Grammar/2549...

The Land of the Free and the Elements of Style: everything in strunk and White is wrong
http://ling.ed.ac.uk/~gpullum/LandOfTheFree.pdf
When ssds fail they don’t lose your data, they just become unwritable. What you’re doing is unnecessary and wasteful.
France will begin labeling electronics with repairability ratings in January
The majority of people in the US live in a place with only one useful broadband option, which is usually the cable provider along with DSL which I do not consider broadband.

If you recall the drama of Google Fiber and other relatively recent attempts to rollout fiber, the existing companies have often gotten local and state laws passed making it extremely difficult to add competitive services at a more reasonable cost.
Happens so often. Every parent probably understands on some level that there's body»mind feedback happening. Oh they're cranky? Did they eat enough? Need to drink water? Not sleep well?

Personally I find myself in a bad mood if I ate something too spicy the previous night.
> I am a civil engineer and there's a standard of ethics and personal responsibility among engineers that is very, very high.

And that is because no one can just go to a 6-month bootcamp and call themselves a Civil engineer. And even if they did, no one would hire them or the employer would go to jail.

If we want Software Engineering to be as rigorous as other Engineering disciplines, we need to erect similar barriers to become a Software Engineer.
And uploaded to a cloud analytics platform so your insurance provider can better do risk modeling.
That is absolutely nothing in terms of the write endurance for modern drives
Actually the user you're replying to is not the author of the service, from what I can tell.
If you have issues bending your knees to sit up, perhaps you should not be driving an object that weights a couple of tonnes and can kill people due to your reduced reflexes.
To be contrarian, I'm a 3-5 finger typist on a good day, but I'm fast at it. Fast enough that when I used to teach LaTeX classes to math department secretaries back in the late 80s, they would be impressed with my typing speed. So, while I don't type properly, I type fluently. I suspect that most programmers type at some level of fluency, even if they don't employ proper technique. Failure to do things like participate in online discussions, etc. are not a result of bad typing, but of the programmer's personality.
I sometimes wonder if this argument is an example of the "no true Scotsman" logical fallacy. No matter how little regulation is imposed on a market someone will still find some example to point to and say "if only we weren't subject to such awful regulation the market would be free and everything would work perfectly".
You say you respect her decision, but then in the same breadth go on to say you think it wasn't her decision at all. You've written much in this thread to strangers on the internet about how you believe it was a wrong decision. You have a peculiar way of respecting others' opinions.
That video is quite poor in my opinion. He comes so close to a bunch of very interesting questions like how can state management and effect management be done in a good, scalable way that maybe isn't tied to our view libraries? He then admits he has close to no opinion on the matter and suggests web components which is about a step above the jQuery scenario he described in the beginning.

The way I see it the advent of React was basically a rejection of the imperative MVC model that was prevalent with the likes of Backbone in favor of a more functional one. The first prototype of React was written in Standard ML. The evolution over the years with flux, redux and hooks was basically answering the questions that were arguably solved in MVC already but coming from the angle of declarative, immutable approaches. Where does state live? How do I handle asynchronous effects? How do I abstract that behavior from my views?

I don't think the community has answered those questions definitively yet and a lot of the interest seems to be in refining the view mechanics with the likes of Svelte rather than really getting to grips with how to best handle long lived application state and the effects that operate on it.

One thing I could see being the case in a couple of years, and in some ways the video does reach this conclusion, is that the reactive, stateful layer will be abstracted from the view and how you render your data will be almost like choosing a templating engine on the server. It could be React, Vue, Svele, Marko, Web Components, whatever. Those libraries and components will handle your dropdowns opening and closing and your tooltips showing but your real application state that distinguishes your product from another will live somewhere else and will be less subject to churn.
I suppose _modern_ storage is fast, but how many servers are running on storage this modern? None of mine are and my work dev machine is still rocking a SATA 2.5" SSD.

We're probably still a few years off from being able to switch to this fast I/O yet. With the new game consoles switching over to PCIe SSDs I expect the price of NVMe drives to drop over the next few years until they're cheap enough that the majority of computers are running NVMe drives.

Even with SATA drives like mine though, there's really not that much performance loss from doing IO operations. I've run my OS with 8GiB of SSD swap in active use during debugging and while the stutters are annoying and distracting, the computer didn't grind to a halt like it would with spinning rust. Storage speed has increased massively in the last five years, for the love of god fellow developers, please make use of it when you can!

That said, deferring IO until you're done still makes sense for some consumer applications because cheap laptops are still being sold with hard drives and those devices are probably the minimum requirement you'll be serving.
> “Contra-causal” or “libertarian” free
will is a fantasy. But what follows from that? Nothing whatever about
moral responsibility or the justification of punishment, for instance.

I think Coyne, Harris, et al would contest this. If someone cuts me off in traffic my first instinct is to get angry at them, to blame them and wish ill of them. But if we "rewind the tape" and it happens again and again then it's hard to rationalize my negative response. What follows is a more compassionate stance. That's pretty significant.

I think Dennett misses Harris' larger project which is to better understand ourselves and others. His meditation project, Waking Up, speaks to the very same concerns Dennett articulates in this article regarding sources of distraction like social media.
Revisiting Bookmarklets
I agree, and I have no need for it personally, but I think they'll leaving a lot of money on the table by excluding consumers who do want it.
Ignoring for one second the specifics of <img> in relation to SGML's `O` option (which was rectified in XML), this doesn't really need to have been the case. HTML could easily have said "if you encounter an unknown tag, render its contents as PCDATA" and sites would have degraded at least as gracefully as they do today. (If less gracefully than they did in 2000.)

(Heck, it could've been a generic SGML feature! "Unknown elements' contents are CDATA, unless they have this attribute in which case they're PCDATA, or this attribute in which case they're ignored" as a rule the DTD...)
Reducing the speed limit saves lives and reduces overall traffic as people switch to alternative modes of transport.

Do you object to seatbelt laws under the premise of "Freedom"? What about car safety standards? Isn't it more "Free" if we can make whatever car I want and sell it to whomever wants to buy it, even if it kills millions every year?

The truth is that we need to look at improving society holistically, which means implementing and designing society in a way that benefits humankind over the long term. Civilization isn't very "Free" but it's a trade off we make to live in a fair and progressive society, and allows us to combat things like covid, natural disasters, growing populations and other challenges that face the human race.
Doom's Fast Inverse Square:

https://medium.com/hard-mode/the-legendary-fast-inverse-squa...

Though a close second for me would be Mersenne Twister

https://en.wikipedia.org/wiki/Mersenne_Twister
Why did you switch to Python? Surely it wasn't as perfomant and you already had a working solution.
>Generally in any location in the US (with exceptions like in SF, Seattle, Oakland, etc. where you are lucky enough to live in a MDU with multiple fiber providers or a municipal broadband area),

I've never seen a residence in the US with multiple fiber ISP options. And when purchasing a house in the past year, I noticed fiber was available if the entire subdivision was newly built in the past 5, maybe 10 years, otherwise fiber is unavailable. So the telecom companies are laying fiber, but only if the entire area is new and they're laying new everything. If you build a new house in an area with existing homes, you won't get new fiber. And I didn't find any pre-2010 houses with fiber period.
Soda Constructor! It's another one of those niche physics things I want to remake and expand upon