MurphyA/hacker-news huggingface dataset:
by TheCapeGreek | 2025-08-20 05:35:40+00:00
I think neither StackExchange nor HackerNews are probably the right place where you'll find help with this. I'm sure there are plenty of Laravel peeps lurking around here, but HN's format isn't great for code review.

Find dedicated Laravel communities like Laracasts, Larachat Slack, the official Laravel Discord, your local tech community group's #laravel or #php channel.

To your question: Will this code get you a job? No, it's a super basic example. You seem to know that demonstrating more advanced concepts will do you good.

Basically, a snippet of code isn't enough to get you hired. Yes, you've done the absolute basics of MVC with Laravel, and split logic out into a Service class which can be handy.

What you need to do is put the entire project on your Github. Use everything you're learning in the app. Then, make sure the readme is up to date with what the project does, and add some screenshots or a recording to the readme of how it works. You don't have to build the next Amazon, but a basic "fake" e-commerce app and similar is good enough to demonstrate what you're doing.

Make sure you commit code frequently and logically (commit groups of code by the feature you've added), so that your progress can be seen. Otherwise it can also look like to just copied and pasted code into the repo.

All that being said, the sample you've built is decent for junior work! If you want to keep levelling up, I recommend Laracasts (plenty of free content on the site and Youtube channel) and Laravel Daily to start with.

The other poster is right that understanding the fundamentals of your tech is arguably more important than learning a framework, but at this stage in your career I think it's more of a tomato tomato thing. You can start with a framework to be productive and then learn more about the fundamentals over time as you need to. Don't get bogged down in building a perfect understanding of PHP and associated technologies if it's resulting in you not getting anything built.
by swombat | 2025-08-20 05:35:41+00:00
Feels like a misleading headline. The author created another templating language alternative to ERB, found that it was slower than ERB, then optimise it until it was roundabout as fast as ERB given a relatively simple template.

The author then appears to draw the wrong conclusion:

> What I find most interesting about the changes I’ve made to code generation in P2, is that the currently compiled code is more than twice as fast as it was when P2 first came out, which just goes to show than in fact Ruby is not slow, it is actually quite fast, you just need to know how to write fast code! (And I guess this is true for any programming language.)

I love Ruby, but it is still a slow language on most benchmarks. That's ok. For most webapps, the bottleneck is not execution-time performance, it's the speed and joy of writing the code. Functionality that never got built because it was too annoying to build is infinitely slow. But there's no point in pretending Ruby, compared to, say, Rust, isn't a slow-as-molasses execution environment. It is. It's ok. It's optimised for developer happiness, not speed.

And yes, even so, you can write slow Ruby code and fast Ruby code. Again, which one makes sense is contextual. But it doesn't make the point that "Ruby isn't slow."
by czhu12 | 2025-08-20 05:35:46+00:00
An open source project I was working on was on the front page for about 2 days:

https://news.ycombinator.com/item?id=44292103

And heres the analytics from that time:

https://imgur.com/XGsiot4

I don't reallly bother tracking sign ups as its a totally free app, but from then to now, it looks like i've picked up about 1600 new accounts.
by troupo | 2025-08-20 05:35:57+00:00
This was mentioned in the discussions and are an easy search away. Which means that googlers in their arrogance didn't do any research at all and that their counter underrepresents data as explicitly stated in their own document

https://www.loc.gov/standards/mods/mods-conversions.html

https://www.loc.gov/preservation/digital/formats/fdd/fdd_xml...

And then there's Congress: https://simonwillison.net/2025/Aug/19/xslt/
by Teknomadix | 2025-08-20 05:36:43+00:00
Similarly, the standard definitions of intelligence break down when we look at borderline cases like simple algorithms, collective insect behavior, or AI systems.

Viruses particularly exemplify “intelligence” is better understood as a spectrum of information-processing and adaptive behaviors rather than a strict threshold.

The issue seems to me that neither concept is wrong, but that we humans keep trying to impose absolute definitions on phenomena that exist along continua, blurring into one another in ways that resist our neat little categorizations.

I would argue viruses exemplify some of the highest evolved intelligence in our world.
by tbrownaw | 2025-08-20 05:37:15+00:00
No, fountain pens have a "cool" factor and can be made for decorative stuff, but that's it.

Sure the super cheap bic pens that come in boxes of 100 aren't great, but that's because they're cheap (besides being inexpensive). Something like those G2 gel pens that are also available everywhere for not very much (fairly inexpensive, but not pejorative-cheap) these days work just fine.
by chickenzzzzu | 2025-08-20 05:37:26+00:00
I definitely appreciate that a percentage of so called "employees" are actually just full fledged Chinese nationals, living permanently in China, paid a salary to pretend to be an American who had their identity stolen.

But there absolutely is also a non-negligible number of Chinese and Indian nationals, who have some type of visa status in the US (especially a green card) who spend many months in their original countries making $200,000 or more per year while living like royalty in their home countries :)
by card_zero | 2025-08-20 05:38:16+00:00
Let me rescue it, then. It's a valid point that other species don't have literature. It shows that they don't have ideas. If they did, it would be really obviously evident. Instead we have to look hard for traces of memetic transmission of idea-like behaviours involving sticks and leaves, and rocks and shells, and calls and signs. These memes don't go anywhere, and the animals aren't creative. If they develop, it's by accident.
by phendrenad2 | 2025-08-20 05:38:54+00:00
I think this might just be a special case of Type II. By latching onto the latest hot issue (like the Linux Foundation getting into Vaccine Passports... or, less subtly, the Firefox organization rebranding as a "global crew of activists"), you get to collect donations from government and public grants related to the issue. And corporate donations, too, because your good "ESG score" transitively applies to your supporters.
by somenameforme | 2025-08-20 05:39:04+00:00
Of course it's not the only way ideas spread but it is the most relevant. Parents' religion (and many other values) are, by a very wide margin, the most predictive traits for determining what those traits will be in their children.

This is one (of many) reason why having children is so rewarding. The idea of 'transferring ones consciousness' into something is nonsense - at best you die and then have a chatbot that does a questionable imitation of you. But with children you directly transfer many of your genetic and physical/mental characteristics, and you can then instill your environmental characteristics into them. It's about as close as you can realistically get to 'transferring your consciousness.'

Interestingly this, like many things, also only becomes even more true as we age. Depending on your age, you might find yourself having more similarities with your own parents than you might care to acknowledge, depending on your relationship with them.
by adrian_b | 2025-08-20 05:39:18+00:00
However using compare-and-swap as the atomic operation for implementing multiple events can be very inefficient, because it introduces waiting loops where the threads can waste a lot of time when there is high contention.

The signaling of multiple events is implemented efficiently with atomic bit set and bit clear operations, which are supported since Intel 80386 in 1985, so they are available in all Intel/AMD CPUs, and they are also available in 64-bit Arm CPUs starting with Armv8.2-A, since Cortex-A55 & Cortex-A75, in 2017-2018 (in theory the atomic bit operations were added in Armv8.1-A, but there were no consumer CPUs with that ISA).

With atomic bit operations, each thread signals its event independently of the others and there are no waiting loops. The monitoring thread can determine very fast the event with the highest priority using the LZCNT (count leading zeroes) or equivalent instructions, which is also available on all modern Arm-based or Intel/AMD CPUs.

When a futex is used to implement waiting for multiple events, despite not having proper support in the kernel, the thread that sets its bit to signal an event must also execute a FUTEX_WAKE, so that the monitoring thread will examine the futex value. Because the atomic bit operations are fetch-and-OP operations, like fetch-and-add or atomic exchange, the thread that signals an event can determine whether the previous event signaled by it has been handled or not by the monitoring thread, so it can act accordingly.

So currently on Linux you are limited to waiting for up to 32 events. The number of events can be extended by using a multi-level bitmap, but then the overhead increases significantly. Using a 64-bit futex value would have been much better.

In theory compare-and-swap or the equivalent instruction pair load-exclusive/store-conditional are more universal, but in practice they should be avoided whenever high contention is expected. The high performance algorithms for accessing shared resources are all based on using only fetch-and-add, atomic exchange, atomic bit operations and load-acquire/store-release instructions.

This fact has forced the Arm company to correct their mistake from the first version of the 64-bit ARM ISA, where there were no atomic read-modify-write operations, so they have added all such operations in the first revision of the ISA, i.e. Armv8.1-A.
AI might worsen diagnostics for physicians
by BumperMike | 2025-08-20 05:39:34+00:00
Earlier studies have also showed mixed results for Al-helped diagnosis of Gl-polyps.

Are we seeing the same effect in doctors as in programmers? Where over-trust or confidence in the tools makes us make more mistakes.

https://www.thelancet.com/journals /langas/article/PIIS2468-1253(25)00133-5 /abstract
by pabs3 | 2025-08-20 05:39:38+00:00
Developer tools really need to be more mindful of the fact that on developer machines, the current directory should not be trusted, and arbitrary code should not be executed from it. The git project has been learning this the hard way, and others should too.

For check-all-the-things (meta-linter), we disable the rubocop default config file using the "--config /dev/null" options.
by palmfacehn | 2025-08-20 05:39:44+00:00
There's a synergy between debt based monetary policy and warfare. You could expand your very brief summary to include the Jekyll Island debacle, which presaged the US's entry into WWI.

>There is nothing a nation should avoid as much as owing money abroad… You are doubtless aware that some nations are very derious to loan money to weaker nations whereby they might establish their supremacy and exercise undue influence over them. They lend money to gain political power. They are ever seeking the opportunity loan. They would be glad, therefore, to see Japan and China, which are the only nations in Asia that are even partially free from foreign rule or dictation, at war with each other so that they might loan them on their own terms and dictate to them the internal policy which they should pursue.

https://www.econ.kyoto-u.ac.jp/BHSJ2018/pdf/E09Austin_Busine...
by JSR_FDED | 2025-08-20 05:40:59+00:00
1. Vim is extremely alive

2. “Lue” is actually Lua

3. It’s very possible to use both Vimscript and Lua in the same Neovim setup, so transition (or don’t) at your leisure.

4. New plugins tend to be written in Lua (for Neovim).
by DoesntMatter22 | 2025-08-20 05:41:01+00:00
You must be kidding. Telsa isn't impressive? The first real EV manufacturer? Going from nothing to the best selling car on the planet in 20 years? Not impressive. One of only 11 companies in the world. With a trillion dollar valuation. More than tripling revenue from 2020 to 2024?

Not impressive... You have some pretty astronomical standards.

I do agree about Facebook and Facebook not being in the same tier. Space X was a far harder company to build.
by aschleck | 2025-08-20 05:42:34+00:00
It's been a while since I thought about this but isn't the reason providers advertise only 3.2tbps because that's the limit of a single node's connection to the IB network? DGX is spec'ed to pair each H100 with a Connect-X 7 NIC and those cap out at 400gbps. 8 gpus * 400gbps / gpu = 3.2tbps.

Quiz 2 is confusingly worded but is, iiuc, referring to intranode GPU connections rather than internode networking.
by sparky_z | 2025-08-20 05:42:54+00:00
That was my first instinct as well, but I thought through it a little more and now it seems intuitively correct to me.

-First of all, it's intuitive to me that the "candidate" points generated in the cube are randomly distributed without bias throughout the volume of the cube. That's almost by definition.

-Once you discard all of the points outside the sphere, you're left with points that are randomly distributed throughout the volume of the sphere. I think that would be true for any shape that you cut out of the cube. So this "discard" method can be used to create randomly distributed points in any 3d volume of arbitrary shape (other than maybe one of those weird pathological topologies.)

-Once the evenly distributed points are projected to the surface of the sphere, you're essentially collapsing each radial line of points down to a single point on the sphere. And since each radial line has complete rotational symmetry with every other radial line, each point on the surface of the sphere is equally likely to be chosen via this process.

That's not a rigorous proof by any means, but I've satisfied myself that it's true and would be surprised if it turned out not to be.
by razemio | 2025-08-20 05:44:11+00:00
Yes, this makes sense, since most distros use a "standard release" system. The intention behind it is to keep your OS stable and only apply security patches at some point. If you want to have a system with always the newest software, you need to use a "rolling release " system. I think Arch Linux is the most popular (arch user btw). This is much more fun, if you know what you are doing. Otherwise you will end up with a broken system pretty fast. Ofc you can fix it, but depending on experience and skill something like Ubuntu is the better choice.
by Finbel | 2025-08-20 05:44:31+00:00
Have you not used commercial LLMs to generate program source code? You describe it as if it's an almost unsolvable problem which might have been reasonable 2 years ago but I just used gpt-5 to generate a complete NextJS application for flashcards.

I've literally been employing nondeterministic content generation based on statistical relevance defined by an unknown training data, to repeatably produce content satisfying a strict mathematical model for months now.
by eastbound | 2025-08-20 05:46:11+00:00
In fact, it’s a common tactic to do something unusual, in a recurrent way, so people aren’t alerted when it happens for real. (When the Mossad stole 7 boats from a French port (that they had fully paid), they prepared a few months in advance by having the pilots start the engines every night at 23:00, pretending they needed it against the cold temperatures. When they day came, they started the engines and left, no-one saw it coming).
by picafrost | 2025-08-20 05:46:41+00:00
Physically written materials are such a huge part of our archaeological understanding of the human past. In my mind digital materials are always dangerously close to non-existence, even if cloud redundancy and our apparent inability to fully delete things from the internet make us feel digital materials are well protected. The persistence of this data basically boils down to magnetic fields. Without power, these will degrade much faster than even papyrus.

Assuming civilization as we know it today does not persist, how much of the knowledge and culture we've created will be recoverable in the future? We have more books than ever, but what about first-hand materials, journals, notes? I can't help but to feel that digital sieves like Google and the Internet Archive are our Library of Alexandria moments in waiting.
by nemothekid | 2025-08-20 05:47:47+00:00
>That feels like real revisionist history to me. He was late to mobile.

I think most of us in the valley were already starting see mobile explode, it seemed obvious, but I think there were 2 things that really obstructed Facebook's "pivot" into mobile.

1. Facebook went public in 2012 with a very strange voting structure

2. While mobile was growing, the sentiment was that mobile could not be monetized as an ad platform.

As I remember it - the investor sentiment (and I mean broader wallstreet, not necessarily VCs), was that facebook was burning money in mobile and zuckerberg was abusing his power chasing it. While you can argue Facebook was late - I think it's only obvious in hindsight that Zuckerberg, a first time, 28yo founder, did the right thing in ignoring the noise and betting on mobile.

Furthermore I think calling Instagram a hail mary is reductive. When it comes to advertising, only Google and Facebook really cracked the code on making mobile ads profitable. No other social network comes close, and almost all the other ad networks have shuttered. Instagram had a 100 million users, thats fine, but so did Twitter, Snapchat, Pinterest and Reddit and none of them have an ARPU like Facebook. You could make the argument that FB made Instagram, instead of the other way around.

Had Facebook been a bit more established in 2012, maybe gone public 2 years earlier, maybe they would have their own Phone OS.
by barrkel | 2025-08-20 05:48:44+00:00
Ruby is slow, but it is however faster than Python last I checked, with like for like code.

Python gives you other interesting ways of going fast (a lot of high performance plugins for numerics, Cython, and so on), while Ruby is a higher level more expressive language IMO, so you have more ways to shoot yourself in the foot more powerfully.
by Ayesh | 2025-08-20 05:48:56+00:00
I live in a popular Digital Nomad friendly country, and myself included, work with Europe/American companies roughly matching their time zones.

Now, the people I work with know that I'm not really located in the same time zone, but I know people who don't bother to mention it. I rarely get phone calls, but I have a roaming connection active for banking/OTP/etc. Plenty of cheap cafes with great WiFi (500mbps+ almost everywhere), and several times cheaper too.
by troupo | 2025-08-20 05:49:12+00:00
Google's own document says numbers don't show the full picture: https://news.ycombinator.com/item?id=44956267

They didn't even do the tiniest bit of research, as people in the discussions clearly showed, and there are high impact sites that would be affected by this including Congress and Library of Congress: https://news.ycombinator.com/item?id=44958929
by simianwords | 2025-08-20 05:49:37+00:00
To add further to your idea:

You can create a hierarchy of summaries. The idea being summaries can exist at the method level, class level and the microservice or module level. Each layer of summary points to its child layers and leaf nodes are code themselves. I think it can be a B tree or a normal tree.

The RAG agent can traverse as deep as needed for the particular semantic query. Each level maintains semantic understanding of the layer beneath it but as a tradeoff it loses a lot of information and keeps only what is necessary.

This will work if the abstractions in the codebase are done nicely - abstractions are only useful if they actually hide implementation details. If your abstractions are good enough, you can afford to keep only the higher layers (as required) in your model context. But if it’s not good, you might even have to put actual code in it.

For instance a method like add(n1, n2) is a strong abstraction - I don’t need to know its implementation but only semantic meaning at this level.

But in real life methods don’t always do one thing - there’s logging, global caches etc.
by exe34 | 2025-08-20 05:50:15+00:00
I think crashing world economy and starvation will do it just fine.

I know people point out that Malthusian predictions have always failed so far - but the reason we got to >7G humans is that an enormous amount of science and engineering went into making things better, a large part of which was spearheaded by the US because world peace and prosperity was in the interests of millionaires and billionaires. Now they've decided this isn't in their interest anymore, so I worry that the trend in scientific progress that got us here will be more like the tide - we're now flapping our fins on the beach and the water is receding.
by somenameforme | 2025-08-20 05:50:28+00:00
Yes, it literally is, and this isn't ambiguous. You can find a zillion studies contrasting the religion of people to those of their parents. For instance here [1] is an overview from Pew. 84% of adults who were raised in e.g. a completely Protestant home are Protestants themselves. That strong of a correlation simply doesn't leave room anything else to significantly matter.

If you then isolate that sample to situations where both parents were Protestant and also talked about religion a alot, 89% of their children ended up as Protestant! For a religion like Islam that integrates even more significantly into one's life (and correlates very positively with good fertility rates), these figures are going to be even higher and getting within statistical noise of 100%.

[1] - https://www.pewresearch.org/religion/2016/10/26/links-betwee...
by NitpickLawyer | 2025-08-20 05:50:45+00:00
You have to think from the perspective of "who has enough data to correlate this with you". Obviously, three letter agencies will know. But that's not the point.

What happens usually is that a) copyright investigators (on behalf of copyright holder associations) or b) ISPs do basic analysis and "flag" IP addresses.

The copyright investigators usually look at torrenting pools, log all the IPs, and do some sort of query on those IPs (whois, reverse dns, etc). Then they pursue the biggest targets. "Hey, look, this IP that belongs to Meta has torrented 4234234TBs worth of our clients' data. Bad Meta". And the headlines pour.

Your local ISPs do basic inspection, and can see you're torrentig, but usually (unless they take extra steps) won't know what you're torrenting. But they can send a letter saying "hey, knock it off!".

If you're using a "proxy", either via VPN or VPS (seedbox) then your primary IP address never gets caught in these logs. So they won't be able to know who it was. Sure, they can go the legal route and subpoena the VPS providers, but that's where the "friendly jurisdiction" comes into play. Unless they get raided by said 3 letter agencies, they won't care much about an angry letter from a lawyer.
by willemlaurentz | 2025-08-20 05:52:10+00:00
I don't think handwriting will go away, it might become a "proof of work" in an age of artificially generated texts. I recently started including the manually written manuscripts (that I make on my reMarkable) with my blog posts to show folks I actually wrote them. See https://willem.com/en/2025-08-19_android-photo-library-app/

When everybody is jumping towards AI and digital texts, what remains may become more valuable. I don't know, but am keen on finding out.