skysight-inc/HackerNews huggingface dataset:
I think that's a valid criticism. The capture syntax and while colon are probably my least favorite aspects of zig.

The capture syntax is syntactically consistent across different constructs that support it, but it isn't semantically consistent. This consistency actually hurts because it's not expressing a general principle across the constructs, rather it's a convenience particular to each construct that we have unified syntax for, giving you the wrong impression the same sort of thing might be happening when it isn't.

The for capture takes elements of whatever kind in an array.

The catch capture only takes errors.

The if capture only takes optionals.

So, it's the same syntax for things that are totally semantically distinct. I get they're trying to make the language "guessable" to an extent and easy to remember/simple enough to fit in one's head, but imo this actually makes it harder to remember. I wind up getting confused because I have to stop to think about what gets captured and what it means etc. It's a writer convenience over a reader convenience. I'd much rather have to remember more, visually distinct syntax for different semantics than I would have to remember special, subtly different overloads of the same syntax across a range of semantics--ironing some syntax into the brain isn't as costly, imo as having to constantly remind oneself how these similar structures differ ever so slightly each time and untangle choices that are pragmatic but not semantically grounded.

All that said, the rest of the language is shaping up pretty fantastically.

Edit: As an example as to how it could be done differently, for null checks go just has the obvious "if (x == nil)". People complain about go's error check verbosity, but imo this is way clearer than zig's approach which requires remembering special magic "unwrap and bind to this only if not null" while saving only a few characters at most.
This is a classic misuse of rvalues so I’m not sure it’s a huge problem. I don’t think it’s a problem with C++. I probably work at the same place you do btw and I am pretty sure there are rules/guides about how to handle string_view lifetimes

For those downvoting, please explain why you think string_view should take ownership of an rvalue string
I think you are mistaking Google for "The Internet", believe me, someone else would be thrilled to show us ads.
There is a kernel of truth to this… and it’s simple. We used to actually blow them up and really test if they still worked.

Now we don’t. So we simulate with supercomputers, we perform partial tests on sub components, we validate everything as best we can… except for the part where we can’t really test if the whole combination works together at the critical moment. (pun intended)

In particular there’s a reasonably big thorn in the all sealed up and “ready to go” thermonuclear devices, the tritium in the devices has a pretty short half life and needs regular replacement… same but on a longer schedule for neutron sources. While a gun type fission device is incredibly simple and has a shelf life of probably well over a hundred years… we don’t use them… I don’t think anyone still actively fields that type in their arsenal. So it’s all complex implosion type devices with neutron primers, and even more complex thermonuclear implosion devices with tampers and fillers (Remember when the USA forgot how to make FOGBANK) and tritium and lots of circuits and electronics that while designed specifically for this environment… are sitting in proximity of radioactive material (just because the aren’t emitting radiation at a level that makes them unsafe for military personnel to handle doesn’t mean they emit none and the electronics are on the inside behind layers of material blocking some of the radiation from people)

It’s not really a situation that should be surprising. What’s surprising is that we have managed to see the nuclear test ban treaty hold up as well as it has. I suppose it comes down to the calculated game theory style gamble that you can be sure enough of your own nukes working with billions of extra dollars on things like supercomputers and exhaustive component lifecycle testing programs and lots of hard work but it’s obvious that this also makes it harder for your nuclear armed adversaries to be sure theirs work. Cold War game theory type realpolitik.

Edit: having written this all off the top of my head from the (kinda “no duh”) headline I’m pretty happy with how much I covered the actual topic vs the “but Russia and politics and maybe he might use nukes” subtext that is pretty much the rest of the article and the part I didn’t talk about. They even mentioned FOGBANK by name.
Who Can Work for You? The Answer Might Say Everything About Diversity
> without the meat, whereas Indian and even Chinese food seem to be a little more nutritious.

> even

Interesting word to describe the cuisine with arguably the richest history of vegetarian dishes/diet.
The AMLO government made a populist decision. After burning $5B. He also vowed not to use the presidential plane that was already delivered and paid for, a 787, no less... They couldn't sell it, so it rotted for a few years until it was "donated" to an airline.
Finally, they built another airport much farther away and with very little oversight over how the contracts were awarded.

So I think it's just another flavor of bad. And don't get me starter on AMLO's gutting of the electoral commission.
> Leave the sensationalism for other sites!

Hah!
I love the SerenityOS project, the subprojects, and the passionate people behind it, but I doubt Jakt is going to get any more serious use than most other toy languages. I think Jakt will be as much a production programming language as SerenityOS will be a production operating system.

Interoperability with C++ is a very nice and useful thing but the language still needs work. Andreas' video on writing code that actually does stuff in Jakt made it clear that there are still places where the language needs to be improved (which is fine, it's not finished) and at its current state I think it'll be a while before the language gains any adoption.

The language reminds me of Zig in a way, which also featured a "transpile a language into another" approach up until recently. Unlike Zig, Jakt actually seems to have usable syntax highlighting and IDE support beyond "highlight these specific keywords". I've never found any IDE that works well with Zig, and the people I asked told me to use an older, buggy highlighter and ignore the errors or program without any IDE support.

Despite its immaturity, it's already nicer to just work with than the language behind Bun, a JS runtime mentioned here on HN a lot. That's very promising for the future of Jakt at the very least.
There is only one error

> Error: An img element which has an alt attribute whose value is the empty string must not have a role attribute.

The rest are info or warnings.
I've been using Vimium for quite some time now, and while I like it, there are two things which annoy the hell out of me.

Vimium disables the browser's backward-forward cache (by listening to the "unload" event), causing navigation to be much slower.

There is also no way for a website owner to warn a Vimium user of conflicting keybindings. I run a website which implements Vim keybindings and several of my users complain that it doesn't work. I have to remind them to disable Vimium. This issue has been open on their GitHub for more than 4 years with no end in sight.
You can implement your own libraries that do this easily. The std libraries have to maintain backwards compatibility and typically solve the base case only - just wrap them to do whatever ref counting or bounds checking you want
Stop, just stop. That Rasmussen poll is a loaded question framed to make black people appear unreasonable and work up a racist right wing base. It worked Scott Adams up so much he went on a racist tirade and got himself fired.

"It's okay to be white" is a slogan historically used by alt-right trolls, the KKK, and miscellaneous Nazi groups. Obviously when polled about overtly racist slogans black people are going to tell Rasmussen to get bent.

https://en.wikipedia.org/wiki/It%27s_okay_to_be_white
"Our 50 interviewees worked in a variety of private, public, and non-profit organizations from diverse sectors including consulting, design, finance, medicine, education, and technology..."

Honestly, Blue collar workers need a sabbatical just as badly and you will NEVER see this occur outside of some exceptional anectdote which I'm sure will be mentioned in a reply to this post.
Beware rogue 2FA apps in App Store and Google Play – don’t get hacked
Large language models are the thing the average joe in 2023 would call AI the most, and at the end of the day, if you go deep enough down the 500 billion parameters rabbit hole, it's just a "veryyyyyyy loooooong chain of if-then-else's" obtained after 10s of thousands of hours of computing time over basically all of the text generated by humans over 30 years of internet existence. I know it's not EXACTLY that, but it could be pretty much "recreated" using this metaphorical long chain.
Could you share any notable ones, to get started?
Hasn't this already been done before with hats, hoodies, and glasses? What makes this any different from projects 10+ years ago that used IR LEDs for this purpose? The model of the LED? Strobing effect?
You might consider a splash of bone sauce[0] to deter deer.

[0] https://www.permaculturenews.org/2014/06/05/bone-sauce-a-too...
Yes but properly speaking Amtrak should have cross-country high speed rail routes and lower costs than flying. Amtrak can't even imagine high speed rail as long as they are stuck renting routes where they are limited to 140km/h, less than half the speed of high speed rail in other countries. Even Amtrak's fastest lines, the Acela in the NE corridor, only manage 240 km/h along one or two sections.
Retro Gaming Isn’t Mario and Sonic Anymore – It’s Your PS3
The home page doesnt make it obvious but there's a port for Firefox too.

It does not compare directly with the old vimperator addon but it works great for regular browser navigation.

The only occasional glitch I saw was in UI for adding site exceptions.
Deprecating old features is not reasonable for a widely used language. Just look at what happened with Python 3.
Time-Travel Movies – Ranked
It's still a very specific scenario.
Maybe I suffer the same fear as op, but I think this is different.

The cost to create software is rapidly decreasing with tools like this. For most people on HN making software is how they pay their bills.

If I was paying my bills with injection moulding, I would try to be on top of 3D printing as well.
Any specific things you do with vimium-c that are must have features to switch over?
It’s interesting to me how comparatively impoverished Anglish seems. Here’s to promiscuity!
We’re living in an age of small creatures
"When was this hypothetical period in which anyone could express their opinions without the threat of them being labeled "ethically bad"?"

I remember having decent discussions with people in the 2000s and being able to agree or disagree. It wasn't perfect by any means but I have noticed that in the last ten years with a lot of people it got increasingly more difficult to talk about an issue and developing thoughts while talking. It feels like you are either all in with "their" side or you get lumped in with the "other" side. Nuance not allowed.

Just my persnal experiennce.
While plausible, given Adams' bouts with racism as circumstantial evidence, would it not be likely that it was him and not some 'prankster'?
Using Large Language Models Effectively
I like Shortcat

https://shortcat.app
I did. It is still nagging for $30: https://journals.aom.org/doi/full/10.5465/amd.2021.0100
Curious what the “vulnerable third party media software” that the hacker exploited was

Edit: NVM, the article says it was Plex
Who on your team is exceptional? Davis asked managers when they got on the phone. Who would you bet your job on?

Will the answer change depending on motive? Bonus or layoffs?
Nah, but it's a great story to tell around the post-apocalyptic trash can fires.
A simplified TDD approach may be better suited for technical interviews
There are two common coding methods used in technical interviews and assessments: algorithmic coding (e.g., Leetcode) and file system-based project coding. The latter is generally considered better because it is better suited for real-world work. In the current age of assisted programming tools (e.g., ChatGP and Github Copilot), there is less need for handwriting algorithms such as inverted binary trees. However, algorithmic coding is advantageous for its time-efficiency, making it ideal for time-critical interviews.

Based on this, our team has tried a simplified TDD coding approach in technical interviews, and it has proven successful and it strikes a balance between time-saving and job-oriented . We plan to release this method to the public, as we believe that TDD is not only a testing process but also a design process. Even if the candidate is unable to complete the coding challenge within the given time, the process of designing unit tests can demonstrate their coding skills. Additionally, the interviewer can quickly adjust the requirements by modifying the test cases.

Although the demo is currently simple, our goal is clear: to explore coding methods that balance time-saving and work-oriented principles in code evaluation, particularly in a time when programming tools are rapidly evolving.

What do you think about it?
no language is ever going to be 100% replaced, but C++ has largely replaced C and Swift will likely largely replace Objective-C. this article obviously isn’t discussing whether something will wipe C++ off the face of the earth but that it might replace most of its use cases. why are you nitpicking over the word replace?
Around me there’s a (non-native) pear tree (Prunus calleryana) which is the primary tree in old neglected fields with poor soil. I wouldn’t mind if it bore edible fruit, but alas those hard little pears are astringent to the point of being painful. The Eleagnus umbellata I don’t mind however, as they build the soil and the berries are delicious and produced in copious amounts. The bear like them, too.
This is interesting, will be trying it out when I get chance. Thanks
I haven't used it, but in theory it seems to be fully supported, with screenshots in the help article showing several apps running, and instructions (however short) laid out for various apps like Gedit, GIMP, Chrome, even Nautilus: https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-...

It seems to be as easy as installing a driver and then... installing the apps in the distro. That makes it even easier than Wine IMO.

To me, it seemed perfectly reasonable to call it the Windows equivalent to Wine but :shrug:
I bet there's lots of people who do care, I think it's usually the structure of an organization that stops problems from getting solved and not the moral failing of any individual. It's entirely possible that literally everyone involved wants to get it fixed, there's a ticket with 100 comments below it detailing how the fix will be implemented, but everytime it makes it into the sprint it gets kicked out and quarter or two because something mission critical always comes up.
For very large projects static types in C++ are a lot safer than Python. For simple projects I agree with you, but as you get over 50k loc Python becomes hard to manage, while i'm work in 10 million lines of C++. Sure it takes more effort, but at that size C++ is a lot easier to manage.

C++ does have issues. However few languages can handle complex problems well. (Rust is very intriguing for the possible ability to do things at the same scale)
Agreed, the wealth disparity gap in this country is disheartening. I have a similar story and felt so much shame at first in drawing from my savings to do so -- especially with some visits to third world countries and some of the harder parts of that life.

Tightly knit family structures do allow for this kind of sabbatical more often, but I do support initiatives like UBI for this (and other) reasons. Not to make it political as to which solution is best -- this is just one reason where I think it offers a good solution (all else being equal).
> then it's silly to lament the difficulty of being able to hire developers who can write Delphi on day one. You don't even need that!

This much is true. However this is also not the reason why we find it difficult to hire. We don't require someone who can write Delphi from day one. We require someone who is willing to write Delphi from day one.

Obviously past Delphi experience will make that much more likely. But we've tried listing "C#/C++/Java or similar" in the suggested experience part, and most of the people with such backgrounds are not willing to learn Delphi it turns out.
The racism critique comes mainly from his recent rants. Though his beliefs have certainly been worming their way into his strips for some time. See: https://www.youtube.com/watch?v=vXp6ArvXcT8
Never Work in Theory, Spring 2023
Thanks for the feedback. I'll add some notes comparing it with other attempts like you suggested.
if the ADA doesn't already cover this, we need to amend it to mandate accessibility. at least for businesses at Amazon's scale.
Trydactyl is mint for Firefox VIM experience
Sure but it looks like we're headed the other direction. There was already that HN thread about the AI chatbot used to paraphrase a letter following a university shooting: https://news.ycombinator.com/item?id=34896009
second this, same here.
Completely anecdotal, but I rented a Tesla when I was on a business trip a couple of weeks ago. I only had to charge it once over the entire week, but to do so I needed to park in front of a charging station for about an hour, and I was parked next to three other people, also charging their vehicles for about an hour.

I understand that most people would (ideally) be charging up at home overnight, but the logistics of taking a long trip are, if not daunting, at least very different from today's "pull into a gas station, fill up, hit the restroom, and get back on your way in fifteen minutes."
Hmm, I would consider Indian to have the richer history of vegetarian dishes, hence why I used "even Chinese". Moreover, Indian cuisine uses cheese and butter, unlike Chinese cuisine
Mall Ninja; that really takes me back. I don't think they can afford the sword after buying a vest that can stop a .308 magnum...
I have this opinion. I much prefer C++ to Go and Rust. There need to be languages that don’t hold your hand - you can argue instead that C++ is an incorrect language choice for many projects and I’d agree with you though

Once you understand lifetimes well C++ is a joy to write. 99% of all the complaints about C++ are 1. lack of automatic bounds checking, which is trivial to implement yourself 2. memory management problems because people have a poor mental model of how it works, which can be learned.
Ignoring the subtext of "true things that must be muted because they offend someone", there's a whole section in the paper on how they didn't filter and the problems that causes. TL;DR:

> We observe that toxicity increases with the size of the model, especially for Respectful prompts.

It does outperform GPT3 slightly in terms of observed bias against protected groups (as in it is slightly less biased) but not substantially so.
This is one of the coolest things I've read about diffusion
Anything you’d recommend specifically from McLuhan besides Gutenberg Galaxy
I've previously suggested the use of META tags on all pages where AI was used to help generate the content. But it seems this isn't going to happen.
The article misses the huge point that one important regulatory requirement is ACCESSIBILITY. If somebody said “gee boss I’d love to come to the office but as a double amputee it takes me awhile to get to work in the morning, could I work from home” the boss would go “aw shucks I am a true ally but we just can’t make these accommodations without the business facing undue hardship trying to meet all these regulatory requirements. If we accommodate you and our business goes under that’s sadly no good for anybody”.

After COVID none of that flies anymore so work from home will increasingly be mandated by legislation and as regulatory costs increase as a result the author misidentifies what will be cut in the long term. They’re absolutely correct that the regulatory costs of work from home and office work simultaneously will be a large burden that will drag down companies that try to juggle both but they misidentify which of those things are necessary and which of those things are frivolous.
Ransomware attack on US Marshal Service affects ‘law enforcement sensitive info’
When starting my medicinal herb garden I created a spreadsheet to compute a score for each species I was considering, taking food and medicinal value plus native/invasive/non-invasive alien into account.

One thing to keep in mind is, a plant can be invasive in one region, but totally harmless in another. Just because it is a problem in Florida doesn’t mean you must avoid it in Vermont.
Maybe I'm old, but I don't take salacious anecdotal reports on forums to be be worth considering, whether or not they're plausible. You might not believe this, but people on the Internet used to just make things up -- and the good ones would even try to make their apocrypha believable!
can't wait for AI legislation, perhaps we can replace all the interns writing it now
I wanted to see James Taylor, but didn't know it would cost $5k
These issues have prompted a surge in new regulatory developments aimed at making sure remote workers, home workers, and teleworkers are protected under existing environmental, health, and safety legislation and guidelines and that employers are not running afoul of labor laws.

Companies don’t give a fuck about labor laws and this author is a corporate stooge shilling for RtO policies. How many in-person companies skip employee lunch and break compliance now? How many hospitals skirt patient ratio minimums consistently? Remote work is far from the problem with employee rights.
For Firefox there's also https://github.com/tridactyl/tridactyl
Between Republicans wanting to use the state to overpower cities, and Democrats now wanting the same, maybe we ought to just eliminate cities altogether and centralize all the authority.
> Have you?

Yes.

> In any case, it's not clear why interpreting Adam Smith (1723-1790) is an appropriate criterion here.

Because it speaks to both their reading comprehension and grasp of economics.
maybe the FTC should investigate OpenAI's claims of uptime
Deep secret of CMake: it's a line by line interpreter, so you could have worked around the toolchain issue by setting the relevant variable as one of the first line in the project.

However, you're supposed to set the toolchain on the command line and toolchain files are only intended to specify what's necessary for the toolchain. Setting defaults is considered a bad thing.
At least in firefox, I'm not sure that's true. I go back pretty frequently (maybe you mean specifically with vimium back navigation) and get yesterday's cached HN front page, for example.
It is a quote from Hunter S. Thompson's obituary for Nixon:

https://www.theatlantic.com/magazine/archive/1994/07/he-was-...