skysight-inc/HackerNews huggingface dataset:
Show HN: AI Chat Adapter
This python module lets you get chat responses from multiple LLM API backends more easily by providing one class to act as the interface for all the supported LLM backends. It can handle both local and remote LLMs. So far it supports OpenAI, Anthropic for remote APIs and Ollama and LMStudio for local LLMs. I made this to experiment with having multiple LLMs chat with each other, but realized it might be more generally useful to others as well. For example, this would make it trivial to switch between API providers for a critical service during provider outages or to do comparison testing with multiple LLMs. There is still a lot more I want to do: Add support for Groq and others APIs, add support for chat streams, improve tool call support and more. Your feedback is welcome and if you can think of more cool use cases I'll add them to the README.
Web Archive to the rescue!

https://web.archive.org/web/20240819212746/https://salesforc...
If they use native widgets, they usually look really bad
If they just “imitate” look and feel, they usually fall very short of the real thing

Either way, it’s bad experience for the end user
Yet another tool that makes it harder to sync my projects and do ad-hoc coding on my phone, or anywhere else that I can't setup the Rust toolchain. That's all I'm seeing with this rustification of the Python ecosystem: a reduction in the breadth of practically supported targets for the language.
> At the time, there was the pervasive notion that a business didn't need to make a profit to be valuable as a public company, as long as it had a large number of loyal users.

Right, at the time...
I deleted my Facebook account in 2013 and haven't missed it at all
Also clicking through is not a good thing if it doesn’t result in revenue! Why do I want to render eight pages for someone who will never give us money if I can find that out in three?
That's bad management if it's seen as career ending failure. Proper management just does the ROI on the successful ones versus overall cost. And doesn't risk everything on them. Large tech companies test hundreds of model changes and rollouts per year in AB tests for that reason.
A few percentage points? Should mean nothing for vcs as they look to 10x profit. This is the time to go heavy with investing. Turn the stones others are afraid to turn because of spooky single digit percent interest rates. More likely to find your 10x now than when money was cheaper.
PSR has been the single most important advance in the ecosystem. We now have a single, unified code style among all modern projects; a universally supported logging library that virtually all applications use; a universally supported DI container that is implemented by all frameworks; common HTTP request and response types, used or supported by all major frameworks and HTTP clients alike; sadly, two cache standards, albite with a little different targets, but at least most packages support either.

For a concrete example; I can take a PSR request received from the server SAPI, send that to an upstream server via a PSR client retrieved from a PSR container, hand it a PSR cache instance to store the PSR response in, then return that response to the client. This whole chunk of code can be copy-pasted from Laravel to Symfony, and the container will handle injecting the correct local implementation. That doesn’t sound too impressive to a Java developer, but it just wasn’t there in PHP before PSR. Anyone dismissing all that hasn’t really worked on libraries and frameworks before that was a thing.

These packages have made it feasible to create framework-agnostic libraries, easy even, if you’ve got a bit of PHP experience. There’s a reason why the packagist/composer ecosystem is so good, and that’s shared primitives.

If someone just denies all that and bets on their own, badly documented, incompatible solutions just for the sake of it; that absolutely is a red flag, and I’m not going to touch that with a ten foot pole.
And those personnel are really expensive.
It was a business decision made at the direction of the government.
> Taxing unrealized gains will be extremely complex, and given that they aren't allowing us to deduct unrealized losses its a pretty shitty setup for the taxpayer.

I pay taxes on the unrealized gains of my house appreciating in value over the years.

I'm not arguing one way or the other about whether various wealth tax ideas are good. But, I don't believe that the concept is as infeasible as some are making it out to be when it's been happening with property taxes for a very long time.
RAND wants that money funneled to weapon/missile development instead of chat bots
https://www.justbeepit.com/ started as a web annotation tool that I hacked together with a friend. Now, it’s a full-fledged visual task management platform with over 2,000 users.

In 2022, I wondered what it would be like if my manager could leave comments directly on the live website for all the edits, rather than sending a bunch of screenshots and videos. That’s how I came up with the idea for a "simple" browser extension that lets you leave comments on any site, anywhere on the screen.

There were several challenges along the way:

Attaching Comments to the Correct HTML Element: I initially struggled with ensuring comments were attached to the right element, as relying on X/Y coordinates would not be responsive. Now, I use a combination of element IDs, classes, outer HTML, and attributes. This approach works correctly 95% of the time. Do you know of any other methods to find the correct element in the DOM?

No Third-Party Libraries: Extension development only allows pure HTML, CSS, and JS, with no external scripts from CDNs. Building a text editor from scratch was one of the most challenging parts.

Real-Time Functionality: Keeping the extension's background page active was tough because it deactivates when not in use, making it almost impossible to maintain a socket connection. I wrote code to wake up the background page and reconnect the socket whenever it goes to sleep.

I stopped all my freelance projects, and now three other people and I work on this tool full-time. We recently became #1 on Product Hunt: JustBeepIt.com

There are still many issues we're working on, such as using it with iFrames or inside scrollable objects, but we're tackling these challenges one by one.
How is it not clear? GR reduces to Newtonian gravity in the weak field limit, which MOND is explicely not. If MOND is true, then GR is wrong.
20% success rate is pretty good no?
Sounds like it's the FBI's credibility that is shot - imagine Facebook had done nothing and it HAD been a Russian propaganda operation ?
I guess I got turned off by the visually loud Akamai branding on their landing page, and the talk of "cloud" on that page made me think they'd done away with the old Linode VPS product entirely. But it's good to know it still exists. Thanks.
The HN crowd like reddit leans massively progressive/democratic. As such any thinking outside normal or contrarian views are massively suppressed.
Classic contrarian (to HN) around WFH, Capitalism, Elon Musk, Tesla, Regulation is downvoted and even flagged
Even if it's unnecessary I still think this is a great idea. It's obvious that the people who are scared of nuclear power are not interested in the actual safety data, it's that radiation is scary and has bad connotations.

If it will put people at ease, then just do it so we can finally have nuclear energy.
Is there _anyone_ on the planet who is not aligned with the CCP that thinks there _isn't_ a censorship issue in China?
Actually an additional point, If you read the report, the 80% failure rate claim does not come directly from this report, but links to the following article as it's source:
https://fortune.com/2022/07/26/a-i-success-business-sense-ai...
(https://web.archive.org/web/20240105144440/https://fortune.c...)
Which actually further quotes ostensible sources without linking:
"That’s borne out in a slew of recent surveys, where business leaders have put the failure rate of A.I. projects at between 83% and 92%."

Unless someone is able to track down the original source of this information I would treat it with great scepticism.
Wow, incredibly fast. Can easily replace my Groq usage if they can keep up with capacity demands.
> What would trying to sell billions in stock at once, or leverage hundreds of thousands of rental properties look like to the larger economy, and what would the effect be?

Billionaires already routinely sell billions in stock "at once" (meaning, per quarter or similar, not a $1 billion limit order on Robinhood...), so on that one, we can empirically suggest "not much of an effect on the larger economy".

Randomly chosen examples:

https://finance.yahoo.com/news/bill-gates-liquidated-1-7-180...

https://www.reuters.com/business/autos-transportation/elon-m...
1. Controlled opposition

2. They can dox and eliminate any real threat if they can monitor the most popular communication tool

According to many sources, Telegram is a vital communication tool of the Russian military in the war with Ukraine. If that's true, then there can be only two primary interpretations: 1. Russian gov is astoundingly incompetent 2. They are able to monitor Telegram
That’s actually not too bad of a name for the service — like “sit your butt down and read this email”
It is impossible to overstate how risky options are in this situation.

The implied volatility for NVDA is astronomical. Put differently, the OP isn't the first one with the idea to short them, so this incredible demand for options drives the premiums up substantially.

That stack of (temporary) paper you are paying for is likely way more expensive than you think it is.
Evaluating a Process Manager
People generally expect more from self-declared democracies with free speech in their constitution, as they should.
If you're talking about a workshop and anticipating that much ad-hoc power usage, I'd just put two dual 6-20 receptacles side by side rather than splitting one. And then since you're actually creating the premises wiring, stick an (L)14-20R next to them in parallel and get rid of your need to fuss with hacky combiner cords. At least that's what I plan to do when I have the time for such luxuries.
>Well, that, or… lobby work for stronger workers rights, for example at least three months of notice before a layoff, with a proper justification presented, like it works in Western Europe.

I worked for a company that did huge layoffs and they management was so mad when they found out they had to give the French workers three months notice instead of the 4 or 5 days they gave the US workers.
Smaller Gemini 1.5 Flash-8B, stronger Gemini 1.5 Pro, improved Gemini 1.5 Flash
Is plant acoustic communication fact or fiction?
> Government pensions are projected to bankrupt several states.

Because someone stole the money earmarked for the pensions. That money was supposed to be invested conservatively and at scale to the benefit of both taxpayers and government employees.

This isn't a taxpayer or worker problem. This is a problem for whoever made off with that money.
> It's very bizarre that COVID is the poster-boy for social media censorship. The whole thing seems incredibly contrived; no one actually cares about COVID censorship

I agree, it is bizarre. Why weren't we allowed to discuss theories about how Covid was created? What's so wrong with proposing that it may have escaped from a lab? Shouldn't we be allowed to debate the pros and cons of taking medication or wearing a mask?

The whole situation was just an uncomfortable display of our supposed freedom in online discourse. Not even online discourse, peoples careers were threatened for having the "wrong" opinion. The fact that it was over something so contrived like Covid made it all the more disturbing.

Perhaps we've been conditioned to not expect total freedom when discussing highly propagandized topics like war. But Covid? Healthcare? That was an eye-opener for many.
Just wait until Rand looks into the success rate of Corporate IT Projects in general...
Is that a US constitutional violation by the biden government? I guess not because they weren't really forced to. Yet again , putting pressure on media is not negligible
how's that distribution different from any new tech wave? (crypto, past AI waves, robotics, self-driving cars, mobile games...)
My conspiracy theorist inner voice says the Nvidia longs are DDOSing this because they don’t want any bad AI news before their big revelation today.
Agreed that NotePerformer is night and day difference, highly recommended. I don’t think it works with MuseScore though
In fact it is in many rural lawless areas where there is effectively no state, like gold mining regions of Brazil/Guyana/west africa

Fiat dominates in strong nation states because in part everyone needs it for taxes.
Look for the Global Gender Gap Report of the World Economic Forum, it uses exactly that metric.
to those unaware: 11 is the laughing taunt in aoe2 and is used in the community like lol. the poster above was describing how you hunt a boar in aoe2 which is a vital source of food in early game. it is risky to use your towncenter to weaken a boar because if you kill it with the towncenter you can not harvest the food
Since you didn't include the link I went ahead and searched for it. Is this it? https://github.com/Storia-AI/repo2vec

There's been a lot of "chat with your x" projects and the value prop always eludes me.

To use the example in the repo, if I want to know what image encoders are supported, I would do a repository search for the "Encoder" keyword to find where they're defined. Then I'd be able to see all the encoders that are supported. That takes me about 10 seconds - why would I want to use a chatbot to do this instead?
I don't have a proverbial dog in this race but I agree with the outrage and I don't think "stealing back" is at all hyperbolic.

I guess if you're really really really young and all you know is subscription based software, then that is the world you know and you might just be accustomed to it and accept it.

But if Finale has been around for 35 years, then it existed long before "cloud" and long before subscription software was a thing.

If someone has invested money and time into using that software, into creating project files that only work with it, in learning how to use that then it is not remotely acceptable in my opinion to disable their access to something that they have paid for and invested in. I don't think that "stealing" is an inappropriate word to use in that case. Not even a little bit of hyperbole.

Does that mean that MakeMusic should continue to invest their own resources into maintaining it? Absolutely not. To answer your question: "what do you actually want to have happen to Finale that’s realistic for MakeMusic?": I would suggest that they allow people who have paid for it to continue to use it indefinitely.

This might mean that they need to release a patched version that's not going to activate remotely through their servers with a download link that will eventually expire.

I acknowledge that that doesn't cost them "absolutely nothing" but it's not a major expense (also happens to be a fixed cost) and it prevents them from being akin to your fridge manufacturer saying "we are discontinuing this model, as well as repair services for this model, therefore we are going to enter your house and physically remove your fridge one year from now so that you will be forever unable to use the thing that you paid us money for." What they get in return for this one time "end of life" service for their paying customers is customer retention and good will. I mean, I know that I will never consider buying anything from MakeMusic as a result of hearing that they might shut off my access to things I bought and paid for at any time.
Somebody would be able to replace the unreleased portions with new code.
"A mile underground" and "cheap" don't seem to go together.
Similar, but with the significant difference that splats are elongated spheres with variable orientation and elongation. Voxels are fixed sized, fixed orientation cubes. Splatting can be much more efficient for many scenarios than voxels.
https://frankenphp.dev/

Is probably the best I've seen.
I have basically had a history of using whichever desktop environment got in my way the least. At various times, that has been GNOME 2, MATE, XFCE, GNOME 3 (Ubuntu edition), GNOME 3 (PopOS edition), and probably a few that I'm forgetting.

Lately I have been running KDE on Debian and it is basically everything I always wanted Linux on the desktop to be for the last two decades.
I hear you, though one of the newest CSS features does in fact support this. It's called the anchor positioning API: https://developer.chrome.com/blog/anchor-positioning-api

The problem with this specific API is that it depends on source order. To have element-b anchored to element-a, element-a must come first in source. I'm not really sure if it was designed that way or just implemented that way in Chrome, but it's the behavior I experienced when I played around with it.
People generally know from participating in moderation because they flag comments and posts themselves.
The Soviets were pretty big on "nuclear all the things", given their expertise in it. (Chernobyl being more of an economic and operational/communication fuckup)

And also, it was a better solution to their particular set of challenges: powering remote installations far from the nearest urban center (and powerplant).

Anti-nuclear sentiment in Europe seems to have hardened as a consequence of (a) Chernobyl, (b) Germany realizing they'd be on the front lines in any war, & (c) various other nuclear incidents (US and UK).
I don't think they are removed by moderators, they are flagged.

HN is a small community , and frankly more moderate than everywhere else (except twitter these days).

Sadly, censorship in 2024 is coming by the people, for the people.
Opinion | How smart campuses are preparing for another wave of Gaza protests
But surely Anthropic knows better than almost anyone on the planet what does and doesn't work well to shape Claude's responses. I'm curious why they're choosing to write these prompts at all.
The HN crowd is far right but they would never admit it. Most people are unaware of how political parties shift in composition and ideology over the decades.

The contemporary American software engineer resembles the professional class Reagan Republicans who dominated the suburbs in the 80's and 90's.
The website says:

> Fast enough to recompute your entire UI every
frame

Yet, when I scroll the front page, made with Clay, it stutters and feels like it can barely handle smooth scrolling, even on a modern Apple Silicon laptop.
These days, “get another computer” and “get a bigger computer” are basically the same thing; differences primarily residing in packaging and interconnects, but boy howdy can those interconnects make a difference.
NVIDIA may be overvalued, but they can probably "grow into" this valuation with ongoing industry adoption and inference volume, even if LLMs don't get a whole bunch more capable than they currently are. Google now selling corporate Gemini annual licenses for $200/pop to help write e-mails and marketing drivel, etc.
D&D publisher walks back controversial changes to online tools
> 1 For this project, we focused on the machine learning (ML)
branch of AI because that is the technology underpinning most
business applications of AI today. This includes AI models
trained using supervised learning, unsupervised learning, or
reinforcement learning approaches and large language models
(LLMs). Projects that simply used pretrained LLMs (sometimes
known as prompt engineering) but did not attempt to train or
customize their own were not included in the scope of this work.

buried in a footnote. i wasn't sure what "ai project" actually meant

I wonder what the failure rate if it actually included "things that use a llm as an api" is too
that's expected behavior on any new wave right? I've seen the same with microservices, ORMs, SPAs, etc - "use this hammer any way you can!" - and with product trends (crypto, mobile apps, SoLoMo, etc). It's normal. Companies live and die on how well they surf hype cycles.
That’s fair, ‘bloated’ is very vague. And TBH I have multiple stories of devs complaining about bloat in order to justify a complete rewrite that turned out to be multi-million-dollar mistakes.

OTOH, I’ve been developing software long enough that you see the same pattern over and over. All application software is fresh and fast at first, and then gets bloated over time, where bloated means it accrues technical debt and accrues hard-to-manage code and accrues features that conflict with each other and slow down development.

Maya’s definitely bloated, and it has been for decades. Users were complaining about it being slow and buggy and a mess of a UI when I was using Maya in production more than 20 years ago. I went to the Maya developer’s conference around maybe 2002 and the devs were complaining about it being hard to maintain.

MacOS got a total ground-up rewrite in between versions 9 and 10, and it helps they built the UI on top of an existing nix. I hope Firefox and Blender last as long as Finale, only time will tell.

But it’s a good point that some bloated software hasn’t died, I have to assume that is because they’re making enough money from it to continue its development. I guess that would be true for Finale too, but that the income isn’t sufficient to carry it forward.
AI at the Edge eBook
https://archive.ph/6Mxw6
Anecdotally, I've never seen a project be a career ender. Most individuals have many projects under their belt, it's rare that an individual has bet the farm on an effort in such a way that others would not employ them.

When a project fails, the lessons are often valuable for the next project - when a project succeeds it can often just be do to market position.
Exploring How Web Servers Handle Requests
So someone born in Sub-Saharan Africa is almost definitionally "less intelligent" than anyone born in the US by this definition? I would say that this does not correlate well with "intelligence" at all.
Can you explain how types would help with code structure? From experience, even with typed TS nothing prevents developers from creating a big ball of mud
I have never obsessed over sleep metrics.

If I am sick, I accept I am sick.

Like most people, I've had jobs with physical demands. Feeling tired is a normal part of a hard day's work.

"Productive" is a bullshit goal. Good luck.
Or it will be used for interconnector exports, to power battery storage, hydrogen production and synthetic fuel production.
Positive feedback loop isn't the only risk of nuclear power. Fukushima had a negative void coefficient too, right? Rather than pretending there's negligible risk, I'd rather say it's there but the alternatives are worse.
Why is using stored renewable energy (e.g., chemical, physical) not an option?
what do you mark as the beginning of the boom?
> While that's horrifying, the dam doesn't bleed radioactive particles

Another way to put it: if the worst case happens, and a dam breaks and floods a large area, you can immediately go there and walk all over the damaged area with little more protection than a pair of sturdy boots. The worst you'd find would be things like transformer oil and some generator lubricants.
> HN is not at all "awesome" at moderating content objectively

I made no such claim.
You might be right.

The article says they were "pressured", it doesn't seem to to say how that pressure was applied. To me, it reads as though compliance was not mandated, just requested. Without more info, I suppose it could be taken either way.
Many studies have shown that the heavy metal content in (Chinese) rice exceeds food safety standards, especially levels of cadium (Cd) and lead (Pb) https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9754602/