skysight-inc/HackerNews huggingface dataset:
> [...] like saying that passing multiple parameters to C functions is "a tuple".

You intended this as a reductio ad absurdum, but you are entirely right. That's how it's handled in eg Haskell.

> I imagine that adding tuples would cause a whole lot of complexity that they'd have to deal with. Since Go doesn't have a concept of immutable data types (except consts), tuples would effectively be just variable-typed constant-size slices, which are already implementable as arrays of empty interfaces, but have a runtime overhead...

I'm not sure that would be a good way to implement tuples. In fact, I suspect it's probably close to the worst way to implement them?

I'd image you'd want to take the machinery you have for structs, and adjust it so that it can deal with anonymous structs with anonymous fields identified by position. (But still preserve all the static typing, instead of throwing your hands up and going with 'variable-typed'.) The runtime overhead would be more or less exactly the same as for structs.

In general, I see tuples as a syntactic sugar over structs and expect them to be compiled like that (or better) in a statically typed language; instead of representing them as some kind of weird slice.

Theoretically, you could probably even implement tuples-via-structs as a preprocessor.

> I imagine that adding tuples would cause a whole lot of complexity that they'd have to deal with.

Yes, so instead of abstaining from tuples, because of these complications, they added a special case for their favourite use case.

Have a look at OCaml for a relatively simple language with less design hypocrisy, and fast compile times and fast runtimes. (Compared eg to the much more complex Haskell.)
Well, because using any popular service or app is right out?

Just looking at my own phone, payments, banking, planning transit rides, ordering cabs, keeping in touch with (online and offline) friends, streaming videos and music, gaming, ordering groceries, ordering takeout, translating documents, getting breaking news, taking (good) photos, and reporting vandalism to the city are all proprietary apps.

I don’t see a straightforward way to replace any of these with FOSS, and getting rid of them all would necessitate some serious concessions in my lifestyle.
That is fascinating. It’s more or less like me trying to use the metric system.
no one say anything about Chinese. anti CCP != anti Chinese.
See my other comment: tuples should be thought of as syntactic sugar over structs, not arrays.

Whether to pass by reference or value and other design decisions should probably be taken (as much as practicable) from the design decisions for structs in your language.
Stick with JSON. Just slightly less readable than logfmt but highly ubiquitous adaptation and parsing capabilities.

logfmt might be fine for people at Stripe who've built infra around it, but for mortals, stick with JSON so you can send data around.

When you have a million log lines, the question "Did it parse correctly?" shouldn't need to be asked because checking correctness is a huge problem.
Rolling Stone is Chinese owned propaganda. It stopped being a real magazine after hunter left us.
This is cool. Can you make this work for more complex recipes, e.g., with restaurants? Perhaps import recipes in a standard format to automate? I can see this being a differentiator for catering companies that serve employee lunches (e.g., Forkable).
Former Uber Security chief found guilty
> If security is a top priority, at the very least we need to do what the Sinquefield cup did in the last few rounds: No spectators and a 15 minute delay, so that all communication with computers/co-conspirators has to include the player relaying all the moves out before they can get any help.

This. And then let's test this Niemann character, as now I'm really curious as to whether -and how- he cheats at OTB.
Subsea is more civil war resistant. Also not susceptible to rent seeking from right of way owners.
It's been possible forever and effectively that's how non-us deals with the issue. Call your representative to real enforcement, I guess?
Agh, I've thought this through and you're completely right. It's an interesting conundrum. Certainly releasing powerful tools into the wild runs a high risk of swaying public opinion in a negative direction. Given this I honestly wonder why Google continues to invest so much in AI at all. I imagine having automatically generated video ads and stuff would be cool, but would hardly move the needle on the core business enough to justify the massive investment they've made into AI. Not that I'm complaining about it though... Google's tech advances always seem to diffuse (heh) into the open source world, so at least we have that to look forward to.
Wait, WALL-E wasn't made in earnest?
I personally cannot wait for walking to be "outmoded" by personal floaty devices and for life to resemble a trip on a cruise liner (or so I imagine--I'd never step foot on one!) I'll own nothing and be so fucking happy.
You might be talking about solutions to popular problems are you? I can't imagine having to figure out the language's syntax or what the interface of packages/libraries is without searchable documentation.
Phenaki – videos from text, with prompts that can change over time
I disagree. Just because a subpar implementation is "winning" thanks to cargo-cult developers doesn't mean it's time to put up with mediocrity especially in a security context where a failure can be disastrous.

If you have a business case for JWTs, fine, take on the extra complexity and implement JWTs properly.

If you don't (and as the author points out, the majority of implementations don't need them), push back and do it properly using a simpler system, rather than implement the complexity just to then abstract it away.
Who is still using Elm? I thought most would have stopped after the creator's holier-than-thou attitude [0], publicly shaming critics [1], only allowing certain people (read: core contributors) to use language features without monkey patching, and generally acting like only they know how to make a good language so everyone else should just sit down and shut up [2].

[0] https://news.ycombinator.com/item?id=22821447

[1] https://news.ycombinator.com/item?id=22824899

[2] https://news.ycombinator.com/item?id=16510267
I totally agree. People often argue that photoshop has been around forever and so on. Creating sophisticated pornographic video of any individual is brand new. Creating an app that realistically removes clothing from any photo is new technology.

I actually just now came up with an idea for a browser plug-in that removes clothing from every image loaded.
https://web.archive.org/web/20221004103900/https://www.goodt...
Hmm, I switched to Dvorak in about a month… you just use it till you stop having to think about it, no?
I love this feature on my pixel, but I always have to turn it off when I'm expecting important calls from places like medical offices and such.
Half gallon is not a look or particular container design. It is a measurement of fluid volume

I see the same tetrapack design used for quarts, do you call those "half gallon" as well?
That's what I'm getting at though. There are imagined criteria for these tests, but what has the real life situation been in actual emergencies? Have there been enough real life evacuations where getting everyone out within 90 seconds vs 3 minutes was the difference in saving many lives?
I mean, bad reception isn't magic... you're just a little too far from a tower. The signal boosters are a cheap way to strengthen that a bit if you wanna try. Buy them from somewhere you can return them easily (Best Buy, etc.) in case it's not enough.

Otherwise, that's what Starlink RV is for! You can buy it, use it for a while, and then pause/resume the service whenever you want. Good investment if you want to do the nomad thing every once in a while.
> This sounds like a good opportunity for a start-up that uses AI/ML to answer your calls and screen them using a human-sounding voice.

I think for 95% of incoming callers, this is functionally equivalent to just not picking up. If I call someone and suspect I'm talking to a robot, I'll just hang up.
Sure, but when you look at the last gen of videos, they looked like random blotchy noise with an almost distinguishable subject. These are quite clear and a human could likely guess the prompts used reasonably well. They are crap compared to real video but a remarkable improvement from AI video a month ago.
A simple scenario that comes to mind is that given a letter, it's now easier to tie it back to the stamp's point of sale. "Who purchased this stamp?" is a very hard question to answer in their current (essentially fungible) form. Adding barcodes makes this much easier.

This assumes that stamps are scanned when sold, to tie their barcodes to the purchaser. That may happen. It may not. But clearly the more scans a stamp gets increases the tracking resolution for a given piece of mail both after AND before mailing. This "before mailing" part is new and opens the door for a much higher level of surveillance.
> Both the RoC and the PRC agree that mainland China and the island of Taiwan are "China", and they both agree that one government should be in control. They just disagree on which government that should be.

That’s not entirely true; the coalition led by the KMT in Taiwan agrees with the PRC on the One China issue, the (currently governing) DPP led coalition does not and views Taiwan as already independent and territorially distinct from the PRC, and does not accept the One China idea.
You can easily check in your CI that your files are ASCII (code should probably be) with file(1). There is probably an off-the-shelf-tool that can validate that all characters are printable, ASCII or unicode.
Can we please stop calling everything OSes that are clearly not?
I don't think google is responsible for the content created any more than Windows is for running the program or your ISP is for serving it. Promotion and discovery are the places where moderation and responsibility come in.
This is great. simple, no fuss.
I’m absolutely not gifted when it comes to manual crafts, but I’ve found having the right tool for the job brings me from shamefully incapable to acceptably competent.

For example I got into book binding a while back and while I started freehand I quickly built a jig and it vastly improved the quality of the work.
Did anyone have an archive? :(

This kind of censorship makes me sad - I miss when the internet was genuine and mean.
> The protocols are meant to allow tracing which network originated a call

... to make tracing easier

We could always trace the calls - you just had to ask each telco in the path to provide those details. There realistically wasn't any enforcement to do that though.
I like this system. This is also somewhat similar to the bullet journal system, but in a "to-do list" context. Every month you write down your to-dos. The next month you cross off those that no longer matter, and move forward those that are still relevant and pending.
Is it possible that their editor provided ligatures but they didn't know about those and so assumed it was actually a character in the source?
I originally came across this news from a different article source which said that such big carriers have already made the changes necessary to be in compliance that these smaller companies have not.
By the time they reach retirement age, Raspberry Pi will be back in stock
Link doesn't load.
I suggest you look into Python's Poetry package manager.

There's some ways to keep multiple isolated Python environments around on the same OS (and Poetry can help with that, too). But I would suggest that you just stick every Python program in its own dedicated docker container, if you can get away with the overhead. (There are some ways to make rather slim containers.)

Of course, it doesn't have to be docker. Any other containerisation or VMs also work.

In general, I found it a good idea to keep the host operation system as small as possible, and stick everything into containers that you can upgrade separately.
There are also companies saddled with tech that was mainstream but is no longer. Adobes Flex was a great option until it was killed. Perl was everywhere now it's almost esoteric to find a greenfield project in Perl.
Still far better than Apple for open
Don't have one to hand, but it's basically walking a tree depth first, where sibling nodes are the choice points.
Is it a rule that enterprise software sales pitches must be really hard to understand? Maybe I’m tired but what is Ubuntu pro - a longer lts?
Yes. You can't make cheating impossible, but you can make it harder to pull off.
Tax complexity, time zones, and languages mainly.
AlphaTensor: DeepMind's AI for Efficient Matrix Multiplication Algorithms
As long as the wings are still attached, the 4 engines not working is not the end of the world. Me not getting what I want right the F now, is!!!! ahhhh! /s
what's the best reaction to outsmart their strategy?
> the fact that no single group/party/cabal/whatever has managed to disproportionately cheat

there's at least one feature about elections in the US that makes detecting cheating pretty difficult. there's no good way for me to verify that my vote was recorded a specific way subsequent to casting it.
The priests tried to protect the entire population from eternal damnation. They were fighting for higher stakes.
The example of appendix A is a PoLA violation (Principle of Least Authority).

It has source code in the container. Use an external build server.
All airliner safety features are objectively pretty pointless given that cars remain legal and routine with like 100x the lethality. But yes, there have been at least a handful of cases where some but not all of the passengers were able to get out of a plane in time, particularly when the plane caught fire on landing (e.g. Air Canada 797).
No overarching evidence? Are they for real? I feel like there have been many studies over the years into the negative effects of social media on children. Here is one i just googled: https://health.clevelandclinic.org/dangers-of-social-media-f...

I would imagine that many of us here (being this is HN) are off social media like FB or Twitter and have felt the positive impact this has made.

Anecdotally, my wife was a high school teacher for 15 years and saw the effects of smart phones and social media first hand with her students and how behaviors and issues changed as these became more prevalent.

When we were younger, if you got bullied at school it stayed at school for the most part. Now, kids carry their smart phones, access social media, and the torment continues there. Hell, even if you’re not bullied, you’re still exposed to the facade of success and beauty online and made to feel inadequate.

I cannot understand how there is a question still about negative effects or a statement like that in a BBC article and it makes me question their angle.

I feel that we’ll one day look back on this period of giving children smart phones and social media access like we look back on smoking.

We’re talking about the smartest minds in tech building devices and apps designed to engage and capture as much attention as possible and we’re letting kids feed into this system they are absolutely not equipped for - most adults aren’t either.

There are plenty of ‘dumb’ devices out there for kids that will give parents what they might need to communicate and keep an eye on their kids should they choose to.
Someone shot someone with a cheap gun, the cat is out of the bag, gun regulation is pointless, let's let the assault rifles go free is the most american thing I've read all day.
What's the difference between China, India, and the early western country vs these countries then? Why is this unique to a limited subset who have the potential become a big player in manufacturing?

Nigeria is projected to have a population in the top 3 (china, india, then nigeria) in the next 30yrs. The population excuse will soon not be good enough anymore.

https://www.thisdaylive.com/index.php/2022/08/12/fg-by-2050-...

A strong culture of corruption and self-interested politicians is pretty common but I feel like there's some lack of proper messaging or a lack of simple interest in having big goals. There seems to be a defeatist culture in many of these places, where they are so used to the status quo they forget they still have a choice if enough people cared.

Maybe brain drain is the true killer in our global economy. The smart kids don't even bother, they just move to the west or help India/China.
Step 1) Withdraw cash

Step 2) Search ‘delivery’ in your favorite maps app

Step 3) Call whichever restaurant looks decent to you tonight and place an order

Step 4) Receive delivery, give cash tip

You’ll eliminate the middleman fees on both sides of the transaction while at the same time supporting the food businesses that are most local to you.
It would be against chess.com's interests to name those GMs, wouldn't it?
2c -> Fact!
I know one of the early execs and he is a total prick. In the early years they changed the driver pay to a new scheme and after all the drivers had already been paid they decided it was too much and tried to claw it all back from them. He was trying to figure out if they could sue the drivers to get it back.
This post/share nerd-sniped me so bad. I went down a real rabbit hole reading about Linux inotify. The man pages are so well written. Example: https://man7.org/linux/man-pages/man7/inotify.7.html

I also found this Cygwin mailing list post by Erik Blake: https://cygwin.com/pipermail/cygwin/2018-May/237069.html

And patches to make Cygwin support inotify_init() and friends implemented on top of the Windows native API are certainly welcome.

I think I just found my next personal project...
For x86/x86-64, take a look at https://www.agner.org/optimize/calling_conventions.pdf
I'm doubting these are actual fonts. All we have is two characters made from SVG paths. The blue g is quite distinct, but whatthefont (https://www.myfonts.com/pages/whatthefont/) doesn't return a match. I think they were just illustrating the term.
Wow feels like we just witnessed a microcosm of the wider market forces.
How so? You can not profitable sell an Android phone without the closed sourced Google Play Services in any country outside of China any more than you can sell a phone running Darwin.
I know multiple companies doing the same thing -- it's really great to use JSX that most JS shops will already know instead of introducing a whole other template language that (typically) have a brand new syntax, weird logic-in-html, and/or poor componentization.

Lot's of cool follow-on value-adds you can do once your emails are in JS like this. Like writing test cases to validate that none of your emails are susceptible to HTML injection. Or writing tests about never exceeding Gmail's 100kb limit. Or rendering your emails in Storybook.
All subsea cable threads need a link to:

Mother Earth Mother Board

The hacker tourist ventures forth across the wide and wondrous meatspace of three continents, chronicling the laying of the longest wire on Earth.

https://www.wired.com/1996/12/ffglass/

https://en.wikipedia.org/wiki/Mother_Earth_Mother_Board

https://news.ycombinator.com/item?id=8242682
You need a VERY good reason to use anything except PHP. Perhaps Rust. These technologies are good enough to get almost anything done these days.
I worked previously at a company that was trying to do a predictive analytic, ML on top of Salesforce (to qualify and score leads, generate new promising leads, etc). The task was extremely difficult and from what I saw people were getting some marginal improvements from ML itself. Most companies at the end were interested in basic (but quite hard things to do right) - cleaning, dedupoing, enriching, generating more leads based on ICP, etc.

Not sure if in this case it's something different but my take from the past experience it's hard since data is noisy + closing the deals depends on a human as well and these tools don't take that into account usually.
I wrote a Sudoku solver (my go-to "learn a new language" project) in Zig and the compile-time features were extremely useful.

entirely at compile-time, I was able to generate lookup tables for "given this cell index, give me the indexes of the cells in its row, column, and box". and I simply looped over that for each board size I wanted to support, from the standard 9x9 all the way up to 64x64.

another useful feature was support for arbitrary-sized ints [0] and packed structs [1]. for a 9x9 board, a cell can be represented with a 9-bit bitfield for possible values; a uint4 for the actual value; and a single bit indicating whether the value is known. Zig will happily pack that into a struct that occupies only 16 bits, and handle all the bit shifting & masking for you when you access the struct fields.

this meant I was able to represent the state of a 9x9 board in just 162 bytes - a flat array of those packed structs. and the exact same code could operate on the ~28kb of state needed for 64x64.

0: https://ziglang.org/documentation/0.9.1/#Primitive-Types

1: https://ziglang.org/documentation/0.9.1/#packed-struct
I think a good litmus test as to whether a thing is actually desired by consumers is how small the fine print is. Whether a person wants or does not want homeopathic sugar pills or organic food or whatever, they almost certainly want a label large and clear enough to distinguish the different sorts of goods. Stuffing that into fine print only serves to increase profits by deceiving people into paying more than they think they are for items less valuable than expected.
Is this true? That's insane! And who benefits from all this?
Given OpenAI’s extreme restrictions on Dalle 2, can anybody point to any harm that has been done with Stable Diffusion in particular since it launched? Even a single instance. Because I have only seen strictly positive coverage of people having fun with it.
Worthwhile read, this sounds like it would be a genuine loss if they can’t win the fight to keep the land.
You have it backwards. Manufacturing iPhones is much easier than designing iPhones. Apple can manufacture somewhere else, but China can't Apple somewhere else.
Any screenwriter working on a horror film that isn't looking to use this technology for the special effects is missing out.
This is a good thing in the long term. Credit cards come with such outrageous fees that are baked into product prices. Consumers get hooked on the bonuses that they are basically just pre-paying for every time they swipe.

Getting back on cheaper debit cards will put everyone ahead, even if we're losing out on those sweet cash back rewards or travel points.
you are aware the gulf coast has a lot of ports for imports and exports. most gas comes out of "flyover country" and ends up at gulf export sites (see henry hub) and that's the big input to producing ammonia fertilizer.
> you are correct that the ruling party appears to have wide popular support

And where they don't have that support, they "buy" elected reps: https://www.google.com/search?q=bjp+buy+mp+mla
Only someone who has no real understanding of org-mode would say such a thing.
Eh. You can’t really say that because those (electricity and Covid shut downs) are short term disruptions. Apple is not moving suppliers on short term disruptions.
To give a real world example: Imagine if America had a system like this in place when the Zodiac killer was active in California. A prolific writer of letters to the press, all of Zodiac's barcode-stamped envelopes would open up new potential leads in answering questions like "when was this stamp manufactured" and "where was this stamp originally sold".
1) multiple member constituencies for minority districts might actually solve a lot of problems

2) there is an section in the 14th amendment which allows states’ electoral votes and their Congressional representation to be zeroed out if they don’t play nice (basically the same as territories)