skysight-inc/HackerNews huggingface dataset:
Last I checked cppyy didn't build any code with optimisations enabled (same as cling)
Shell scripts don't work well on Windows.
Where is the best place to find up-to-date information on stuff like layouts, and how to manage crossbrowser/accessibility etc?
It's a minefield when trying to self-learn these things as it's hard to tell when info is wrong or bad practice, outdated, etc.

For example - is this CSS grid-generation/layout current best-practice for building the base, foundational layer for a simple static website? Say, with three columns, one centered and wider with content, the others narrow and empty - serving as margins?

And how would one arrive there, as a solution? Searching online turns up an infinity of options such that it's difficult if not impossible to figure out how to do things in if not maybe "the" right or best way, at least "a" right way.
The smart ones know what tinfoil actually does.
Agner Fog's x86 microarchitecture and optimization manuals are a good start.
Or maybe it's not too hard to create a web ide and relatively cheap to run.

I'd imagine if you took a deep dive into web-assembly, lots of pieces are already there. It's really probably around 3-4 big pieces to try to piece together.

Sounds like a pretty rewarding payoff.
Show HN: Play Breakout with your volume knob
Did you know that browsers receive key events from those USB volume controls? Me neither!

A TV streaming website had always been bugging me because of its weird behavior whenever I changed the system volume: Sometimes it would become really loud instantly, sometimes it went mute before the rest of the system. When I found out that their player code was reacting to the volume knob I thought this was a) surprising (that the browser can see the system volume knob at all), and b) stupid (to react on those events) – stupid enough to make a game out of it: https://heckmeck.de/blog/volume-control-from-hell/
The kernel version number stopped having any meaning in 2000.
For me, it's mainly a reasonable independent division of working hours.

I have no problem working 14 hours into the night as long as I don't have to be there at 10 a.m. sharp every day and have to organize my entire life around my job. Sometimes you have other appointments during the day and I want to keep them without having to discuss it too much. Sometimes there are just shitty days when you want to finish work early. That should also be possible without being tied to a strict time limit. Of course, the bottom line is that you should be able to work the agreed working hours, but at your own pace. I'm currently in a job like this and tend to work 5-10 hours more per week as a result. Of course, I work from home, otherwise it wouldn't be possible.
You can't just claim it's an "attack surface" without anything to back that up. That's just engaging in boring black/white thinking.

And of course the data is useful. That's why this is being done. That in itself is not a argument against it.
I agree the premise of FOOM is very unlikely.

But if you assume that we have created something that is agentic and can reason much faster and more effectively than us, then us dying out seems very likely.

It will have goals different from ours, since it isn't us, and the idea that they will all be congruent with our homeostasis needs evidence.

If you simply assume:

1. it will have different goals (because it's not us)

2. it can achieve said goals despite our protests (it's smarter by assumption)

3. some goals will be in conflict with our homeostasis (we would share resources due to our shared location, Earth)

then we all die.

I just think this is silly because of the assumption that we can create some sort of ASI, not because of the syllogism that follows.

(As an intuition pump, we can hold on the order of ones of things in our working memory. Imagine facing a foe who can hold on the order of thousands of things when deciding in real time, or even millions.)
Teaching AI in Schools
I can't help but see these "let's create a Web browser from scratch" projects as massive wastes of time. You can't build a sane implementation of an insane standard.

Modern websites and the standards they rely on are overcomplicated. The problem lies with the standards, and the way they are used. The browser can't control that. I could never work on such a project without quickly losing motivation.

Also, that link says "The main community hub is our Discord server." That doesn't inspire confidence in anything.
Chrome is already delivering a (different) feature that they propose as a replacement for third-party cookies. That's not a reason for Firefox to adopt that API.
My curated list of indie blogs
Mobile banking: alarm as fraudsters take over handsets and raid accounts
I've always been very impressed with StackBlitz. What they've done not only here but Sandpack also. Absolutely next level.

And they do all this work then open source it instead of keeping it as a technical advantage.

Strongly recommend their blog.

Not affiliated just a fan.
Draw a trend line through Windows releases and it doesn't look good. I can't see myself upgrading to 11 any time soon and I'm seriously considering just switching to Linux. It's all I've used on work laptops since 2013 and it's just fine.

I still despise Gtk 3 or whatever it is that is killing menus and sticking controls into the title bar etc. but it's fine. You don't need to use Gtk apps much these days anyway.
Everyone already has it... on Linux and Mac. It's pretty rare for it to be available on Windows.

That said I kind of agree. I like the idea of `just` but it does seem like they have just created a complicated DSL.

I think it is better to just write your infra scripting in a real language. I generally use Deno or Rust itself and a thin wrapper that `cargo run`'s it. Using Rust eliminates a dependency.
The paperclip maximizer, AKA instrumental convergence theory states not that an artificial intelligence would decide to kill humanity, but rather if it has sufficient power it might inadvertently destroy humanity by e.g. using up all resources for computational power.

https://en.m.wikipedia.org/wiki/Instrumental_convergence
I was assigned a big project at work 2 years ago. Apart from main code base there were a bunch of other modules and services it talked to at it was all very old code. I couldn't have kept all of that in my head throughout.

I kind of rediscovered OneNote which helped me actually do the project. It's like your thought dumping playground. It's the only tool that offers least resistance to jotting down thoughts in whatever form you like. Every page is like a freeform infinite canvas. Just click anywhere, start typing or paste the screenshot or even files.

OneNote has been my daily driver since then. I mostly just dump thoughts in a lossely structured system that I am following for myself.
I tried obsidian too, but found that outlining/nested bullet points in LogSeq matched my flow better.

I agree regarding emails, one day I'll try to write a script that imports emails with a specific tag, perhaps autotagging can be a part of the pipeline
That issue is fixed by using the libmamba resolver:

https://www.anaconda.com/blog/a-faster-conda-for-a-growing-c...
Wow, I love this page. A window into the history and the personalities of the time, and really interesting points (factual or not) from Bill Graham that show one perspective on why the sixties' revolution soured in the seventies. This really struck me.

~~~

BARB: In '65 and ’66 there was a time when the Fillmore and The Family Dog were sort of the centers of a community that was developing. I’d like to know whatever happened to the community that was supposed to be being formed.

GRAHAM: It may have started, but, uh, the seed may have been there somewhere, but in my opinion, again, we’re talking about opinions, not facts, the seed was in the ground, but there wasn’t enough water poured on, and I don’t think the flower ever surfaced.

BARB: Why didn't that happen?

GRAHAM: That’s a five hour question. It needs a five hour answer. It’s so easy to point as to who’s guilty and not guilty, the opportunist entrepreneur, which is an accusation that’s been, you know, we’ve been pointed at for a longtime. That maybe somebody’s opinion. Mine, there are basically two kinds of people, and I don’t mean just physically or mentally, just in the sense of a word, there are thse who DO, DOOO, and there are the other kind, who wait for something to be done to them, to be affected by life, and we have too many of the latter.

There aren’t enough, there never were, in San Francisco, enough people, whether they do right or wrong, or good or bad, inactivity is wrong, mental inactivity, or sometimes physical inactivity. But this community has always been jammed with people who wait for life to affect them, rather than for them to affect life within themselves, or life around them.

We had lovely people that used to come to the dances in ’65, ’66, ’67, with their plumage, their accessories, and feeling very good, and high, and dancing, and jovial, and painting on the floor, under the black light, but what else?

O.K., you're 17, 18, 19, 20, 24 years old, you trip out, you get stoned, you go to dances, and you beg in the street, and you deal, WHAT ELSE? What else do you do about the world you dislike so much? Around you exists this ugly world, which you are always putting down.

[...]

WHAT DO YOU DO? This is in answer to your question, the greatest tragedy in die last ten years, other than war and killings in Viet Nam, and the Civil Rights situation in America, for me, has been the tragedy of the Haight-Ashbury.

The world said: "We’re looking at you, here we come, News and Look and Life and Time and Esquire, and we're getting on the street”.

But what did the Haight Ashbury do, what did it say, where was the political platform?
Where was the theater, where was the community spirit?

There never was a community. Look at Golden Gate Park. What do you have in Golden Gate Park? Everybody looks peaceful, nice, docile, stoned, freaky, throwin’ Frisbees, WHAT ELSE?

~~~
Tools like this are actually very helpful especially if you are learning to understand them.

A few years ago, I found a site generator similar to this one, but it wasn't drag and drop. I can't remember the name of the site.

From there I learned about grid-template-columns, gap, and some basic things about CSS grid. It didn't cover everything, but it introduced me to how the grid works when I was just learning about it.

Keep up the good work. It will always make it easy for people to learn, or use it directly.
Quite a lot of programmers use windows, because they require less maintenance and there is no reason not to.
I’m a dummy don’t know nothing about coding but I love HN usernames lol
> setup is typically a one-time cost.

I think that's what he's complaining about. It's been a one-time cost, for 30% of customers, each with a different issue.
Yep, hard stop.
A Capella Science: Massless (Muse neutrino parody): https://youtu.be/dBxcC8zV46E
Not OP, but I use Chrome and Edge does not open up randomly. There is literally zero issue with it.
I think what many will experience, is that they want to switch to multithreading without GIL, but learn they have code that will have race conditions. But that don't have race conditions today, as it's run as multiple processes, and not threads.

For instance our webserver. It uses multiple processes. Each request then can modify some global variable, use as cache or whatever, and only after it's completely done handling the request the same process will serve a new request. But when people see the GIL is gone, they probably would like to start using it. Can handle more requests without spamming processes / using beefy computer with lots of RAM etc.

And then one might discover new race conditions one never really had before.
ShrugCon – the technical back end for an online conference
If I'm working on something particularly complex I basically just do the journaling in a code comment adjacent to what I'm working on. So the first commit may be three lines of code and a huge long winded rambling comment of what I've already tried or thought about. By the time the task is done I've pared away the more speculative/rambling elements of what I wrote, and what's left is typically some extremely well commented code. I think this method results in higher quality code produced faster than if you just try to keep everything in your head. No one's complained yet...!
The idea you're conveying is very well known but in my opinion poorly argued for. This essay I mentioned on the other hand had a minority view and well argued for, which is why I was trying to find it in order to reread it.

Anecdotally let's look at one data point. Spider-Man is in comparison garbage, but it's everywhere to this day. Why, because some company calculated they could milk it. C&H in comparison is much better but virtually unknown for anyone under the age of 20. It's dying.
Human free military? Thanks but I’ve already had my potent weed for the day. Cmon have a filter for common sense.
I needed an app recently to interact with the UK govt.

The alternative was to send them my passport in the post (which obviously I'm not doing.)
I use a trackball: I still get the same experience every week (or, let's be honest, every month or so).
Same here though my preferred tool is OmniOutliner or any similar tool with hierarchical branching. There are other tools like Roam/Obsidian but Omni has proved to the fastest offline local macOS app with the most rich feature set.
> Look at reviews and ratings on app stores before installing anything to ensure you’re not downloading malware on to your phone.

Ensure?? I don't think so.
If there's a force, which is clearly not that of an informed populace, that keeps banging on these kinds of doors and all that it takes is that some idiot opens it once, you can see how it's a natural response to stop relying on the gatekeepers to protect you in the first place. Revolt or civil disobedience becomes the natural defense mechanism.

Also, the comment you replied to is not "giving up on rights", the opposite. He's offering a solution to uphold those rights that doesn't involve bending the knee to those who want to trample on them (regardless of how idiots vote). I will (in)definitely keep communicating E2E encrypted, whatever the law happens to say.
I don't usually bookmark or otherwise save weird opinions, but will do so next time (most of the threads here, when ChatGPT became big and hyped contained many of them as far as I remember, maybe I take a nostalgic look)
I'm quite happy to continue saying "advertising is bad, tracking is bad, anything that serves no purpose other than to help them is bad for users". Calling that "black and white thinking" is not an argument that advertising is good, or tracking is good, or that this API proposal is good.

What is the reason this is good for users? It's not "this is better than other tracking", because this does nothing to take away other tracking so it's not an either-or. Other tracking won't go away until it's blocked. There is no requirement to provide a replacement.

"We've should eliminate toxic waste being dumped in the water!" "What do you propose to replace the toxic wastewith? Why don't we provide a less toxic waste? Maybe if we offer the option of dumping a less toxic waste, that'll incentivize factories to dump that instead of the more toxic waste?"
So here I think we differ fundamentally in how we like to read code. I much prefer being able to quickly figure out things of interest about a function by glancing at its signature, rather than look at documentation, or worse, having to read the implementation of the function and the functions it calls (and so on, recursively).

For example, I much prefer a signature like

def f(a: int) -> str:

over

def f(a):

because it allows me to see, without reading the implementation of the function (or, if it exists, and I'm willing to bet on its reliability, the documentation), that it takes an integer, and gives me a string. And yes, this requires that I write viral type annotations on all my functions when I write them, but for me the bottleneck at my job is not writing the code, it's reading it. So that's a small upfront cost I'm very much willing to pay.

> Do you think we should be annotating functions with `expensive` and/or `networking`? And also annotating all of their callers, recursively?

Yes, absolutely, and yes, absolutely. That's just being upfront and honest about an intrinsic property of those functions. A function calling a function that does network I/O by transitivity also does network I/O. I prefer code that's explicit over code that's implicit.
The Logitech G603 runs on either one or two AA batteries, so it can be very lightweight in one battery mode, which is the main advantage of built-in packs.
Not really. It combines the best of the two words. You have good UI and operating system that requires very little maintenance and Linux command line with tools where helpful.
As someone who setup a discord streaming like service to use alongside Mumble, this is very exciting. I couldn’t get anything involving webrtc working reliably, but the only broadcasting clients I found were web browsers and OBS, so I am interested to see how this compares!

What I eventually settled on was https://github.com/Edward-Wu/srt-live-server with OBS and VLC player, which gives robust streaming at high bitrate 4k60, but latency is only 1-2 seconds
On bro
> if it works and becomes standard

We're talking about Firefox here. Advertisers care about browsers that most people use, and Firefox isn't one of them.
"Superhuman" Go AIs still have trouble defending against these simple exploits
The article is wrong, CVE-2022-21587 is related to Oracle not Solaris
I think it is the approach — especially on error where it fixes on its own. In Dravid for eg if you say “create elixir project” if elixir is not installed, it will try to install on its own and if there is architecture like for eg M1 related it will fix those errors and finally creating the elixir project. There is no hand holding required.
That’s the main difference
Complex Systems by Patio11
Serious question, are you familiar with dedicated hosting?
> AI right now is like covid in March

March 2021 yeah, well known all over the world, everyone talks about it but not much has really changed in a while. Some fear COVID might mutate into something deadlier, and some think generative AI will turn into something completely different.

The quick pace was GPT-2 and GPT-3, those happened 2019 and 2020, today it is a crawl in comparison, GPT-3 was like covid in march-2020, at the time most were barely aware of it but today it is mainstream.

The revolution you are talking about has already happened, people all over the world interact with their computer using natural language, so your prediction here is a bit late.
Just realised there is a key difference based on another comment.
Adding the same again here.

I think it is the approach — especially on error where it fixes on its own. In Dravid for eg if you say “create elixir project” if elixir is not installed, it will try to install on its own and if there is architecture like for eg M1 related it will fix those errors and finally creating the elixir project. There is no hand holding required.
I really don't see anything wrong with this, personally. It's a limited test with a small number of websites involved. Only aggregate data is received, so all they'll know is something like "x number of people saw this ad and y number of people clicked on it"; no other information about those users. Seems very innocuous to me.

As to it being opt out instead of opt in: consider the fact that only a small number of websites are involved in the experiment; if it was opt in then it seems quite likely that there could potentially be no intersection between users who opt in and users who visit those specific websites, rendering the entire experiment pointless.

[Edit: fixed spelling error]
I mitigate this "problem" somewhat by taking pride in specialized yet (hopefully) readable notations and sometimes even creative tool usage. Like using a project planning tool with a Gantt chart feature to speed up a boot process with many dependencies.

Of course, sometimes an existing tool or notation used for its original purpose is what you need. Maybe manually remove the stuff that doesn't matter.
To be fair, it's quite a hidden feature. I've used Windows as a daily driver since 3.1 days, and I didn't discover this until late Windows XP or early Windows 7 days.
You don’t need to get high to come up with this.

Human free military is literally the wet dream of all generals and military higher ups.
As we speak there are dozens of mil-tech startups and huge enterprises that work on exactly that
Having audited quite a few mega-corps, and seeing their CMDBs in detail, "the amount of RHELs is too damn high" to use the meme. I can't speak to percentages as I didn't keep specific track of those numbers, but from memory/impressions, the RHELs were at least 30%-40%.
It's a new podcast by Patrick McKenzie. The first episode is excellent if you're in to trading, game design and complex systems :)
Grid has been around for a while now, together with flex it’s the way to go to start building layouts. But like everything it requires practice to get the nuances down and learn about the pitfalls. You won’t experience many cross browser issues these days with either of them. And in terms of accessibility you mostly need to consider that visual order does not necessarily match tab order. Especially for grid where you can arbitrarily place elements in the grid.

An older resource for learning grid would be https://youtube.com/playlist?list=PLu8EoSxDXHP5CIFvt9-ze3Ing.... 6 years old but grid itself has gone mostly unchanged.
https://css-tricks.com/snippets/css/complete-guide-grid/
https://css-tricks.com/snippets/css/a-guide-to-flexbox/

https://flexboxfroggy.com/ Is a good way to introduce yourself with the concepts of flexbox.
It seems like there should be an organ that catches there kinds of overreaching laws immediately when proposed. Monitoring the communications of private citizens is simply wrong for various reasons. There's no way shit like this should ever be able to proceed to the point of a vote, when it's in direct contradiction with various constitutions and human rights declarations.
Thank you very much! Sorry to hear that your PhD wasn't what you wanted. These days it's much easier to provide value outside of academia than inside it.
Musk: "EU offered secret censorship deal to X. We didnt accept
I believe that essay mistakes quantity for quality. I think most authors would prefer a small community that "gets" them than a larger one that doesn't.

I believe most artists care more about the message of their art than about its spread. And if you ask them to choose between "500 people that get it" and "50000 people who don't", the fact that the second number is bigger is not necessarily a better deal.

(Obviously there are considerations for "I need to pay rent", but that's a different issue)
Thorsten Ball's books are the closest thing to Crafting Interpreters. Not just by topic, but also with how the code is presented. By far these are among the few books I know that take the effort to guide the reader to programming something complex from scratch, while also being testable as the program grows. This means that previously presented code changes along the way as new features are added.

A lot of other "code yourself" books, on the other hand, simply slice already finished codebases, and there's no way to test a simpler incomplete version of the program unless the reader makes extra effort and go beyond what is presented in the book.

While there is a lot of overlapping topics in Nystrom's and Ball's books, there are also enough differences to learn something new from the other. Ball's books uses the same parser and AST as front ends to both tree-walking and VM interpreter. CI, on the other hand, skips the AST for the VM interpreter, and also teaches extra topics like implementing garbage collection, dictionaries/hashtables and class-based OOP.