skysight-inc/HackerNews huggingface dataset:
That’s not like what was said above. They said that a strict parser would choke on unrecognized tags, thus making experimentation non-viable.

Sloppy programming is not about enabling new syntax at all. That simile is not useful.
Show HN: Kut – Run commands easily and rethink command organization
> What do you do that wears them out so fast?

I forgot to mention I do a lot of heavy writes to it. It is common to see me creating a huge 20GB virtual machine disk image, using it for a few hours, then deleting it, before creating a new one in its place. I'm a huge virtualization freak.
"As the OP is a Facebook employee working as a core React team member, not knowing all these things clearly hasn't been a huge blocker."

In a practical sense that should be fine, given the level of specialization that a company like Facebook can have given its size and scope. But I wonder if Dan would make it through the average Facebook engineer interview without his Redux cred however.

He is also the rare person who is very honest about this kind of thing which is refreshing. For example he claims he only vaguely understands time complexity ("nested loops are bad").

I don't know exactly what point I'm making here, besides there can be a disconnect between a developer interview process and what people actually contribute. I think engineers should strive to be solid at the fundamentals, but at the same time there are very productive people who just learn as they go. Also, it takes a village so to speak, and over-optimizing for Comp Sci majors who drill LeetCode may not be the best long term choice for building teams either.
You could also define success as enabling many, many people such as my parents who aren't proficient in English or computers and would never be able utilize the internet for communication if it weren't for the standardization offered by Facebook, WhatsApp, Facetime, iOS, etc.

Just like 99% of people want cars with an automatic transmission and take it to the mechanic for any issues, 99% of people just want a tool that gets out of their way and lets them achieve the goal. Whether it's driving to their destination or seeing photos or video calling their friends/family.

If you asked my parents, their goal never was to create anything on the internet, or browse niche websites and learn their layouts. They're not going to learn it in their advanced years, and perhaps they would rather spend their time on other interests they have such as gardening, cooking, etc.
On iOS I use https://apps.apple.com/us/app/hack-for-hacker-news-developer... The app has various setting for font sizes, padding, dark mode, even the color of the logo.
The markets seem to be very reactive to any news that suggests we're nearing the end of COVID restrictions. In this scenario, Zoom is seen as a likely 'loser'.
> The law of Moses in the Old Testament for the Jews was such that if you broke one law, you broke all, essentially making it impossible for anyone to achieve salvation by following the law or by working for it.

I know next to nothing about Christianity, but I know a few things about Judaism. And I've never encountered this idea in Judaism. Do you have a source for this? Is this actually a teaching of the Law of Moses, as you call it, or just something Christians think Jews believed?

Seems like a straw man.

> Enter New Testament: Jesus Christ of Nazareth, comes not to abolish the law, but to fulfil it, such that every man (being) receives the FREE gift of salvation, and eternal life.

Pardon my cynicism but this seems kind of ridiculous. God made a bunch of laws about how people should behave, presumably because there's right and wrong and the particular things God cares about matter, and then Jesus renegotiated the deal on behalf of everyone? So we can all do whatever we want, like rape, steal, homosexuality[0]... it's all cool. Jesus paid your debt, go sin.

[0] Intentionally grouping murder and gay sex together because the Old Testament calls these things bad behavior. If Jesus renegotiated the deal by arguing that some of these things are not really bad, so maybe some of the rules should be changed but others should be kept, I'd get that. But that's not the claim you're making.
Planeta SOS ÁGUA
As I said, I respected her decision. But I question whether it was the right one because it left her unable to communicate despite an obvious desire to do so. I’ve had conversations with people on high doses of opiates, and while they were far from their full mental capacity, they were intelligible. My dad tried to convince her husband to use conventional painkillers, which I supported, but he wouldn’t hear of it.
Thanks - I think I've built muscle memory for Gravitron now which is very unhelpful!
Isolating a core: isolcpus and taskset, or possibly cgroups, plus nohz and there's a patch set that offers even stronger isolation guarantees (keeping kernel threads off the core). Hardware mappings are done as a ring buffer in memory mapped to the device; a kernel module helps set up that mapping but once it's in place reads and writes to those virtual addresses go directly (well - via MMU and memory bus) to the hardware. The general term for this is user-space networking (although obviously you can do it with other hardware as well). Some addresses may be mapped to device registers that trigger hardware actions on read/write.

VM - the key is to get everything mapped in at the start and avoid page faults subsequently. madvise can help with this and obviously you need to avoid memory leaks that could result in sbrk - but in any case allocating at all in the trading thread is generally unnecessary (after startup) and frowned on. This does mean that the (lock-free) queue back to the shared core needs to recycle memory and both sides need to service it regularly or you need a strategy to deal with exhaustion. Scheduling isn't an issue - you have a single thread per core and (with isolcpus) the kernel scheduler knows to avoid placing other threads on it.
First of all I feel judged here - you don't know how much money and properties I own. I am earning my money outside Poland and I understand these car might be expensive for polish standards, but not in e.g. US. I try to avoid showing status, I wear normal clothes and avoid buying expensive stuff, but Porsche was my childhood dream - I love the design. Going back to the topic, I live in the flat as it's close to central, I don't want to live in the house.
I am just going to assume that this is a troll comment due to the sheer ignorance of the statement made.

But let’s assume it’s not. First of all, if someone with FrontPage can take your job away, you probably have bigger problems to solve involving the qualifications required for engineering. Second - you can’t compare surgery to website building. Putting together some CSS and HTML is nowhere near as complex as operating on a human being. Case in point - most of us were doing it since the MySpace days or earlier. I don’t know any 12 year olds who were doing surgeries at that time.

Lastly - what’s with this scarcity mentality? Just because someone has the skills and ability to do something does not preclude you from doing the same thing. Should we ban books and tutorials because god forbid it might teach others to do the jobs we do?
In terms of video editing.. its not about portability, its about ease of use. A friend of mine edits videos on her iPad for 2 reasons. The first is that there seem to be more easy to use video editing apps there than on Windows, and she found one she liked (by testing them on her phone). The second is that the video editing performance is actually really good compared to what you can get with the same money in a Windows laptop + editing software. So getting an iPad mostly for video editing was an easy decision for her.
There is no amount of context that makes a statement like "the racists are right about one thing: It's possible that some races really do have less intelligence than others" redeemable.
> I'm still not sure how you deploy a non-PHP webserver to be honest... every language seems to be doing something different

Coming from PHP and having used a bunch of different languages I can understand what you are saying.

Unlike PHP, the other languages run in a process that listens on a port (80, 443 or another). The single process continuously run and handles multiple requests.

Back then, I still had to use NGINX or Apache with PHP, and in retrospect I find that more difficult to understand than a script that listens on a port.
Here it is: https://www.linerider.com/?layers&track=https://www.dropbox....

It's a big track so might take a while to load. The ending animation doesn't work properly at the moment
Collapsing comments when the code changes is the correct thing to do 90% of the time in my experience, and for that other 10% you can manually mark is as unresolved. It's the correct default IMO.
The advertised bandwidth for RAM is not actually what you get per-core, which is what you care about in practice.

If you want to know the upper bound on your per-core RAM bandwidth:

64 bytes (the size of a cache line) * 10 slots (in a CPU core's LFB or line fill buffer) / 100ns (the typical cost of a cache miss) * 1000000 * 1000 (to convert ns to ms to seconds) = 6400000000 bytes per second = 5.96 GiB per second RAM bandwidth per core

There's no escaping that upper bound per core.

Nanosecond RAM latencies don't help much when you're capped by the line fill buffer and queuing delay kicks in spiking your cache miss latencies. You can only fetch 10 lines at a time per core and when you exceed your 5.96 GiB per second budget your access times increase.

If you compare with NVMe SSD throughput plus Direct I/O plus io_uring, around 32 GIB per second and divide that by 10 according to the difference in access latencies, then I think the author is about right on target. The point they are making is valid: it's the same order of magnitude.
I think there's some rose-tinted nostalgia going on with MySpace (which still exists). I remember being assaulted visually and aurally on so many pages that I stopped visiting them. I want there to be sites where people can let their html freak fly but it's not going to make the internet a much better place.
Lilypond is a marvel. I use it for transcription currently as it can easily generate tabs as well as regular notation.

Seeing others use linux for music production is inspiring. I'm currently in the stages of building a home music studio and I'm strongly considering giving linux a go instead of going with a mac mini. However it's really hard giving up Pro Tools...
In the Asian community there's talk about a bamboo ceiling here in the west for people of east and south east Asian descent.

Its the same everywhere minority will always have a ceiling or a stop on their ambitions. And off course there will always be exceptions everywhere.
I've looked into RAID. It seems a bit complicated to use. Is it trivial to create a RAID array in Linux with zero fuss and the whole thing 'just working' with very little knowledge of the filesystem itself other than it keeps your data 'safe' and redundancy baked in?
Perhaps iwillteachyoutoberich.com is what you’re thinking of? The author has an entire huge industry around this idea.
The cynic in me believes the controversy is manufactured (“war on drugs”) rather than based on logic and due only to the fact that corporations make money on prescriptions, but not on things you can grow or forage on your own.
What's the argument for that? If HTML was strictly parsed the first page with an image tag would have been broken in all other browsers.
> I would love to buy a tool that lets me generate the static html that squarespace does.

Some options are: Bootstrap Studio, CoffeeCup Site Designer and Blocksapp. They have shortcomings, but all of them allow to export a complete HTML site.
That's still nothing even if you do that 4x/day.

Also just because you create a 20GB virtual disk does not necessarily mean you're actually writing out 20GB to the disk.

Many SSDs and NVMEs are designed with total drive writes per day in their specs.

What is the wear method you're measuring by and what's the threshold where you're replacing your drives?
In some benchmarks the M1 is faster than any other laptop CPU you can buy (and even when it loses it’s usually close and runs at significantly lower wattage). In many single-threaded benchmarks (web/Javascript stuff for example) it’s faster than any x86 CPU you can buy.
The government receives revenue from gas taxes, and they spend money on EV incentives and renewable energy, so in a way the taxes do pay for reducing CO2 emissions.
I don't think you're a gatekeeper, I just don't see the relevance to the author.

He's a library designer and is working with a team maintaining and updating one of the most popular Javascript libraries in the world. He has a very deep background in that language which is one of the most important skills for his role.

I don't blame him for not knowing some of those things you listed more deeply. There's only so many hours a day to dig deep into a wide range of material. You still have to spend time going into other material that might be more relevant to the day to day including testing, managing people, communication with team members, planning, etc. Yeah sure I'd love to be more knowledgeable about CORS or networking, but I also want to be much stronger in Javascript, the JS library I'm working on, design patterns, deployment, etc.

Lastly, I'd rather be in Abramov's shoes where my work profoundly influenced web development than be all over the place with my 'expertise' and not actually be all that impactful with my time.
Thank you! I don't want to live in a single housing period. Atm EV isn't an option for people living in the flats without access to the public infrastructure. If I bought a house I would have to commute 5x longer distance every day.
I have written a similar blogpost on writing here [0], which was received well by HN community. I'd also recommend the book "Style: Toward Clarity and Grace" and this document [1]. These resources tremendously helped me to improve my writing.

[0] https://adamfaliq.wordpress.com/2020/10/28/write-well/

[1] https://cpb-us-w2.wpmucdn.com/u.osu.edu/dist/5/7046/files/20...
Facebook’s backups were written in PHP. Well, the second version was, anyway. (The first version didn’t work so well.) By backups, I mean the central MySQL databases with profile and post information; not media or messages. The “Crown Jewels,” so to speak.

It was written by an engineer in a week or so and then handed off to me. I was a storage guy with some programming chops. Fewer chops than I thought.

Multiprocess, forking, long-lived, server-side, I/O intensive PHP. And it worked brilliantly. Over the following years, it scaled from a backup set of a few hundred TB to many, many petabytes.

I extended the code quite a bit, fixed a bunch of bugs (it was version 0 when it launched, no hate to the guy who wrote it), and added statistics for reports and coverage.

The main reliability problem ended up being when we switched to HPHP, the predecessor to HipHop. Since the primary and largest customer of this code was the web front-end, changes there would often break our backend code. One I remember was changing fork() to only start a new green thread; saved $millions on the front end, completely broke backups. We ended up getting a special posix_fork() function or something from the HPHP team that restored the old behavior.

Eventually I rewrote it in Python 2.7. It took me two complete attempts and then a further six months of tweaking to get it anywhere near as stable as the PHP version, even with brilliant guys like Haiping Zhao constantly re-weaving the carpet under our feet. I never did like it as much as the PHP version.
So that's entirely different from what the article is talking about. Psychedelic treatments for terminal patients often involve a single large dose of psilocybin in a clinic, and that's the end of it. In the article, the first case study is like that, just one dose and three months later the patient still felt profoundly changed.
Oh, didn't know that - not looking to buy an electric car just yet so I didn't bother to gather all details. Thanks.
Like the concept. I would like to see

- github stars
- Email me option. Say once a week top 50 projects, sorted by points / github stars
Most software does. But, let's face it, it's not like C or C++ compilers should come with a manual saying "We strongly recommend using C for safety critical systems".

(MISRA-C and other odd dialects excepted)
Here is a Forbes article (do “normal” people read Forbes?) that says to run apps in Catalina one will need permission from Apple. It even anticipated this problem with the server. Sure, it doesn’t mention sockets but remember this is for normal people and I think people are smart enough to assume that Apple is probably not giving permission to launch an App by carrier pigeon.

There are 100s of articles like this. Gatekeeper was a keynote feature.

https://www.forbes.com/sites/ewanspence/2019/12/28/apple-mac...
Amazon: We're hiring software engineers who know programming language Rust
Testing Console Mode Spreadsheets
For Windows you just need a laptop that supports the pen protocol. https://docs.microsoft.com/en-us/windows-hardware/design/com...

For Apple you might need a Wacom tablet.
The problem is that fundamentally we always have types. We must define different types of bytes and the different things we can do with those bytes. If you can generate a binary from your programming language, it must use a form of static or inferred typing to know what assembly code to generate. A dynamic language just checks at runtime, and adds a bunch of overhead, which isn't always necessary, and is more likely to result in weird "defined" behavior like we get from javascript and php. Typescript is very popular because you can make certain guarantees at compile time, instead of a vague hand-wave of "the code looks good".

As an example of the benefits of type-checking, in the Vulkan api, there are a lot of handles. VkRenderPass, VkPipeline, VkSwapchain, VkDevice, etc. All of these are just pointers. If we take a function like:

void vkDestroyCommandPool(VkDevice,VkCommandPool,const VkAllocationCallbacks*);`

And remove the type checking:

void vkDestroyCommandPool(void*,void*,const void*);

It is the same API, but without type-checking. Even if the parameters are labelled, with this new API I could mess up and pass the wrong thing.
pretty big rumors, it was the push i needed to start evaluating options
Do you mean the 6s? I don’t think the iPhone 6 can run iOS 14. Which is unfortunate but the support that phone had was still far better than almost every Android phone.
In a lot of these systems (at least VMWare back when I used that, and Docker) you can clone an existing image with copy-on-write. This is a lot faster and would avoid 20GB of writes to spin up a new VM.
I agree that "objective observation" doesn’t mean much.

However there is no doubt people under destructive addiction are very well aware that their condition sucks. It doesn’t mean they can overcome the addiction and the urge of scoring.

I think the parent was related to behaviours such as "pot makes me more creative when playing music" or "cocaine makes me a better dancer" or "alcohol makes me funnier". All of which can be externally appreciated with a different opinion.
On the one hand, a new SSD a year sounds extreme.

On the other hand, how many years does each of us have left? Ten? twenty? Thirty? Forty? Few of us can easily imagine ourselves still alive and productive in forty years. So much of what we do rests on an implicit assumption that we are going to live for eternity, and starts to seem pointless when we consider how short our existence is.
I didn’t say there is nothing different here, only that the tangible differences are marginal to the exaggerated good experiences people are reporting. Apple has not revolutionized how lithium batteries work and the power savings by the M1 are less than 100% improvement, so the claims about battery life are clearly exaggerated and mostly common to all new laptop purchases. Apple makes decent products but they make even better marketing.
Gift for a trauma doctor: medical gloves, medical bracelet, medical alert watch.
It will highly vary depending on use case. I have been using the same SSD (Samsung 850 evo) since 2015. First used on my gaming desktop, then on my college laptop, now in my gaming desktop again. I just make sure to keep it at ~25% to ~50% capacity to give the controller an easy time and I try to stick to mostly read only workloads (gaming). SMART report from that drive: https://pastebin.com/raw/HyPE6aHm

For my disk for my exact use case: ~4 years of operation. 88% of lifespan remaining.

Your mileage will almost definitely vary.
Yeah, back in 2014, I worked at HP on storage drivers for linux, and we got 1 million IOPS (4k random reads) on a single controller, with SSDs, but we had to do some fairly hairy stuff. This was back when NVME was new and we were trying to do SCSI over PCIe. We set up multiple ring buffers for command submission and command completion, one each per CPU, and pinned threads to CPUs and were very careful to avoid locking (e.g. spinlocks, etc.). I think we also had to pin some userland processes to particular CPUs to avoid NUMA induced bottlenecks.

The thing is, up until this point, for the entire history of computers, storage was so relatively slow compared to memory and the CPU that drivers could be quite simple, chuck requests and completions into queues managed by simple locking, and the fraction of time that requests spent inside the driver would still be negligible compared to the time they spent waiting for the disks. If you could theoretically make your driver infinitely fast, this would only amount to maybe a 1% speedup. So there was no need to spend a lot of time thinking about how to make the driver super efficient. Until suddenly there was.
Yeah, Ireland is listed as more expensive on average than the UK or Canada, for example, but everything I've heard about the quality of internet services in Canada or the UK leads me to feel that at least outside more rural areas, we get a better quality of service here.

For example, I can go to Bell Canada, and spot they have the following prices (prices converted to USD from CAD):

* $23 for 10mbit/s with 100GB cap

* $40 for 50mbit/s

* $75 for 100mbit/s

* $90 for 1 gbit/s

Also I spot checked a couple of suburbs in quebec city (because everything I'd heard indicated the above was suspicious) to see what the internet availability was like, and the ones I checked all only offered DSL at:

* $55 for 5mbit/s with no cap

* $46 for 5mbit/s with 50GB cap

We're not talking the sticks or some frozen house up super far north here, we're talking suburbs of a decently sized city.

Compared to my own ISP, Virgin Media Ireland (prices are post 6 month-introductory prices converted from EUR to USD):

* $70 for 250mbit/s

* $85 for 500mbit/s

* $100 for 1gbit/s

They are available in most of the area of our cities and most medium sized towns also.

I also checked with eir, who are effectively the ISP of last resort for my parents home where you get DSL also, and they offer:

* $35 for 40mbit/s

My understanding is this is VDSL2, but not fibre to the cabinet at their particular exchange. The pricing tier is for 100mbit/s but eir are at least upfront with the fact you won't get this at their address.

This is a village of a few hundred people that's not along a major infrastructure route between cities or large towns. However, reliability and contention would likely be as bad as the Canadian option from when I lived there.

We're not the netherlands here or some of the other central European countries with gigabit for €20/month in Ireland, but I'd still take it over Canadian internet, while the chart implies it to be worse.
George Hotz: Triggering the Apple Neural Engine from C++ (Apple M1)
Sustainable read/write speeds are also different than peak on SSD vs RAM.