skysight-inc/HackerNews huggingface dataset:
Yesterday I told ChatGPT:

> We're going to write a program in a "new" language that is a mix of Ruby and INTERCAL. We're going to take the "come from" statement and use it to allow "hijacking" the return of a function. Furthermore, we're going to do it conditionally. "come from <method> if <condition>" will execute the following block if <method> was executed and <condition> is true. In <condition>, "result" can be used to refer to the result of executing <method>.

And that was enough to get it to understand my example code and correctly infer what it was intended to return.

Given it took that little, I don't think you need much code in a new language before you have a reasonable starting point as long as you can give examples and document the differences, and then use that on a few large projects that has good test suites, and work through any breakage.
There are good sibling explanations by @ta20211004_1 and @HarHarVeryFunny, but if I can try in an additional way:

Imagine you wanted to go from words to numbers (which are easier to work with mathematically), like you wanted to assign a number to some words.

How could you do it? Well you could do it randomly: cat could be 2, dog could be 10, sweater could be 4.534 and frog could be 8.

Not super useful, but hey - words are now numbers! How can we make this "better"?

What if we decided on a way to put words on a line - let's say we ordered words by how much they had to do with animals. Let's say 10 meant it's a very animal-related word, and 0 is very not-animal related. So cat and dog would be 10, and maybe zoo would be 9, and fur could be 8. But something like sweater would be 1 (depending if the sweater was made from animal wool...?)

What now? Well what's cool is that if you assign words on that "animal-ness" line, you can find the words that are "similar" by looking at the numbers that are close. So, words whose value is around 6 are probably similar in meaning. At least, in terms of how much they relate to animals.

That's the core idea. Ordering words by animal-ness is not that useful in the real world, so maybe we can place words on a 2d grid instead of a line. Horizontally, it would go from 0 to 10 (not animal at all - very animal) and vertically, it could be ordered by brightness - 0 for dark, and 10 for bright.

So now, bright animals will congregate together in one part of the grid, and dark non animals will also live close together. For example, a dark frog might be in the bottom right at position (10, 0) - very animal (right end of the x axis) but not bright (bottom of the y axis). Any other word whose position is close to (10, 0) would presumably also be animal-y and dark.

That's really it. The magic is that... this works in thousands of dimensions. Each dimension being some way that "AIs" see words / our world. It's harder to think about what each dimension "is" or represents. But embeddings are really just that - the position in a space with a huge number of dimensions. Just like dark frogs were (10, 0) in our simple example, the word "frog" might be (0.124, 0.51251, 0.61, 0.2362, 0.236236, ..............) as an embedding.

That's it!
16- and 17-year-olds can work and allows them to serve alcohol

Teens don't really have smaller hands than adults. This bill is sane. Allowing kids to work for construction is going to improve lives more than blindly pushing everyone regardless of desire or aptitude in college and graduating them with a worthless degree and a half mil in debt. Let teens work in roofing and get some skills that the world actually needs.

Give me a rational argument please, not just an appeal to emotion.
It's interesting to see them say 2030s now. When the plans for "Ariane Next" first came out, they were aiming for 2028. Sounds like the program has already slipped quite a bit.

Ariane Group is going to be in for a rough time every year beyond ~2026 that they delay. By then most of Starship (SpaceX), New Glenn (Blue Origin), Terran R (Relativity), and Neutron (Rocket Lab) should be operational - all of which will at least reuse the 1st stage.

Of course, they'll be able to fall back on institutional payloads to maintain a minimum level of funding. But that's not a great place for the program to be in terms of funding. Or politics.

This whole situation is really tragic. The design of Ariane 6 was finalized in 2016 - after SpaceX had successfully landed a Falcon 9 for the first time. While I realize that that would have been quite late in the design process for the rocket, it really shows the weakness of Ariane Group when it comes to assessing the competitive landscape and making difficult decisions.

To be fair, it is hard on the king to wear the crown for too long. Europe and Russia had a long run; we'll see how well SpaceX carries the burden.
I said it was the authentic Chinese experience. Would you say the twenty some million denizens of Shanghai had an inauthentic experience?
Exactly. A few months ago I threw out all non-specialty socks (I kept some boot/dress socks) and bought a few dozen pairs of the same sock. Keep them all in the same bin, don't have to fold or match socks ever again. One of the highest-alpha changes I've made.
LOL... I find your naivete ... saddening.

I grew up in India. I have seen first hand how shitty INC and the Gandhi family are.

Tell me something: why don't they have democracy in INC itself? Who made the Gandhi family the head of INC? Why isn't there any challenger to them? The last person who challenged them in a tiny fashion was Narasimha Rao, who was cast away like a leper and died unsung, even though he was an ex-PM of India.
> A seasoned judge would have a better ability to parse the case law and evidence to make this determination.

In many places the accused has the right to request a trial by judge. This can be done if, for example, the charges are so shocking that the accused feels that a juror cannot be trusted to be impartial.

https://en.wikipedia.org/wiki/Bench_trial
Ayanza – AI-Powered Notes, Spaces and Team Management
I have tried a lot of wireguard installation solutions, this one is pretty great.
The comment I quoted claimed that for a language to take off it needs first class Windows support.

If we’re going to limit the discussion to languages which “can be used for writing Mac, Linux, Windows apps”, then the argument is pointless. By definition, any language which can be used to write Windows apps has Windows support. That’s circular logic.

To address the argument, it only makes sense to discuss languages which don’t have¹ first class Windows support. Everything else is irrelevant.

¹ Or didn’t but were still popular at that time.
Without Elon, SpaceX could surely succeed as a business, making good money from launch services and Starlink.

They wouldn't get to Mars, though. Starship needs the 'recklessness' of being prepared to fail rapidly, repeatedly, dramatically, and incredibly publicly, while learning from each failure.

So far they've managed to ensure that no humans have been injured during launch/landing failures (although the delayed flight termination of the recent launch was worrying, and should probably be more of a concern than the launch site damage)
It's just not possible to be successful in Magic doing that because the meta would quickly adapt to exploit whatever decks they had built automations for and make them losing players. Also, most trophy leaders in mtgo are well known people who all hang out in the same Discords, so we know exactly who they are.
N95 works when worn nearly 100% of the time. 99% of the people I saw during this time were wearing cloth/surgical/non N95-masks that clearly don't work based on overwhelming evidence.
>my hunch would be that talking over the telephone is stressful and causes the high blood pressure and it doesn't matter that the device is mobile.

if this is the case, then how do teenage girls spend hours talking with friends on the phone? I have doubts on this hunch
EU has been self-sabotaging for decades, but it usually is just caused by economic liberalism / pragmatism. Although there is of course a strong connection between european leadership and the "Atlantik Bruecke" (atlantic bridge) which is an extremely powerful and influential atlanticist organization, it isn't always failing in favor of US economic interests. Germany did surrender its advantage in solar energy technology to China for example, there is no need for any explanation other than (neoliberal) ideology and incompetence.

https://www.cleanenergywire.org/news/last-major-german-solar...
Yet somehow France manages to stay below the EU mean with 70% nuclear in the mix.

The merit order article you have linked is typical lobbist brainwash as to why your country needs to depend on gas when the sun doesn't shine and the wind doesn't blow.
Even if you think HN and Tiktok are similar in content, your point here totally glosses over that one is a small community of people working on startups and is not monetized and does not employ a variety of psychological tools to keep you engaged (it actually has anti-engagement features!) and the other is an enormous, psychologically abusive, basically state-affiliated monetization machine that also collects a shit ton of data on a much larger group of people!

Like I get it, you like TikTok, but don't pretend that the quality of the content is the thing under discussion here. That is a really weird thing to do.
It'd be amazing if we got to Paris style density in half of the top 20 cities in the US. I just haven't seen great ideas or plans to transform the heavily car dependent sun belt cities into denser places.
Cool story, not my point. I'm not questioning the validity of what you're saying or the existence that people think what you're saying, but how you jumped straight to ascribing those views to the original commenter. You can make your own point without the accusations, is my point.
That should be a valloc or aligned_alloc for it to actually be page-aligned
Hello, Perceptron: An introduction to artificial neural networks
Quote:

The purpose of this article is to give programmers without much exposure to machine learning an understanding of the key building block powering generative AI: the artificial neuron.

Toward that end, this article has three goals:

1. to implement a perceptron – the simplest artificial neuron;

2. to train perceptrons how to mimic AND, OR and NOT; and

3. to describe the leap to full-fledged neural networks.

(edit: formatting)
Also https://lmql.ai/

I think LMQL is the best example I've seen of the "forcing the LLM to walk a certain path" technique. It's a DSL written in Python for Python though, so it kinda constrains it's utility.
It takes a spy to know a spy.
There was something: https://en.m.wikipedia.org/wiki/Croatian_War_of_Independence
Library Genesis seems to continue working… thankfully!
RIP. I hope it's not related to the work env...
Probably because the research code is not as nice as one rewritten from scratch anyways, and it's using internal data sets / APIs.

They just want to get onto the next research instead of taking time to publish a clean open-source implementation, which can (and will) be done by somebody else anyways.
I think it is unlikely we have a conspiracy so vast, across a ton of companies that they put up fake legal fights, have fake warrant canary notices ... and nobody ever leaks out that they're all fake.
It's possible the folks who made this demo – which was created years ago – didn't do an a11y pass. Something things need to be wired up for specific scenarios.
Maybe if they actually spent that money on Firefox instead of the pet social project of the month it would go a little further
Agree that the 2016 THAAD brouahaha probably wasn't a major factor. Samsung reached #1 in China smartphones sales in 2013 and already quickly dropped to a small single digit a few years later well before the THAAD crisis kicked in 2016.

I think it's convenient to blame THAAD for the souring relation between South Korea and China, but it's really ex post facto. I think it's partly b/c many still refuse to believe that Samsung was forced out by China to make room for domestic smartphones makers such as Huawei, Oppo, etc.. as part of their well planned industrial policy to protect and nurture their own domestic competitors. The company managed to remain #1 in globally well over a decade now in spite of this. There were also other South Korean companies such as Hyundai/Kia who once topped Chinese auto market with 10% of the market share, now down to a dimunitive number -- their global rank increased from #5 to #3, only after VW and Toyota during the same period that they were outsted. As pointed out in the article, Apple bribed $275+B their way to stay in the game.
Of course it's not a requirement. The same way a knife isn't required to spread butter - you can use a spoon. If you were to attempt to keep up with say, javascript the way you used to learn you'd be left in the dust.

And as tge other person says, how do you define social media? Forums?
It's not that simple though. For example, my son is 11 and wants to work. He wants to earn more money than I can find house chores to pay him for. He could absolutely help in an office or retail situation. Neither my wife nor myself have encouraged this. He came up with it all on his own.

I went to school with several kids who were gifted mechanically. They suffered in school. It wasn't just not beneficial. School was directly harmful. Had they been able to spend less time in school and more time working, they would've been much happier. Instead, school became a kind of purgatory they had to endure.

There are also situations in which kids are in a bad home environment but are essentially bonded to their parents by the fact that they cannot work. To be 100% clear, this bill sucks. I'm completly against it. But there is a form a child work reform that should happen IMO.
LLM Logic Tests
I don't use TikTok but I don't know why this is being downvoted. It seems reasonable to hear from people in order to understand the reason an app is popular.

There is nothing downvote-worthy about this comment. I really appreciated reading this perspective, since pretty much all I ever hear are the reasons TikTok is bad.
I see advertisements as theft of my attention, and highly unethical. I strongly oppose them.
There's something magically target-rich about anagrams.

My full first, middle and last name is long enough with common letters that there are several uproariously serendipitous and embarrassingly obscene (even for me) anagrams of my full name.

So bad I would never post them here. Much worse than you could possibly imagine. Take my word for it: you don't want to know.

The only advice I'll share is that parents should carefully screen their baby names with the advanced anagram server, and choose short names with unusual letters that have lower chances of backfiring.

https://wordsmith.org/anagram/advanced.html
TLDR; Go to chrome://flags/#organic-repeatable-queries and set it to Disabled, in order to avoid this.
Good summary.

Just not clear what the point is -- I mean aren't all these points obvious to everybody? Nobody actually thought IBM was doing layoffs because AI, or that politicians have any understanding of AI. Just seems like venting.
The JVM can elide most of the Java bounds checks because it has much more static information from Java class files than is available from C code. Once you're emulating a memory-unsafe language, you lose most of those static semantic guarantees you get from valid Java code. In the general case, in a memory unsafe language, statically removing bounds checks is equivalent to solving the halting problem.

One could definitely add some extra load-time static analysis to the JVM, similar to what the NaCL / PNaCL did at binary load time to greatly increase the opportunities for JVM bounds check removal. However, this would need some extensions to the class file format and/or some new class file annotations to expose some more static information than the JVM has for vanilla Java class files.

In addition, there are also plenty of ways one could optimize away some bounds checks based on undefined behavior, which would result in a standards-conforming C implementation, yet break tons of C code in the wild. (There at least used to be a C to Go transpiler that implemented C unions this way.) For instance, it's UB to write to one field of a union and then read another field, so it'd be legal for a compiler to implement a union as a struct. However, there's plenty of code in the wild (such as many nanboxing/nunboxing implementations) that rely on union fields occupying the same physical addresses.
Not sure if this will add much, but I've never seen any negative comments before this - perhaps because I'm not really in this space (no pun intended) and don't follow these events. I saw plenty this time around.
I guess you don't understand free speech. Fighting a defamation case with powerful lawyers besides you in a court of law and losing it and then appealing it in a higher court, all while being out on bail and able to plan and campaign actively in an ongoing state election is the definition of justice system working fine in a democracy.

> Demonetization? 5G Spectrum? PM Cares? are not scams?

Explain please. I'm genuinely curious to know what these scams are.
Gmail ads are getting more annoying
Not banned, but sued out of existence (not a meaningless $100m fine). Breaking app store policy gets you banned; breaking US law gets you eliminated.

edit: for US companies, at least
Golf carts do not have adequate suspension for roads. They're designed for wide-open, mostly flat golf courses, covered in grass. They don't do well in a roll-over, either. The size is similar, but the construction is quite different.
One needs terabytes of storage and hundreds of servers and other other needs few megabytes of storage and relatively miniscule server.
Somehow V conveniently left out its closet competitor D language where DMD, D's reference compiler can compile itself and the entire standard library in less than 5 seconds with parallelism turned off [1].

[1] Ask HN: Why do you use Rust, when D is available?

https://news.ycombinator.com/item?id=23494490
Could you let us in on your insider sources who know what happened to them during that time?
Yeah I imagine the average dosage of RF across populations has been increasing enough overtime along with rollout of new technologies that you’d be able to correlate some function of adoption of these technologies to population level effects if there was any real significance.
Many people in these comments are saying "this is stupid, why not just use a bicycle?" and I just can't fathom this line of reasoning.

The point of this car is not to replace bicycles. It's to replace big cars.

Smaller, lighter, slower cars on the roads will make cycling safer. This is a net positive for bicycles and e-bikes and cargo trikes and the rest of the fun things that you are suggesting. This is not an all-or-nothing decision. If we don't support car alternatives, we'll be stuck with cars.
BO has a more traditional approach to design than SpaceX's iterative process. They spend more time on simulation and analysis than on real world testing. Right now it appears that the SpaceX approach returns better results though they do have to deal with the peanut gallery using tests that end in explosions as an opportunity to attack the company instead of acknowledging that it's part of the process. If Blue Origin has a rocket explode, that's a much bigger blow to them as RUDs are not a significant part of their process. It also means their process is far less observable to outsiders, so a year or two from how, they might have New Glenn rockets in regular operation and for most, that will seemingly come out from nowhere.
Russian mercenaries vow to quit Bakhmut, Ukraine says they are piling in
https://archive.is/pk36r
Many people on this site seem in favor of these age-based government restrictions on working. But at the same time, it seems they also opposed age-based government restrictions in many other areas like access to particular kinds of online content. These positions seem like a contradiction to me. Why do they think that it is reasonable for the state to restrict a child's ability to work but not their access to online content?
Poor Charlie’s Almanack
Clint Eastwood

Old West Action
In this case it's the service provider. You are consuming a free service, which costs money to run, in return for adverts
Giant blobs of seaweed are hitting Florida. That's when the real problem begins
Competing theory. External life events which are correlated with stress are also correlated with increased number of phone calls.

I’m gonna go out on a limb and say my theory is more plausible on its face.
Haha ok washington post this is why you are dying.

Allow teenagers the option to work more? Oh no we are "rolling back labor protections for children"

Allow teenagers to get sex hormones that will damage them for life? "Trans teens benefit" !

https://www.washingtonpost.com/business/trans-teens-benefit-...

The washington post is a joke.
under Features in [1]:

* Doesn't need to be a Raspberry Pi™, It runs on any x86_64 system

[1] https://pivpn.io/
> Their only aim is to obtain complete control. Dissent is not allowed.

Terrorism is not allowed. FTFY.
Is the point of getting users to log in to give them better search results or better targeted ads? My impression is that the two have always gone hand in hand at Google.
Google isn't evil they wouldn't do that

/s
On-demand delivery services hobbled an American city
> I run wg-easy https://github.com/WeeJeWel/wg-easy for this sort of thing. I use the docker container, and it's great. "Just works".

This looks great, thank you! My current home router(s) fortunately support Wireguard natively, but I'll look into this if I'm ever again forced to use a shitty CPE.

> I'm pretty dismissive of ARM chips for homelab stuff at this point. There's super cheap minipcs with "real" processors [...]

What makes an ARM SoC a "non-real processor"? I'm typing this on a laptop with an ARM CPU, and it's the fastest hardware I've ever worked on.
Heh... PDQ Bach album.

https://en.wikipedia.org/wiki/WTWP_Classical_Talkity-Talk_Ra...

> Towards the middle of the repeat of the Canon, Blondie suffers a nervous breakdown, being the result of an overdose of Pachebel.

It's available via Streaming:

Amazon https://www.amazon.com/music/player/albums/B0BLXWCHQS

Apple Music https://music.apple.com/us/album/p-d-q-bach-classical-wtwp-t...

Spotify https://open.spotify.com/album/5gLmlAeNfrfzJJffMbdM3V?si=aiK...

(And a YouTube channel with it: https://youtu.be/x6qbIGJwuqw )
"Whataboutism" is not a logical fallacy, in fact it is the opposite.

"We need to do X because A is bad because it does Y"

"But we also do Y, shouldn't we also do X for us?"

Logic says yes. "Whataboutism" was invented to kill basic logical inference, in the context of the bipolar Cold War era. Using that term to kill discussion and browbeat is anti-intellectualism, pure and simple.
Fox news was already considered entertainment and barred from news packages.

This recent complaint came from Tucker's weird Canada is under a dictatorship documentary.

Given he spread blatantly false and harmful information, the CRTC is forced to review the complaint. People need to read beyond the headlines.

This is the regulatory framework at work.
I’ve been curious about the performance gap here – you can open htop on a pi 4 and see that CPU utilization is relatively low, ~33% out of 400%, something like that, and yet some operations seem like they take 5-6x longer than they ought to on a “normal” computer.

Is it all down to the file system? Is the CPU just in interrupt overload all the time? I wish I had a better understanding of the issue here.