skysight-inc/HackerNews huggingface dataset:
Show HN: Resonance – PHP Framework That Solves Real-Life Issues
Hello HN!

I made a PHP framework with AI capabilities.

The most important features:
- Built on top of Swoole extension to support asynchronous features.
- Opinionated, all-in-one solution for building web applications, particularly SaaS (it is not a boilerplate, though).
- Integrates with llama.cpp to serve responses from open-source LLMs.
- Uses minimal configuration and extensively relies on metaprogramming (binding related classes with attributes) and other in-language metadata.
- Focused on providing easy integrations with different services (it has built-in OpenAPI schema, gRPC, and other tools to help with that).
- Performant, optimized for memory management.

The future of PHP lies in Fibers, Coroutines, and libraries like Swoole. PHP is easier to maintain in certain scenarios and performs better than Node.js or Python (especially combined with Swoole). For example, it has transparent asynchronous features, and because of its stateless nature by design, it's great for things like AWS Lambda.

FAQ:

- How is it different from Hyperf or Symfony?

I built Resonance on top of Hyperf and Symfony components. I added all the features on top of those and provided a coherent experience based on class attributes and metaprogramming. It has a unique dependency injection container designed to maintain read-only class instances wherever possible so as not to overburden the garbage collector.

- What can I build with it?

Currently, I am building a conversational app builder with the framework. I designed Resonance to be able to both easily integrate with external APIs (including streaming ones, like the ones LLMs have) and to make it easy to integrate with Resonance (you can expose OpenAPI spec, and it has a built-in GraphQL and WebSocket servers, etc.).
I hear ya. We hold similar sentiments and also don't use CAPTCHA, we find MaxMind (and a few custom heuristics) to do good enough of a job at filtering out bad actors. A few get in every great once in a while but we have secondary controls that limit the money they can cost us.
He's probably the guy who decided to add fraktur/double-strike/sans-serif/small-caps/bold/script/etc variants of Latin letters to the Unicode because, you know, they look different! so they should get their own special code points.

It was a joke, by the way.
>What you are doing here is essentially saying that it is "fake gold that is immaterial in effect from real gold

I've agreed that there can be the effect of an immaterial difference in a given context or application. For instance, if I'd stopped at asking ChatGPT about the rules, then it wouldn't have mattered that it couldn't employ them properly. But, that's context-dependent (e.g. when I asked it to play, it did matter and the difference was no longer immaterial).

In your gold analogy, it's either gold or it's not. If our tests couldn't distinguish it, then it doesn't change the fact of what it is. It just represents a shortcoming in our ability to discern. If it had the same conductive properties as gold such that it could be used in applications that required those properties, then there's no material difference in that application. But, if we later find that it wears out twice as fast, then we realize it's not gold and the difference becomes material.

But, here's the key piece you're missing: even if we never find a demonstrable difference in the metal, it doesn't change what it is. That is, even if the difference is immaterial for any application or test we can devise, the facts don't change.

You can argue that if the difference never becomes material then it doesn't matter. Maybe. But, that's not a practical way to approach AI, as it leaves open the possibility that it fails in unexpected ways.

So, in the case of LLMs, I think it matters. Massively. In how we approach it, use it, train it, understand its limitations, our expectations, etc. But, I'm not making that argument.

>Either GPT doesn't understand what it's saying and this holds no importance or it does. You have to pick one

No. We've already agreed that GPT can get facts right. You're kind of going backwards on me.

At the bottom of it, we agree that GPT-4 can cite the rules, but can't play chess (i.e. use its facts). I believe that reveals how these models work WRT to reasoning and understanding. You disagree (or think it's immaterial).

So, we draw different conclusions from the same information. Not unprecedented in human history!
I think this googler-made meme answers your question: https://m.youtube.com/watch?v=3t6L-FlfeaI
New VMS users? Why lord would anyone want to do that, they floated some crazy idea of VMS on Intel Atom as a IoT platform as if that made any sense some years ago during the migration trajectory.

Somehow this seems like one of those idea's that many legacy-niche-OS developers imagine themselves in, it's old, uses little memory (and does little) so now it must be feasible as a embedded-OS, AmigaOS-oid developers imagined the same in the early 00's...

However about total amount of users I don't fully agree, there's significant deployments of VMS still around in the infrastructure and finance sectors. Although some very high profile customers have migrated away on to Linux using compatibility layers.

And within that subset there's customers that still have high performance requirements making them willing to invest in VMS on new hardware.

If you ran VMS on a GS1280 (64 Alpha CPU's, split into 2 32CPU partitions), then migrated to several generations of SuperDome's (Itanium) and your work-load is still scaling with your wider company demand, bare metal deployments on latest x86 hardware of VMS can perfectly make sense.
Surely your purchasing data gets sold off, if nothing else?
Not sure we should be trying to fix away awareness of the climate crisis, which seems to be a blind spot for most older people preventing the democratic process from taking the needed drastic actions.

(Same could be said for the increasing economic inequality despite record GDP, though it's more survivable near term)
The silver bullet is Docker. It's not the best solution in every situation, but at least it'll work.

For your own projects built from scratch (rather than big multi-dep projects off GitHub), there's a smaller learning curve if you go to the vanilla https://www.python.org/downloads/ , install the latest, and use the included pip to install packages. That'll probably get you very far. It's not like the older days when you needed both Py3 and Py2.

For experts working frequently in Python, tools like Pyenv can make more sense.
I'm saying this as an agnostic who grew up in the UMC:

All attempts to do this, particularly in the internet age, have failed spectacularly. They just turn into the worst parts of organized religion without the higher power. Remember the Reddit atheist movement of 10-15 years ago? A not-insignificant portion of that population went on to become the alt-right.
Same here. I think I actually applied twice. It's strange - they never even answered, but I did receive notification today of this change they're making to the Community Program.

I suppose if I knew the right person I could email them and get access, but I've seen at least one public statement (on their forums, maybe? or twitter?) saying there's a long line because it takes time and manual effort to set up the accounts, which is kind of the saddest thing ever. I guess I'm content to wait in line (forever?).
Because none of us really know what we mean by "intelligent".

When we see a thing with coherent writing about any subject we're not experts in, even when we notice the huge and dramatic "wet pavements cause rain" level flaws when it's writing about our own speciality, we forget all those examples of flaws the moment the page changes and we revert once more to thinking it is a font of wisdom.

We've been doing this with newspapers for a century or two before Michael Crichton coined the Gell-Mann Amnesia effect.
Integrating my funnel and website builder into a POS so people can buy funnels and instantly sync products they want to sell from their business.
I see many comments talking about how shocking or rare this appears to be. In reality the maritime industry is extremely dangerous and accident prone as a result of the design of the system. Excellent book on the topic with an entire chapter dedicated to maritime: https://www.amazon.com/Normal-Accidents-Living-High-Risk-Tec...
They probably also realize any hobbyist who wants an "illegal" license can get one with a google search. This announcement is not really stopping anyone from playing around with old software.
I think this protocol is correct-ish* when you make the strong assumptions you have made about the device, but I also don't know why you would use it. Normally, you would prefer to both have unique device public keys for domain separation (preventing re-use of IVs, etc.) combined with the ability to verify that the device public key is actually the public key of a legitimate device. Otherwise, you could have a non-legit device conduct a MITM attack by running this protocol (if you trust the device to provide its identity PK) with the user and the device separately or you could have a counterfeit device created when sk_identity is eventually exfiltrated (if you set the identity PK as the same number for all devices at the factory - see what happens with DRM). Using some sort of device ID with a database mapping IDs to PKs also doesn't give you counterfeit protection the way a certificate does - a counterfeiter can re-use an ID. You also can't rotate your identity keys if you use this scheme.

Most cryptosystems today offer flexible-enough primitives that you can come up with a lot of different possible ways to do things like this. Whether they are useful is a different story.

IMO you should probably do something more normal, and just store the certificate chain with the device programming.

*After about 10 minutes of analysis, so YMMV taking my word for it.
Quotidian viewpoint that everyone working in search already agrees with, for years, but nice to see it written down. Embedding-only search has never survived its first contact with an actual user.
Relax. I started in IT in the early nineties, which in Europe weren't all that great. Not a lot of jobs for developers. Then it got crazy with the millennium bug hype. The sky was the limit! Companies had interviews at car dealerships and if you spelled your name mostly right, you had a well-paying job and rode out in a free brand new car.

Then the dot-com bust happened. Oh no, everybody got laid off, there certainly was no future in IT. Until the market picked up like never before and every developer hopped to greener pastures every few months. Happy days!

Then the financial crisis in 2008 made a lot of frowny faces. After which the growth in the IT market was frankly insane again.

And now, well, it's all on a downwards trajectory again. The days of getting half a million dollars for playing with a two weeks old framework at a startup that bleeds money and never has, or will, turn a profit are over.

The AI hype is just starting, and perhaps it will have to get worse before it all gets better again. But it will get better. Still, the market isn't all that bad now, if you accepts a job at a smaller company that isn't FAANG-level.

Ups and downs. It's never been different.
Well that's much more interesting. Is there anything written publicly about the experience? Any tooling used to help get the implementation right beyond testing and writing it carefully?

I've found a little here https://ffmpeg.org/developer.html#SIMD_002fDSP-1

The context is I'm a compiler developer who really liked working side by side with old school assembly developers in a past role. I'm painfully aware that the tribal knowledge of building stuff out of asm is hard to find written down and always curious about the directions in which things like C can be extended to narrow the gap.
Sounds like two things have happened. 1) They discovered that more commercial use of the free licenses was occuring than they were comfortable with, hence the weird licensing and move to only prebuilt VM images, 2) They realised people were basically using the licenses to keep old hardware chugging along, instead of investing in the platform's future, hence the move to only licensing amd64 in the future.

I can understand it from their perspective, but it's absolutely the wrong move. What they need to do if they really want to revitalise the platform's future is inspire and excite people about the idea of building on it. Not only is this not doing that, it's going to have the exact opposite effect, because now this leaves a taste in people's mouths that building on this platform means building on shakey ground.

Shame, but I don't have a dog in the race except having a soft-spot for alternative architectures.
I'm curious about the switch from boltdb to SQLite. How should one handle migrating existing podman environments ?
Isn't it super likely the gift buyer will realize what's up when making the purchase?

There would have to be two websites or something.
Related:

In B-Flat - https://news.ycombinator.com/item?id=15941838 - Dec 2017 (43 comments)
If you ensemble a bunch of optimizations you get something that behaves like a neuron.

Neurons approximate the generator of the layers of 'blurs'. - The distribution.

Such generators have to have separate origin to be truly orthogonal. E.g. evolutionary algorithms for rodents, particle swarm for tool use. If you have orthogonality in your evolution generator, you are not modeling evolution.

To my intuition, when you are making orthogonal insertions into data with these constraints you are operating in a regime where computational complexity has exploded several times over what we are used to. Non-spoofed squirrels with screwdrivers would be extremely rare data so having an encoding scheme which allows for that would be a weird flex.

Thoughts still baking...
They're not communities, they're just activities that are attended by a friendship group.

Church is way more meaningful than that. Baptisms, deaths, marriages are run by churches and the meaning can survive the majority of attendants not showing up.

The problem in modern society, is teaching the meaning behind churches. It takes longer than a couple cycling classes and is more demanding on the spirit.
The woke nonsense isn't the source of the problem, it's a symptom of a deeper problem.

The Gemeni image model itself is fine. Despite what some people want to believe, it wasn't trained to be anti-white. The problem was some people in high level management position decided they should insert DEI stuff into the prompt without asking or telling the users, and they forced the engineers to implement this without thinking through the obvious consequences, or even performing basic testing.

A competently managed company could still make reasonable efforts to promote DEI (or not), but it would look nothing like the nonsensical images that Gemeni was putting out on launch. Jamming DEI in sideways where it doesn't belong and then having it blow up in their face is a symptom of deeper problems from the top. The DEI is just exacerbating the lack of clarity, which is a much bigger problem.

Fixing Gemeni image generation is easy: just undo the stupid prompt insertions. Fixing the chain of decision-making authority that led to those prompt insertions is difficult. They need to restructure management.
I’m working on a small side project that allows you to react to any URL with any emoji.

https://opinionmoji.com/

It’s mainly an excuse to learn some new things (HTMX, Prisma, DigitalOcean, etc.), as well as get comfortable building and shipping something from scratch on my own.

My goal is to eventually see large (and funny) swings in reactions in realtime.
yea if you watch the longer video they stopped traffic only a few seconds before the impact. incredibly lucky.
v210_planar_pack_8_c: 2298.5

v210_planar_pack_8_ssse3: 402.5

v210_planar_pack_8_avx: 413.0

v210_planar_pack_8_avx2: 206.0

v210_planar_pack_8_avx512: 193.0

v210_planar_pack_8_avx512icl: 100.0

23x speedup. The compiler isn't going to come up with some of the trickery to make this function 23x faster.

800% is nothing.
I'd be interested in seeing stats on how often people actually "get away from their desk" in a way that needs a computer. Specifically ways that aren't already covered by a phone.
I'm not religious, but I don't see a lot of evidence of other forces filling that space. In part, it takes a lot of commitment (and resources) to do it well. Religious communities have been motivated, but I don't see other groups filling the void as they depart.
MCP's Architecture struck me as absolutely amazing and fascinating when i read about it.

Bull released a MCP VM demo development kit, I tried really hard to set it up and write some simple ALGOL for it.

If anything it thought me to appreciate how MULTICS/UNIX (and aside the pdp10 world) gave us line oriented developer-focused interactive environments that don't make ones eyes bleed.
I assume that DSL connections aren’t used because not every has one. How far does Ethernet over power line reach? 300m? Could it theoretically reach outside the house to a junction box and if so, could this be a better way of pushing smart meter data to the local provider? I don’t know enough about the technology so maybe I’m being naive.
Looking at the MDOT website, the traffic incident closing the Key Bridge was posted at 1:27 AM.

The Washington Post has police audio at the time of the closure (https://www.washingtonpost.com/dc-md-va/2024/03/26/baltimore...). A quick summary of the timeline from that audio:

* There was a request to close the bridge when the ship lost power, which went over police dispatch about a minute before the bridge collapse (the bridge collapse is reported at timestamp 1:09 in the audio).

* Someone was able to hold the outer loop traffic at ~0:20 in the audio, as they reported they were already driving along at the time.

* Inner loop traffic is reported stopped at ~0:56 in the audio. I suspect there may already have been a police car there because of the construction on the bridge.

* Between 0:20 and 0:56, the conversation is about pulling the workcrew off the bridge. The police officer blocking inner loop traffic, after reporting stopping traffic, is indicating that he's waiting for a second unit to arrive before going onto the bridge to collect them.

* At 1:09, the bridge is reported collapsed, and multiple officers confirm. There is a question as to which traffic is stopped--the people blocking inner loop traffic are unable to confirm outer loop stoppage, but the person holding outer loop informs them of the stoppage at the end of the recording.

So traffic seems to have been stopped for about 10-50 seconds before the bridge collapse, depending on the exact length of time between someone stopping traffic and radioing in that they did so. From what I can tell, it sounds like outer loop traffic was stopped in time solely by sheer coincidence, while the inner loop traffic may have been existing police presence (for the construction zone) changing posture to a full closure.
We love Chef John, and we recently started growing a herd of American Milking Devon cows. This breed traces its lineage directly back to Devon, but they have become extremely rare (with less than a thousand animals in existence). I can’t wait to try to make this recipe with their milk.
> nobody measures such metrics: size, bloat, speed...

Have you ever looked at the bloat of linkedin web? I've had tabs over 1GB memory use. Most bloated site I've ever used with any kind of regularity.

> Not related to Libkedin, but what is the carbon footprint of all electron-based apps that take hundreds of megabytes and gigantic amount of processor time?

I make an election app. It uses 70-80 mb of RAM when running. It's not that bad when you don't blow out your dependencies and code structure.
See also: Titanic vs Ice
The Method Dispatch Deep Dive
I think the harsh reality here is that companies pay the lowest they can for the best they can get. When you're talking about working remote abroad then you either need to be extremely niched/skilled down (machine learning, blockchain, etc), exactly what they are looking for down to the dirt under your nails, or you have to be "the guy" that a company can't do without (known, network respected, etc).

Lots of companies base their salaries on the locations of their workers. They understand how the market has changed and that they can near-shore or off-shore very easily with today's tools (post covid). However, they want happy employees, so giving an above-average wage for their location is just good business.

When you live in a location where the salary from western countries is 300-1000% higher than locally sourced, you better bring your A-game. You will always be the first person that a company looks at and says "are we overpaying for this?". I'm saying this as someone who also works remotely with western countries.

Also, here are some tips for your cv (which was better than most, but still some glaring problems):

- Be specific: Things like "Designed and managed big APIs" sounds like BS (not saying it is, it just sounds that way). Mention which, mention why, mention how.

- Each bullet should matter: "Worked extensively on a big codebase in Laravel and React", okay, so what? You and every other fullstack dev can do that too. Why should anyone hire you over them?

- These were your most powerful lines: "Improved a CSV ingestion service time from 20 hours to 4 minutes" and "I cut Cloud billing from around USD150 daily to around USD5 daily". Do more of that. Tell the reviewer how much GOOD you did for the company. Show off your mastery and wow them. If it doesn't wow, it ow's.

- I would roll some of the previous jobs into one. You have some there that last for 5-8 months, it's not a good look. Roll them up into a single May 2012- Jul 2021 at Company A, Company B, Company C, and then list off of the best things you did there in aggregate.

Sadly, the majority of pay scale is what you can negotiate for. If you're not a good negotiator/salesman then you're gonna have a hard time regardless. It wouldn't hurt to "specify down" and go after one of the highest paying verticals instead of the most average one (fullstack dev).
The system of government is an arcane disaster, unlike clotted cream.
"Never own a home."

As I say at every opportunity: it's housing prices.

Housing prices are the #1 reason for youth "doom and gloom" about their economic future, at least in many Western countries and especially anglosphere countries.

Social media doesn't help, especially for teens (and it's apparently worse for girls), but it's not the only or even main cause.
There are production ready AI tools in hospitals, with FDA approval. The writers of this article just decided to try a non-FDA approved tool and ignore the approved ones
I think we should limit voting to those who block ads!
That is just using a RefCell under the hood[1] so it is effectively the same trade-offs as the RefCell example from the article.

[1]https://docs.rs/gc/0.5.0/src/gc/lib.rs.html#495-498
The Unitarian Universalists exist. It's not really non-religious, but it is inviting to non-theist people, or those who don't otherwise believe in the supernatural.

https://www.uua.org/beliefs

Full disclosure: I'm an atheist UU and a member of my church's board of trustees.
Note the downward trend in the number of new programming languages per decade. Probably because this field of CS has reached maturity stage and new greenfield projects are less in demand.

https://en.wikipedia.org/wiki/Timeline_of_programming_langua...
Similar to stay quiet if the car is about to merge into traffic. But with a boat the stakes are 100,000 times greater due to the huge momentum and that it would be gliding and not slowing down like a wheeled vehicle on land.
Convergent evolution would be the general term I think. Not sure if there's a pithy technological or software -ism.
Efficient formation of single-copy human artificial chromosomes