skysight-inc/HackerNews huggingface dataset:
Endless DE-Ssert
Smart devices are marketed as Stephen Hawking smart when in reality they are more of a Machiavellian smart. A conniving smart.
I really think Apple got it wrong with the iPad. They thought that iPads would replace computers for most people, but 10 years later it's clear that Apple's strict control over the iPad will never allow it to be as capable as a laptop.

But the biggest mistake Apple made over the last ten years is that they have been holding the Mac back to differentiate it from the iPad.

I would love to have always on 4G in my Macbook. I would love to have a touch screen and pen input on my Mac. I don't want to buy an iPad so I can draw on PDFs, I just want to do that on my Mac.

Microsoft hit it out of the park with their Surface line. I think they made the right call, by understanding that people don't want app consoles. People want the power of a desktop, with all the great new tech from mobile devices, like touch screens and 4G.

The Surface Studio is what the iMac should have been. It's weird to have graphic designers, once Apple's core audience, lusting after a Microsoft computer. Apple's reluctance to add touch screens to the Mac is really holding them back. Once you've used a surface device with a pen, you really start wondering why you can't draw on the screen of your Macbook.

My guess is that Apple realized their mistake about a year ago, and they've started on getting iPhone/iPad tech back in to the Mac. They started with the processor, and the next step is adding touch displays and 4G / 5G to the Mac. Big Sur is obviously already optimized for touch, and I'm excited to see what the Mac will become if Apple allows it to compete with the iPad.
> that have to think about whether or not a file is ready, they naturally become an event-loop that constantly add things to a shared buffer, deals with the previous entries that completed, rinse, repeat.

This is the exception, not the rule, and it bugs me when APIs default to this. Most consumers of data are not looking at the stream of data, and in many cases where streaming is what I want, there are tools and APIs for handling that outside of my application logic. Much of the time I’m dealing with units of data only after the entire unit has arrived. Because if the message is not complete there is no forward progress to be made.

My tools should reflect that reality, not what’s quickest for the API writers to create.

In fact, if I remember my queuing theory properly, responsiveness is improved if the system prioritizes IO operations that can be finished (eg, EOS, EOF) over processing buffers for one that is still in the middle, which can’t happen with an event stream abstraction.
Show HN: Audiblogs 1.0– Send any web article to your podcast player (in audio)
There is a substantial difference in that the app store is a middleman with the potential to control code between the user and the developer (intentionally explicitly ignoring the rare edge case of self-developed software).

On the web, the user can use any app in the world, but the app store limits the user to a specific pre-approved list of apps - there are both advantages and disadvantages to each approach, but that difference is meaningful.
How Canada lost its vaccine production capacity
But you already have a security vulnerability regardless, if you dereference p before checking if it's null.
Looks more like a landing page to a "to be" GitHub project with no source code, and a form to sign up for alpha access
This pretty much summarizes the academic mentality: Everything must be neat, tidy, and follow a well-defined formal process, preferably one defined by a committee that uses a lot of big words and stands above mere mortals.

The reason the web has become such a big deal is exactly that its development is not constrained by such thinking.
Well obviously today's not gonna be the day.

But for those of us who did _not_ watch him in the 80s, those of us who didn't necessarily get a kick of him sticking it up the Brits, those of us who grew up in the 90s and 00s and watched him go from one drug-addled binge to the next and then seeing him grift on his career as a "manager"...

Well, there wasn't much glory for that. I understand the astounding emotional effect for those who saw him in the past, but for a lot of us watching from a different point in time there wasn't much that was positive.
Obviously. They’re free to sell what they want and I’m free to buy or not buy what I want. And complain about it on meaningless Internet forums.

But the fact remains that the difference in hardware is now negligible. A MacBook Air and iPad+Brydge are basically the same hardware in basically the same form factor. Except the iPad has more capabilities.

Is it entitled to not want to buy and travel with two different expensive things when one thing can obviously perform all tasks? You’re free to think that if you want. I’m not likely to change your mind.

Apple is stubborn. They will eventually cave. It’s just a matter of time. They should have flipped the switch 5 years ago. They’ll probably wait another 5 before making the correct decision.
If this cable provider isn’t advertising upload bandwidth, then it isn’t the same product as the fiber. If you intend to have security cameras/video calls, screen sharing simultaneously between multiple people in a house, I haven’t seen a cable connection be able to handle it.
But now you know it. I do all that stuff for all my personal projects, but it is much faster because I already have servers and I have done it a couple dozen times now. I'm getting to know proxypass and caching directives very well. My first time took hours and much futzing. Once it becomes routine, I automate. I wrote my own build server in JS and bash, it handles webhooks, roll-back on fail and notifications. I've been meaning to mess with ansible.

It has even come in handy at work. I'm primarily a front-ender, but a start up I worked for had me continuously deploy my application to my own personal infra so it could be used immediately.

It is an ordeal at first, but nginx is so darn powerful it makes me feel like a wizard. If you want to avoid the arcane incantations, I'm sure Caddy would be a simpler option.
There is about zero chance that the processor architecture transition is not many years in the making.
But if there's strong evidence that you acted with bias, then isn't that evidence of explicit bias? I'm not even sure what strong evidence of implicit bias would look like.
Football players, but yes.
> As a trivial case consider a language where `5 + ""` would fail typecheck. But why even get so far? Why does your parser accept `lit-term := lit '+' lit` and not `lit-term := [str '+' str] | [ num + num ]`, etc.

Because it's an unnecessary complication to duplicate a few corners of the typesystem as special cases of the parser?
> First, anchoring is very real and humans judge things in comparison to others, especially when compared to unclear things.

This isn't anchoring in the true sense, though. That's my point. It's like saying "my car costs £10000 and my house is £300 000 and my car goes everywhere so this house is a rip off". It's apples and oranges. People are being irrational about software purchases because MS etc. are cheap.

> It’s like those epi pens that went up in price right?

it isn't, because the price of the SaaS hasn't changed.

> Relative ROI is also important as we have to prioritize. GitHub seems a much better value to cost than this tool.

For something that costs tens of dollars per month for a company that employs software developers, there is zero debate about whether they can afford it. Provided ROI > cost, why on earth wouldn't you?

This just seems like irrational behaviour caused by the fact that software has near zero marginal costs and most people don't understand that.
They may not have used the film itself to generate a waveform from the squiggly lines on the film, but they can definitely use it as a guide in the reconstruction process. Think of it more along the lines of instructions from Ikea. Useful, but only to an extent that requires a lot of understanding the context and what's not written to actually make the thing.
One SSD is sufficient for almost all consumer systems. The only reason to want more than two SSDs is if you're re-using at least one old tiny SSD in a new machine. SATA ports will stick around in desktops only for the sake of hard drives. There may be a few niches left where using several SATA SSDs in a workstation still makes some kind of sense, and obviously not all server platforms have migrated to NVMe yet. But as far as influencing the direction and design of consumer systems, SATA SSDs have only slightly more relevance than optical disc drives.
Those facts (STD test result and banking history) are protected by laws and private agreements which restrict your counter-parties; my understanding is that if some third party somehow learns those facts, they can do basically whatever they want with them (aside from blackmail).
The point is that the gradient of discontent is no longer as harsh in the western direction, and that the OP theorizes that this is a reason for the decreasing share of the productivity growth focused in the West/US.

There is some empirical evidence for those theories. The US and the West in general have profited of disruptions they caused or partially helped, from scuttling research projects using political pressure and then hiring the researchers into the US up to arming rebellions and indeed military intervention.
Ask HN: Code first ORM vs. Database first ORM
Recently came across model generators like SQLBoiler which generates models based on the database schema. The approach is the exact opposite of code first ORMs which are more prevalent in the market. If anyone has used it, would you please share your experience and any advantages/disadvantages of it over the traditional method.
There are a series of hardware updates and software bottlenecks to work through before access becomes more common, the performance will bubble up from below starting with more widespread NVMe devices, then faster NVMe over fabrics hardware will become more common, and drivers, hypervisors, filesystems, and storage apps will likely have to rethink things to re-optimize. That means different times in terms of showing up in the cloud/on-prem/etc.
Reading this list made me really want to explain the basics of each of those items so as to clear up any misconceptions, or to confirm that, yes, he gets the gist of it.

When I try to learn about topics that I'm unfamiliar with, the hardest information to find is "Why is X important?" and "What is the most important thing to know about X?"

With those in hand, I'd be able to determine if a deep dive into the topic is useful for me or not.
But, within Europe, most of the driving is done under 50km/h and within the cities, where hybrids shine.

I agree that hybrids are a stupid solution, a full EV is way to go, but, for example, there are only two superchargers for Tesla in whole Berlin, which has almost 4 million population. The infrastructure has to be improved and the batteries needs to get larger or more efficient, because I find stopping every 2hrs to charge your car for 30 minutes stupid.

Hybrids are just a band-aid solution until we have proper (and cheap) EVs.
The Storyteller: Reflections on the Works of Nikolai Leskov [pdf]
> What constitutes "vastly more complicated"?

You're duplicating special cases of the typechecker into the parser, completely unnecessarily (since the typechecker will handle it) and for no gain (since this is an approximately non-existent occurrence).

Worse, by rejecting the program so early you're making it much harder to provide any sort of valuable feedback.
Well you have an eye for objectivity. Many people don't. And whenever there are two conflicting versions of a story it sows some doubt on both of them. We know this from politics already. So from a pure PR and game-theoretic standpoint I think they made the right (pro-active) move.
I am involved with the foundation that runs the D programming language so I've found my home.

Other than syntax obviously.

FFI: Can nim use a C++ class and vtables? D does it all the time, nearly every language proclaims to have the best C++ interop but only D seems to be actually able to do it. Templates, classes, structs, and more all work.

We also have Mir, which I haven't benchmarked for a while but was faster than OpenBLAS and Eugene a few years ago and was recently shown to be faster than numpy (the c bits) on the forum.
She has 12.5k Twitter followers which kickstarted her newsletter and subsequently led to this paid community.
Hey, guys! The developer here.

I realized I end up not reading a lot of interesting articles because I am lazy. So I just tried converting them into podcasts and have been really liking it.

I am posting to get some feedback on the very 1st version that just got approved on Chrome Web Store. Please expect it to be janky, but I will address any issues asap.
I can tell you as a matter of fact that many immigrants, even outside of Western Europe, no longer see as much of an incentive to emigrate, and when they do the US is no longer the undisputed #1 place to go. I would imagine this is certainly even more the case in China and India, where development is even faster, and you can even notice immigrants leaving the US.
Does Swoole have any comparison to roadrunner (https://roadrunner.dev/)?
Cool! I had a similar empirical experience working on a Cauchy Reed-Solomon encoder awhile back, which is essentially measuring xor speed, but I just couldn't get it past 6 GiB/s per core either, until I guessed I was hitting memory bandwidth limits. Only a few weeks ago I stumbled on the actual formula to work it out!
Couldn't agree more! What a waste of talent.
Previous discussion: https://news.ycombinator.com/item?id=22974728
I think that people vary greatly in terms of their "set point" for how much they believe people in general are benevolent. HN is filled with skeptics and critics; our set point is pretty low. Most of the rest of the world considers that to be an unreasonable downer: if you go into a typical party saying "The AMA is a tax-exempt hedge fund and licensing corporation", best case you'll get smiles and nods and worst case you won't be invited back.

I don't know your sister, and you can judge a lot better than I whether her beliefs in the benevolence of her profession are "reasonable". I'm saying that it's pretty common for people to hold a positive emotional view of their work in particular and the world in general, because, well, positive emotions feel more positive.
Empathy and compassion. If you're close enough to their circumstances that you can feel their situation, you're more likely to be willing to help (literally, to feel like helping).
Python, Kotlin and C# all support named arguments, and they're pretty popular languages. And also... there's Visual Basic.
I wrote a free book for kids learning JavaScript
And that, kids, is what makes OSS terrible for many people
Yep. If you are sweating a microsecond, 100 nanoseconds is significant chunk of your budget. For this and possibly other reasons, a many-core CPU isn't always a great choice for hosted storage. If your goal is to export NVMe blocks over a network interface, you might be better off with an easier-to-program 4- or 8-core CPU. I don't like seeing 128 cores and a bunch of NVMe devices in the same box because it just causes trouble.
> Chinese cities are ghost towns. Not in the sense of real estate boondoggles – vast complexes built prematurely, lying empty, and crumbling – though there are some of those. Instead, the country’s urban centres are built on an obliterated past, which only sometimes seeps into the present through strange-sounding names for streets, parks, and subway stops.

In Beijing, like scores of cities across the country, streets are very often named after their relationship to things that no longer exist, ghostly landmarks, such as city gates, temples, memorial arches, and forgotten historical events. In the capital, for example, the Foreign Ministry is located on Chaoyangmenwai, or the Street Outside the Chaoyang Gate. Just a few hundred metres west, the street changes name to Chaoyangmennei, or the Street Inside the Chaoyang Gate. In between is the Second Ring Road. The streets’ names only make sense if you realise that the ring road was built on the site of the city walls, which had a passageway right there, Chaoyangmen, the Chaoyang Gate. The wall has become a highway and the gate an interchange. Nothing beyond the street names exists in the neighbourhood to remind you of either spectral structure.[..]

I found the above paragraph evocative..touching almost. you can almost imagine a china 500-1000 years from now...still bearing the names of the streets and only stories to tell you what it used to be..

in a way, isnt that true for all cities? but how far can we go back? i am trying to overlay this upon ancient civilisations. India is just as old. streets are new..never mind new names..even the streets are modern. they are named after modern politicians and oddly enough, some of the british colonisers.

but temples exist in india because religion exists. names weave time and even secularisation doesnt erase that. the islamic invasions got us muslim and moghal names and missionaries changed names too..and that too is part of history. unlike china where the cultural revolution froze slices of time before mao. today, villages and townships in india that are more rural still bear the names and stories of their past. i wonder how it is in iraq or egypt or in latin america. i have never thought of 'the other places' before.
Then a Chernobyl would only bankrupt households and not a bunch of countries. It would be like healthcare in the United States. Families would go bankrupt since their reactor faces problems :)
Putting together something hacky isn't really Apple's way of doing things. (They occasionally release overly complex, buggy things though)

As with the x86 Mac, Apple is relying on third party developers to take release full VM solutions.
I wasn't including the workstation market when I referred to what PC OEMs are doing.

Are you using 8 consumer SATA SSDs in your workstation? Is it for the sake of increased capacity, or for the sake of increased performance? Because it's pretty easy now to match the performance of an 8-drive SATA RAID-0 with a single NVMe drive, but 8TB consumer NVMe SSDs are still 50% more expensive than 8TB consumer SATA SSDs.

(Also, even 8 SATA ports is above average for consumer motherboards; it looks like about 17% of the retail desktop motherboard models currently on the market have at least 8 SATA ports.)
Can you be a citizen of a bad country and be a good person?
Interactive tool visualizes how the coronavirus spreads indoors
Sorry..
Would you be willing to expand a bit more on the hard problems and their relation to spatial computing?
This is a really poor article. Only in very rare circumstances can developers change the API's. API's are not "bad"; they are built to various important requirements. Only some of those requirements have to do with performance.

> “Well, it is fine to copy memory here and perform this expensive computation because it saves us one I/O operation, which is even more expensive”.

"I/O operation" in fact refers to the API call, not to the raw hardware operation. If the developer measured this and found it true, how can it be a misconception?
It may be caused by a "bad" I/O API, but so what? The API is what it is.

API's provide one requirement which is stability: keeping applications working. That is king. You can't throw out API's every two years due to hardware advancements.

> “If we split this into multiple files it will be slow because it will generate random I/O patterns. We need to optimize this for sequential access and read from a single file”

Though solid state storage doesn't have track-to-track seek times, the sequential-access-fast rule of thumb has not become false.

Random access may have to wastefully read larger blocks of the data than are actually requested by the application. The unused data gets cached, but if it's not going to be accessed any time soon, it means that something else got wastefully bumped out of the cache. Sequential access is likely to make use of an entire block.

Secondly, there is that API again. The underlying operating system may provide a read-ahead mechanism which reduces its own overheads, benefiting the application which structures its data for sequential access, even if there is no inherent hardware-level benefit.

If there is any latency at all between the application and the hardware, and if you can guess what the application is going to read next, that's an opportunity to improve performance. You can correctly guess what the application will read if you guess that it is doing a sequential read, and the application makes that come true.
Same here. One benefit of having multiple screens is that you can turn some of them off when you don't really need/want them. I have 1 in pivot mode for reading documentation, while the main monitor just in landscape for coding.
Align Yourself with the Nature
> How should one start learning with PHP these days?

there is learning PHP and its standard lib, learning how to avoid all the PHP pitfalls (because there are a lot of them when it comes to webdevelopment) then learning some mandatory framework because that's how you get an actual PHP job. These 3 things are separate tasks.

For the first frankly it's the documentation + stackoverflow, the second is https://phptherightway.com/ , the third is the documentation of whatever framework you are using. Final step is to learn how to use whatever server that will front your PHP app, Apache or Nginx.
eBPF is still a bit rough but it's already very cool what you can do already.

It would be nice to see it at a high-level at the syscall interface i.e. currently if I want to attach a probe I have to find the function myself or use a library but it would he nice to have it understand elf files.
I still can’t wrap my head around Kratos even though I’ve wanted to deploy it since it conceptually sounds great.

So do I build my own login screens? If not, do they come out of the box? If so then is it really api only? Where does it fit in with a single page app architecture?

Is there an example of where a real website has used it and I can see how they implemented it? All I see is either too conceptual in the screen cast, or haven’t seen any real websites.

Do I still have to build all the emails for forgot password etc.
My point is that Sequential Consistency isn’t a replication protocol, it’s a consistency model that you can have under various different replication protocols.
Okie-dok! We'll add this to our backlog to implement. Thanks so much for the input!
Additionally Laravel abuses patterns like singletons and in general static methods. This is really a no-no for modern PHP, in my opinion. I think Symfony had a way better impact on the ecosystem.
OP here, thanks for your comment!

I also don't see it as competition. People will join if they think it's valuable, they'll leave if they don't. You can also be part of multiple communities if you think it's worth it.

I'm glad you got some ideas from the post about making your community more sustainable. Wishing you the best with that!
Ex Googler here

I really liked this article. It makes great points about the order in which to try to improve things. I feel seen about trying to push a build system before having built social capital. Great to learn about other build systems. I am still having trouble explaining "what's wrong with just using Makefiles"... working on it.
> Making impossible things impossible seems off.

It's the entire purpose of a static type system.

All will fail to provide the necessary tools at one point, and many will fail almost immediately, but types are how you encode what is possible, and typechecking is thus what excludes the impossible.

> Akin to units checking.

And dimensional analysis is how you know you fucked up and your formula is nonsensical before you even apply it.