skysight-inc/HackerNews huggingface dataset:
Not really irrelevant when the said GC language also does value types, e.g.

// C#
Span<byte> buffer = stackalloc byte[1024];
I don't think they're even remotely right at all. There is no possible way to make a decent security system in a GUI that doesn't involve dialogs popping up in some way. That's the essence of what a GUI is, if you don't like dialogs then you should probably not be using a GUI at all. Just to be clear here, the alternative suggested to showing a dialog seems to be to present the user some kind of MAC system, which are notorious for being confusing, complex, and really difficult to present to the user in a meaningful way. The way those usually work is that your application just quits immediately and the system pops up another dialog telling you to change the permissions elsewhere. In the best possible case, that's equivalent to asking "are you sure you want to actually use the application". If there is a way this interaction can be improved, neither you or the article really explained it well. That's why I can't really get behind these statements, but I'm open to changing my mind if it's explained well. It would be best to avoid the inflammatory and accusatory tone of the article, it weakens the argument.

Don't get me wrong, dialog spam is a real problem, but the solution with that is to improve the dialogs, make them more meaningful and cut out the unnecessary ones. Not remove dialogs entirely. If I'm having a private conversation and I accidentally open an audio chat application then I'll say no, I don't want to use the application now. That's about as meaningful of a dialog as you can get. I used to be in denial about this myself because I'm a geek used to messing around with manually configuring SELinux and such, but the mobile model of security is actually really good. It works for the majority of users for the cases they're interested in without being too intrusive. That's the sweet spot you want to hit with security models. Remember these are single user systems as are most laptops in use today.

I can't really agree with your second paragraph, I tried to use Arcan and didn't find it simple, easy to use, or convenient, nor did it have any remarkable ideas. It seems to be a re-spin of some really old failed ideas from the late 80s. But don't take it just from me, you should definitely try it out if you haven't yet. I'll agree that Linux in general is not simple or convenient, I also suggest trying to do all of your items with the latest MacOS if you haven't done it recently.
I don't know the health effects of pure nicotine (say, in liquid form) vs caffeine, but one is certainly much more addictive than the other.
Are Tesla's cars with Autopilot involved in fatal crashes at a notably higher rate than comparable cars? If the answer were "yes," you wouldn't be pointing me to anecdotes. You'd be pointing me to that data.

The lack of that data is why, despite years, hundreds of thousands of vehicles, and millions upon millions of miles driven, people are still blaming the names of features.

It's time to move on. Over 100 people die in the US per day in traffic accidents. How many years need to pass before a handful of anecdotes and speculation doesn't pass as valid criticism?
It just needs to listen to explicit fsync commands and choose a matching point-in-time.
Beyond that, no, it's not hard as a database to tell the OS about moments where a block-level disk image would not need repairing, after the OS asks you.

I assume this is to prevent situations that would need time-intensive WAL-replay or such, and there it'd only be opportunistic with the "sudden power loss" recovery as a fall-back path.
Yes, that’s what I meant. It’s as close to the City of London as one could realistically be without being inside.
WHOI Explores the Ocean Floor with Autonomous Underwater Vehicles and Foxglove
Our team here at Foxglove (https://foxglove.dev) sat down with Ryan Govostes, an embedded software engineer at the Woods Hole Oceanographic Institution, to discuss how his team uses our data visualization app, Foxglove Studio, to iterate on their autonomous underwater vehicles.

Of all the ways we've seen our product being used, we have to say – ocean exploration is among the coolest
At least initially a lot of the GraphQL implementations resulted in slower apps, way more time to get going etc. This may have been because they seemed to tilt towards NoSQL backends, so that may be a big help if that is changing. I always did use views in PostgreSQL. Not graphQL, but you can simplify your request cycle using that if needed.
Not really.

When your diabetes leads to kidney problems and stroke, your last 5 years of life likely cost more than the rest combined.
I'd argue the JS engine in browsers is _also_ built for JS developers, and even though we are definitely a minority compared to all the internet users it's important to underline that most of the stuff currently available online, for better or for worse, wouldn't exist without developers writing it. Like the average user in fact couldn't care less about what languages websites are written in, but if browsers shipped only a brainfuck compiler I'm sure there would be a lot less development happening on the web, in some sense JS developers are the target users of JS engines.

I think this is literally the first time that I hear anybody saying that TypeScript is very fast. It's no coincidence that the top open issue in Deno's repo is literally titled "TypeScript compiler in Rust" [0]. The developer behind swc is even rewriting the whole type checker in TypeScript [1]. A lot of people, myself included, think that TS can get excruciatingly slow, in a large-enough but not really huge codebase, in a way that probably wouldn't happen if it were written in something like Rust with a big focus on performance.

[0] https://github.com/denoland/deno/issues/5432

[1] https://github.com/swc-project/swc/issues/571
How does it compare to cruise control? I can't turn that on without feeling less attentive.
Kings Cross has amazing commuter links, that's why. 45 minutes to Cambridge really opens up your options.
https://archive.ph/NOssQ
Actually, that's the issue with my MBPR from 2012: it has a 2560x1600 screen, as in, highly non-standard. It is neither 1920 wide, nor is it 16:9.

If I had the option to have purchased it with 1920x1080, I would have.
I'm not sure of the value for me to catalog all books just for the titles. What I would like is whenever I search Google, it would also search my books and tell me which book to open. It feels like a lot of knowledge sits on my shelves that I'm not really using. Not sure if that exists, but obviously the hard part is getting access to full-text contents of books - scanning pages by myself would be extremely time consuming.
> … put it on the stack, put it in a unique_ptr on the stack.

What happens when the stack frame gets destroyed but you kept a reference to the data around somewhere because you needed it for further compilation?

I, for one, am a fan of using the heap when doing the C++ things…
> Ever seen musician's gear?

I guess some of those are analogue? I guess you can't squeeze those all through the same physical form factor connector. You can with digital, so let's reduce the clutter and do it!
> You're not allowed

VAT 1234 [1] only applies when going less than the normal speed of traffic, which isn't the case on an e-bike.

> people will be absolutely furious at you for doing it.

People do a lot of things that make other people furious. Riding on the road isnt anything special

> Also drivers rear-ending you.

It's far less likely than getting hit by a turning vehicle because the cyclist was in the motorist's blind spot.

[1] https://www.nysenate.gov/legislation/laws/VAT/1234
> Imagine being able write your own scripts to run on your remarkable tablet

You have actual root access to a reMarkable device by SSHing into it, so not sure your point here? Were you thinking it was a device locked down like an Apple product?

More details: https://github.com/reHackable/awesome-reMarkable
> Pure nicotine seems to be harmless except in overdose

I think there’s also some sort of negative cardiovascular symptoms, but I would be unsurprised if caffeine had its own.
The Final Frontier of the Text Inbox
heya HN: in this article I argue for using hypermedia for your application API, once you've realized that your app and your general data APIs have different needs

would love feedback
I ride a motorcycle and can pretty easily spot patterns of distracted driving, but after buying a truck with some ride height, it is amazing how many people are regularly on/touching their phone for something while driving. On the order of 50-75% in a city environment. After this recent revelation I'm almost more amazed at how few accidents there are given the sheer number of cell phone addicts.
Kotlin is a really nice language. I wish it was used more especially that now it isn't just limited to the Android and Java ecosystems.

Kotlin can now compile to native binaries : https://kotlinlang.org/docs/native-overview.html#sharing-cod...

Kotlin can now compile to Javascript : https://kotlinlang.org/docs/js-overview.html Edit : You can even use React with Kotlin : https://kotlinlang.org/docs/js-get-started.html

Kotlin can now be used for datascience as well (You can run kotlin code in a jupyter notebook) : https://kotlinlang.org/docs/data-science-overview.html#libra...
I don’t use my laptop in any of those places because my desktop setup isn’t there. Laptop keyboards are awful to type on, why put yourself through that?

I’d rather get my work done at the desk and then enjoy my hammock or couch without the computer, preferably with a good book.
> I'm seriously considering selling my MBP and buying this instead

Apple's trade-in program is pretty good. My 2012 MacBook Pro was still tradeable in 2019 for something like 400 bucks. I would consider that also if you don't want to abandon the Apple ecosystem.

Before having to use a Mac for work I preferred a P53 and an X1 as work laptops, but honestly now that I'm forced to use macOS again I don't miss Linux at all. Would be great to be able to choose though, but I'm kinda locked on Xcode because it's our build system.
You should watch more of Practical Engineering! The dude is super knowledgeable, has great graphics and physical experiments he uses to show his point, and every video is fascinating.
The screen size issue can be mitigated by using a better window manager
So I'm supposed to trust that they will never have a data breach? For the lifetime of the company? And for all subsequent acquirers?
Mission Control and App Exposé change to 4-finger gestures after 3-finger dragging is enabled.
This is interesting as an example of something that can be done on NTVDM but generally not other DOS emulation solutions such as DOSBox. A DOS program running in NTVDM can have a Windows console application as a subprocess; other DOS emulation solutions such as DOSBox generally don't support that. So a QBASIC program running under NTVDM can use the SHELL statement to run a Windows console program.

Part of how this works is that NTVDM uses the Windows console to host DOS applications. By contrast, DOSBox shows them in a Windows GUI window, not a console window. In principle, DOSBox could display them in a console window too; that works fine for text mode applications, but it can't support graphics. But, actually, NTVDM can run graphical applications in a Windows console window – how? Well, the legacy Windows console subsystem actually supports two different kinds of console buffers – text and graphics – but only the former is documented. NTVDM creates a graphics buffer for graphical DOS applications using an undocumented CONSOLE_GRAPHICS_BUFFER flag to the CreateConsoleScreenBuffer API – http://blog.airesoft.co.uk/2012/10/things-ms-can-do-that-the... – regrettably, creating a console graphics buffer is broken on 64-bit Windows. Another method that would still work on 64-bit Windows is GetConsoleWindow to get HWND of the console Window and draw on it manually. But Microsoft is discouraging console APIs such as CreateConsoleScreenBuffer and GetConsoleWindow since they don't work with pseudoconsoles (Windows 10 equivalent to Unix ptys) – and it actually looks like in more recent Windows code the CONSOLE_GRAPHICS_BUFFER API flag is gone – see
https://github.com/microsoft/terminal/blob/fb597ed304ec6eef2... and
https://github.com/microsoft/terminal/issues/246
On Suffering
If I understand this post correct they seem to like the idea of putting routes in the file system (Next uses magical file names as a way to generalize routes for those who haven’t used it).
To me this makes absolutely no sense, a route doesn’t map to the file system in anything more than the most trivial index.html cases and you lose the ability to do things like “resource routes” to avoid mindless declaration of routes. On top of that, I would assume Next creates a route definition in memory anyways and doesn’t read from disk every request so it’s just pollution of the file system with the additional downside of making navigation unnecessarily hard.
Government agencies only.
This is super insightful, thanks for writing it up! Any details on the smart GTM strategy between enterprises and SMBs? I feel like enterprise is a dangerous place to start because of the long test/iterate loop, but SMBs could make your initial acquisition cost numbers look terrible.
Has anybody switched to mixing in Kotlin code within an existing Java Android app? I'm not a huge fan of Java but I don't know whether it will be too jarring for maintenance tasks if I have both languages as code. There is a lot of XML floating around in my app (as most Android apps have) but switching between editing that and the Java is fine.

I'm keen on the idea that there would be less code and my app is getting a little creaky and could use a refresh, but does Kotlin make the boring stuff easier? Things like inflating classes from REST json calls, interacting with the SQLite database.

How does it do on the more "exciting" (ahem) parts of Android like Bluetooth? I lean heavily on RxAndroidBLE to cope with the rubbish bluetooth stack and I think the code around that could do with being simplified.
The design of the MacBook Pro changed in 2016, and it became less repairable and easier to break (see: issues with butterfly keyboards). It would be difficult to convince me to buy a used old 2016+ MacBook Pro.
Sounds like an ordinance a "karren" would draft.

At least one of the reasons give is "not readily believable"
cheaters only cheat because they know they're too mediocre to ever succeed legitimately.

it's kinda like "i thought i was so bad at everything that the only way i thought i could succeed was to repackage nicotine with candy flavors and sell it to children"
Ooh. They've definately got a sale if an ortholinear keyboard variant with thumbkeys is an option.

I wonder if they'll do ARM variants?
Don’t expect to dead at 30, but don’t expect to be in any position in life where I would care either way.

FWIW I picked up smoking hanging in certain social circles. It was kind of just a thing other people I was hanging out with did.
I use Control as well, and it was an adaptation to prevent typing spaces or letters into the password field that I would have to delete before typing in my password. Perhaps you had a similar experience.
Well I believe you can play cricket in central park
I honestly didn't understand a single word in this article.

Can anyone please ELI5?
Manipulating the News Feed to show users pro-Facebook articles is...so obviously and blatantly unethical that I'm surprised so many people were willing to authorize it.
I’m so conflicted on that point. I’ve been writing a high performance CRDT in rust for the last few months, and I’m leaning heavily on generics. For example, one of my types is a special b-tree for RLE data. (So each entry is a simple range of values). The b-tree is used in about 3-4 different contexts, each time with a different type parameter depending on what I need. Without genetics I’d need to either duplicate my code or do something simpler (and slower). I can imagine the same library in javascript with dynamic types and I think the result would be easier to read. But the resulting executable would run much slower, and the code would be way more error prone. (I couldn’t lean on the compiler to find bugs. Even TS wouldn’t be rich enough.)

Generics definitely make code harder to write and understand. But they can also be load bearing - for compile time error checking, specialisation and optimization. I’m not convinced it’s worth giving that up.
Schrödinger’s PCP
The book that had an amazing impact on lots of friends who smoked is Easy Way by Allen Carr: https://www.amazon.com/Allen-Carrs-Easy-Stop-Smoking/dp/0615...

(No affiliation).

Friends report there are no lasting urges, no mental blocks, no inner demons etc. etc.

reddit testimonials: https://www.reddit.com/r/stopsmoking/comments/odyv6/anyone_t...
I'm genuinely curious - what difference does it make to you, the end user, if CRA has that extra logic internally? You won't see any of it unless you intentionally eject, and all it really is is some checks in the Webpack config file and the startup process.
Gain Digital Trust
You can order the "DIY Edition" without an OS pre-installed, as well as a lot of other customization.

https://frame.work/products/laptop-diy-edition/configuration...
Numbers are a bit loose, but even a Fermi style estimation suggests malware in general is worse than phishing. Phishing is on the order of tens of millions [1] to a few billion [2]. Ransomware alone probably causes upwards of many billions [3]. Equifax breach (XML exploit) alone has cost billions. Heartbleed, spectre, meltdown, those are at least 1B each.

[1] https://www.cybersecuritydive.com/news/phishing-cost-enterpr...
[2] https://www.proofpoint.com/us/corporate-blog/post/fbi-report...
[3] https://cybersecurityventures.com/global-ransomware-damage-c...
Thanks. Now I have a reason to close my kids account :)
yea Linus already said it
There’s a difference between instances and data. GP is saying that if someone had a damning graph of large-scale statistically-significant data showing AP is crashing more, we’d be talking about it.
> It's the majority and long tail, not the early adopters that this laptop should be for!

Why?

This is the way we end up having only mass-market, lowest-common-denominator products. Not fighting to get quality tooling for our niche is one of the important reasons we don't get any.
After using Rust for a few years professionally it's my take that people that really want to use it haven't had much experience with it on real world projects. It just doesn't live up to the hype that surrounds it.

The memory and CPU savings are negligible between Go and Rust in practice no matter what people might claim in theory.
However, the side effects of making your team less productive by using Rust is a much higher price to pay than just running you Go service on more powerful hardware.

There are many other non-obvious problems with going to Rust that I won't get into here but they can be quite costly and invisible at first and impossible to fix later.

Simple is better. Stay with Go.
"According to the U.S. National Cancer Institute: "Of the more than 7,000 chemicals in tobacco smoke, at least 250 are known to be harmful, including hydrogen cyanide, carbon monoxide, and ammonia. Among the 250 known harmful chemicals in tobacco smoke, at least 69 can cause cancer."

https://en.wikipedia.org/wiki/List_of_additives_in_cigarette...
Enumerating and analyzing 40 non-V8 JavaScript implementations
You could name the tags with it's path:

"Home/Bedroom1/Bookshelf2/shelf3"

I've seen this in some databases that store tree structures.
M1 does beat every other laptop processor atm in single core speed, but the latest Ryzen 5X00U (and 4800U) are better in multithreaded perf (both absolute and per watt) - https://www.cpubenchmark.net/power_performance.html. Hopefully the Framework Laptop offers mainboard upgrades with these at some point.

I very nearly bought an M1 Macbook, but realized I didn't want to live with currently early stage linux compatibility. I'm still thinking of buying an M1 mac mini as a little home server though - that tiny power consumption combined with such good CPU performance is perfect for that use case (although it would be nice if I could somehow attach a bunch of hot swap HDD bays to a mac mini too).
GitHub Actions 2x as fast for half the price
One big issue with NPM is that JS stdlib is extremely bare bones and the ecosystem swings far into the other direction to compensate, which leads to many libraries pulling in convenience utils that pull in their own convenience utils ad infinitum. So you, as a consumer of a toolkit like Rome, might be forced to download crap like function-bind@1.0.1 even though that is only pulled in as a deep transitive dep for some ancient obscure thing that wanted to support IE6 or something.

With Rust and other compiled languages, this isn't as much of an issue since even a "bloated" binary for a single architecture is still orders of magnitude faster to download than a constellation of packages each supporting an arbitrary subset of Node runtime versions.

with this said, there may also be a novelty factor in play here. Rust can definitely be considered the "new shiny thing" for this team, and with only a few weeks of Rust under their belt, they might still be well within the honeymoon phase. I can think of at least one major aspect in this space that becomes harder with a move to Rust: the only fully complete Typescript type checking implementation in existence is written in JS/TS, and I expect that type-aware tooling is going to sprout there first. The Typescript team in particular seems fairly uniquely positioned to be able to deliver some sort of type-aware compiler mode similar to google closure advanced mode.

In comparison, IMHO it's not a super compelling story for Rome to say they're going to provide a fast, unified web dev toolkit that... doesn't typecheck (due to poor interop with the JS ecosystem/community). The esbuild ecosystem is already there today and forging ahead with the force of the OSS community behind it. Bun.sh is taking a completely different approach by standing on the shoulders of giants. Last I heard, they were leveraging the ubiquity of C ABI - via zig - to leverage JavascriptCore, and looking into V8 bindings, and focusing on lightning fast hot reloading instead of reinventing parsing. Rome seems to be approaching implementation from a first-principles angle, which seems most similar to esbuild's approach, but that first movers advantage is long gone though.
Yep, from one end backend devs don't want to provide API tied to current month UI, on other end they tend to religiously stick to "REST" API and frontend guys need to fetch zillion requests.

You can do marvelous things with simple `GET /api/model?ids=1,2,3`.
Well consider all the projects titled “blah blah blah… written in Rust”

Who gives a shit what it’s written in—what does it do?
Human nature appears to have some negative aspects to it that may be related to need(s) but don't seem to be entirely explained by it.

Most humans feel better when they can see that they are better off than someone else (and worse when they can see that they are worse off.)

The desire to dominate and control others also seems very common.

etc.
No point, because these companies really really want to pay these ransoms they won’t have any trouble delivering millions of usd in cash to someone in Russia.

Ransomware does not need cryptocurrency.
Wuhan scientists planned to release coronaviruses to cave bats 18 months before
Krk
How does the keyboard compare to older Lenovos, specifically the x220?
A different perspective is that it's decoupling the impulse from the reward. Very powerful at taming these kinds of habits.
Anecdotal, but things get much much easier after like 2 months. The first few weeks are the worst.