skysight-inc/HackerNews huggingface dataset:
Don't forget about the Marshall plan or the massive amounts of technical advancements due to the US or the billions of people lifted out of poverty due to the US secured global order.

The US has been an imperfect superpower but objectively the most benevolent.

Realistically, what would be a better alternative to US hegemony?
added...

> (I can be hopeful but I hold not outlook for such better models. Too many backwards compatible apps and too much depends on our existing code.)

I see it that we (you, me, almost all programmers) are so practiced at the "file" way of thinking, that we genuinely struggle to look far beyond that paradigm. We see the advantages of "files" but have no experience with much else, so we struggle to make comparisons.
That's because it was never about helping "level the playing field" - thats just the message they placated the public with. Rather this is a patronage network; a way of giving gifts to client groups of the power structure.
Show HN: Make an AI talk to your own PHP code using Tool Functions
Hi HN,

AI Tool Bridge for PHP is a library which allows you to seamlessly empower your AI integration to interact with your own code and external services.

Why does this project exist?

The major challenge when integrating AI into any project is managing interactions between the AI and the rest of your application. This becomes especially complex when the AI needs to e.g. make API calls to retrieve information or trigger actions.

AI Tool Bridge for PHP elegantly solves this problem by offering a straightforward interface to define "tool functions" that the AI can utilize when it needs to interact with external systems.

An important optimization is the library's capability to generate the required JSON structure for a tool function. It does so by requesting only the required values from the AI and then generating the JSON based on a provided JSON schema. This approach guarantees the validity of the final JSON that reaches your application code.

Key features of this library include:

- Facilitating the definition of tools that the AI can use for external interactions.

- Providing a robust prompt structure to guide the AI on when and how to use these tools.

- Ensuring that the tools are triggered with complete and correctly formatted JSON.

The code is still early stage, but I'm already using it successfully to build an AI-powered end-user application where the AI has the ability to talk to several of my external software systems and can trigger my own application code, all without the need for any official and public GPT-4 plugins.
This.

I'm not good at prompting (if I believe what others say they can do with ChatGPT), but that's one thing that bother me with this system.
They will do anything you ask them to without questioning it (in the limit given by their creators).

Is it possible to set it up in a way that they will challenge you instead of blindly doing what you ask? In this particular case, is it possible to ask it to do a code review in addition to performing the task?

I've tried various time (with the v3.5) to "tune" it so that each answer will follow a specific format, with links and recommended resources, with several alternatives, etc. The goal is to have it to broad my perspectives as opposed to focus too much on what I'm asking. But it never worked for more than a couple of questions.

Are there ways to do that? What am I doing wrong?
> However it does not really go into the orbital mechanics to offer any intuitive explanation of this surprising result.

I think you just need geometry to get an intuitive explanation.

1. Draw the Sun and the orbits of Mercury, Venus, Earth, and Mars.

2. Pick a point on Earth's orbit for where Earth is.

3. Draw a circle around Earth that intersects the Sun.

4. Draw a line, tangent to that circle, that intersects the Sun.

A hypothetical planet that orbits the sun at 0 distance has half of its orbit in the circle and half of its orbit outside the circle.

As planets get further from the sun, an increasing proportion of their orbit sits outside the circle.
> NATO doesn't force countries to join

NATO doesn't, US does.

But of course it "doesn't force countries".

It just "happenes" after a colour revolution.
Anybody of high status knows this is true.
Just that, it is, I've been banned before, for even lighter things...
Friend of mine went last month, seemed to have no issues.
Why would a plate in your body set off a warning light? It's not a security risk.
and yet, the CIA, like its equivalents in all other countries, runs completely out of control.

I will happily let you call me names, if i can somehow fool you into simply letting me do WHATEVER i want.

a sitting US democratic senator even went so far as go on national TV and say "the intelligence community has six ways from sunday to get back at you".
Egg-smelling tech may keep male chicks out of the grinder
> CMA-CGM has made 40 billion € of profit in the past three years.

And it seems like they didn't do the responsible thing and set it aside in a rainy-day fund, but instead they and their competitors went on a shopping spree.

Honestly, the way things have went in the past, I'd say a maximum of three years before the first one whines and calls for government subsidies.
> More propaganda, listen to the other side... oh well it's banned everywhere.

What are you talking about this, is literally false, I see pro Russian narratives everywhere, including here, you guys don't get banned despite how despicable the views you hold are.

Support Russias genocidal, torturous, raping war in Ukraine all you want, but don't shout about being banned when you get shouted down by facts.
Reminds me of how Bob Moses built the bridges of Long Island too low for buses to pass through [0]. Talk about structural racism.

[0] https://archive.ph/OTnMP
There is an obvious trend to scaling and performance by making models hierarchical ( not strictly but an element of local learning and global tuned connections ).

The obvious next step is to have specialised models loosely connected ( and trained [1] ) as a whole.

[1] We've had multiple models connected with text->concept and concept-> image etc
but I'm not sure if that connection is trained yet.
They are judges not politicians. Other than that, fair enough
I don't think that way. It's more like this: your two blocks down the street neighbor drives by you every morning, would you classify it being closer to you? Because that's how we look at the Venus at the moment. Mercury should be the real neighbor.
Hey Hacker News! I'm Robert - the founder of Defguard. If you would like to get some background, motivation - please read the Defguard announcement blog post:

https://teonite.com/blog/defguard/

Anyhow, I'm here every day, so please do not hesitate to ask any questions - I’ll be more than happy to answer!
6. Referring to a person whose gender may be known or not, but is completely irrelevant in a given context (most) and including it in the sentence would only introduce unnecessary noise, leaving the recipient puzzled over what relevance this piece of information has instead of focusing on the core message.
OpenAI Seeks to Expand in Europe as CEO Floats Poland Office
I’ve been using swift full time since 2014, before that i was using objective c full time.

I assure you that swift is a huge improvement for iOS and mac development, and the statistics shoe pretty clearly that this is also the consensus.

Some older developers might be wedded to objc because of old habit, but if you ask 100 developers that are new to apple platforms to choose between the languages, I’d be surprised if even 1 picked objective c.

It would of course be strange if a modern language, developed specifically for use on apple platforms and heavily supported on the framework side, would not be more suitable than an old fashioned language from the 80s.

Not sure what you mean by playgrounds, they are simply amazing and keep getting more powerful. And how does mojo even enter the discussion?
Good point about rebuilding vs. healing. We're kind of rediscovering it with economies of scale and price of labor making it much cheaper to replace things than to repair them.

I can imagine evolution creating macro-scale wheels that can be healed, and/or able to survive long enough before failing to be advantageous - after all, bones and teeth can hardly be healed if badly damaged, and yet they last long enough to stick around as core design elements.

This is why I mentioned roads. Whether or not evolution could iterate its way to macroscale wheels, it wouldn't, because they'd be useless without roads. Legs may be more complex overall, but they're an all-terrain solution that can be incrementally improved, and every improvement step grants improved survivability.
> This is propaganda and you don't even know it... People get silenced in the US every day because they have a different opinions on current events, for example the US proxy war with Russia.

The irony of your blatantly false statements is that half of what people express on the war in Ukraine here would cause them to end up in jail in Russia, but the opposite views don't cause you to end up in jail in the west.
> Probably people are used to think about distance between stationary places so they look at the orbits, not to where planets are on their orbit.

These people are more correct than you give them credit for.

1. If you look at their orbits (and not momentary positions), then the orbit of Venus is closer (less distance) to the orbit of Earth than the orbit of Mercury is.

2. It takes less delta-v to go from Earth to Venus than to Mercury.
I personally kinda rather the 72 Seasons album, there are some really good songs on there IMO. It certainly works for me better than Hardwired did. The drumming is okay.

But I don't understand which parts you're saying are so technically impressive. Most of it seems pretty simple to me (not in a bad way!) and fairly easy to play. Do you have any timestamps of what you're talking about?
Google is not going to take me to that page first when I search for how to do something in Caddy. It's going to take me to the directive, most likely.

To say it again:

> It's all very confusing for someone looking in the docs for a solution and instead has to learn how everything works, whether they want to or not.
I agree, but that’s still manipulative. “Get mad at me, with whom you have no recourse whatsoever, rather than considering whether anyone else might have contributed that you could possibly effect.”
Love the idea of innovating asynchronous communication, huge innovation potential when you look at how companies communicate via email the same way they did 10 years ago and how many meetings could have been a voice message, not just an email. I am curious to try out your new AI support features, we may have a use case for this in our innovation consultancy where we are looking to design short podcasts describing problem/solution fit of new ideas to flow into our internal innovation funnel.
interesting how this describes the regional banking crisis
Propaganda’s working very well if you actually believe this is the first war since WWII to redraw land borders. And I’m not even counting the invade-and-install-a-puppet kind of wars.
The only place I've seen this topic discussed is here in Switzerland about men in teaching positions. Maybe also mentioned in healthcare but only as a general observation, not that anybody is thinking to do something about it (the healthcare I mean).
They're fundamentally different wars in their motivation as well.

The US invaded foolishly invaded Iraq and Afghanistan with the ultimate end goal of destroying evil power structures Sadam/Taliban and trying to establish liberal institutions. No one was trying to destroy local cultures or languages.

Russia's invasion of Ukraine, just like WW2 Germany's, has the end goal of genociding Ukrainian culture and subjugating the Ukrainian people
I had the same thought: if there was another planet inside mercury's orbit, that would be the mostest closest planet to all the planets, stealing mercury's status, and so you keep iterating on that until you reach smallest and smallest orbits around the sun center of mass (which is inside the sun).

So, if you when you say "the sun" you mean the sun surface, then yes, the sun is always the mostest closest celestial body, to all planets
Awww nostalgia hits... some very very long time ago I was working on software tested on KitKat. It's better not to mention it during interviews otherwise will be dismissed as a dinosaur.
> I know SolveSpace has way less features compared to FreeCAD

At least SolveSpace has assemblies. FreeCAD has four different community plugins which all are wonky in their own ways.

I don't know if I'm just weird, but to me assembly is kinda fundamental feature of CAD. I mean you'd think your basic workflow is to design some parts and then see if they actually fit together, but apparently that sort of thing is not what FreeCAD is for.
Lots of folks on your street are getting around town with zero emissions and you're moaning about that while talking about the troubles of fixing your polluting vehicle? Have you ever paused to think how inconsiderate it is to pollute the air people have to breath? I'll take smug white people in silly clothing over polluters any day.
In this context, what would be useful is something like a linker-pruning at the source level.

That is, when your code is compiled, the linker can prune code that is never called. Then a feedback mechanism could show which part of the code is actually used (like looking in the .map of the linker).

Does something like that exist?
Yeah, it seems like the journalist community shot themselves in the foot there. It's not just the limited effects of a single bar, but the fear that "this bar could be owned by a newspaper" would create amongst inspectors. Knowing that there's lots of people working hard to catch you out is bound to increase honesty amongst inspectors.
Yes, a hypothetical planet located at the centre of the sun would be every planet's closest neighbour, by virtue of never getting as far away as others.
Reduced Oxygen Intake Linked to Extended Lifespan
The Economist has pretty broad world news coverage. You probably won't do better than that. (US outlets are much more US--and to some degree Europe--centric. The US used to have decent weekly news magazines but they basically don't exist any longer and, in any case, were fairly US-centric.
It's 30 minutes later. I'm still rofl'ing! I first thought, bro, you obviously meant "competent". This story didn't end the way I thought it would.
It just depends how you measure "closest".

Similarly, Mount Everest is the highest mountain (above MSL), however Mauna Kea is higher if measured by prominance (starting from its base which is under water).
Code tells you what it does.

The commit message tells you what you meant it to do. When fixing problems in complex systems this can be vital.
It might be… I would say 95% of code doesn’t need comments. But then you encounter that one complicated function and you go wtf? So I think I would prefer something more targeted. Like a vs code extension that lets you summarize any code snippet.
Join a local caving group\club (grotto in the US I believe). Pretty much the only way, unless you happen to know an experienced caver that you can tag along with.
> MS [..] were and are sleazy and ruthless to a fault.

Point me at the good companies? The ones not self interestedly trying to maximise both market share and profits.

"For Profit" companies have clear incentives. This behaviour is common and feels like a feature not a bug?
How does that work? You steal a bike and ride both home? Wouldn't a van or being on foot be the better approach to stealing bikes?
I wouldn't call the term proxy war a narrative. It's a term with a definition, which applies here.

This is also a "both things can be true" case. Obviously the supporters of a proxy war are allies of the party they're supporting.
> It would’ve been trivial to make the language disallow nil

Which would interfere with Go's philosophy that zero should be a valid (usable) state for types. What would be the default value of a reference type without nil?

> separate goroutine address spaces

This is not trivial to implement. The only way I can think of is to start each goroutine in a new process, which brings along other downsides - everything must be copied, cannot pass file/socket handlers between goroutines, etc. Doesn't seem to be worth it.

> crash the process on unhandled panic in any goroutine

Go does crash the process on unhandled panic in any goroutine:

# main.go
package main

func main() {
go func() {
panic("hehe")
}()

for {
}
}

# go run main.go
panic: hehe

goroutine 5 [running]:
main.main.func1()
/[...]/main.go:5 +0x27
created by main.main
/[...]/main.go:4 +0x25
exit status 2

> The reason Go annoys people is the unforced errors.

This is the criticism I've also had, and raised an issue on GitHub. Unfortunately, it's impossible to fix this without breaking backwards compatibility.

> But what it gets wrong had solutions long before Go existed and those solutions were wilfully ignored.

They were wilfully ignored, but only because the tradeoffs didn't seem worth it at the moment. You make it sound bad, as if Go devs were simply high on crack and knew what they doing was wrong, but did it anyways, when in reality it's more of a case of those "solutions" not being compatible with the goals of the language, or simply nobody coming up with an elegant way to incorporate it.
A lot of users require stability and this is how stable software distribution works. Only security fixes get backported, but no functional changes. It is unfortunate that Caddy hasn't adopted a segregated LTS and non-LTS approach, but that's not Debian's fault.
The rising trend is people living alone and childlessness. Single person households are the hottest trends for years. The US may be less affected at the moment but they will inevitably follow the trend. Why people still care about hypergamy?

I do think that more research into artificial wombs is needed.
> Ha, painting tablet app feels like a rite of passage for programmer parents.

Only the first parents should have had to make it. The fact that one of these good home grown ones is not at the top of any search engine is a failure of the internet.
Programmers who learned how to code in school have an edge?
Do you think programmers who learned how to code in school have an edge over self-taught ones?
> Also, How come ukraine has not won yet?.

A better question to ask, is why has the "2nd most powerful military" on earth failing to capture a city <=300km from their own borders? and with there current rate of advancement will take all of Ukraine in ~30/40 years.
Can you give an example?

Not being self-evident isn't at all the same thing as not existing. They're not even in the same category.
you might like implicitcad
There are an infinity of possible sequences you could write down. The ones in OEIS are ones where there's relevance to it in terms of other sequences or other mathematical ideas that make them useful to describe.
Not to put pre-1990s journalism on some sort of a pedestal but people basically stopped paying first because their only free option previously was the evening news.
SSRF is a thing, just because you trust the code doesn't mean you've eliminated all security risks. The tools we use in the industry should all have secure defaults.

Glad to hear you're considering changing the default!

It would be enough for me if Caddy generated a password (that's hard for attackers to predict) on first launch, set that in a config file it has write access to (autosave.json for example), and then required Basic auth using this password unless the configuration specified otherwise. My problem is that this endpoint is entirely unauthenticated.
Very droll. Reminds me that "teaspoon half-life" paper.
M.U.L.E. 40th Anniversary Special
I don't mean to be so dark... it is just I get so worried about the future. It might be age, it might be that i clawed my way to a tiny bit of stability. Things could be great, I actually have seen you in a few threads and you always say the same thing that you love programming because you can focus on global ideas now. That to me sounds fun too. I like both. I am just worried you need less of those people which means more unemployment. For me when I say programming is ripped from me I mean it in all sense of the word.
Yes — do the exercises (both the explicit, and the implicit within the text)

(as for books: I would suggest anchoring with a good reference book, while using the internet to provide inspiration and motivation)
We have a similar invasive worm in Scotland and elsewhere in Europe: New Zealand Flatworm and Australian Flatworm.
I've lost count of the number of NZ flatworms that I've killed in salty water over the past few months. I'm losing hope of removing them from our small market garden. There are far fewer earthworms in the patches the flatworm flourished before I found them.

I am very interested how organic growers in NZ deal with them. If they're a problem in their native regions.
Your country is roadkill in a bigger race, you should accept that
Ah, so it's SQLite running on top of WASI, as a user (application, or rather library). Thanks for clearing that up for me.
The title should include On Average, but that makes the article less clickable. I wonder if they’ll update the title when Venus whips by later this year.
As both a recently cancelled subscriber and as parent with a child in college I can personally attest that my college student has simply moved on from Netflix
But not as high as maybe dirigibles or zeppelins or lightbulbs. And maybe clouds.

I'm sorry. I'm not sure what happened to me there.
Memories of seeing my Dad’s boxed copy of “Doctor DOS” sitting on the bookshelf next to his 286 PC are forever burned into my brain. Using DR DOS and XTree on that computer was my first taste of PC usage. Prior to that I’d only been allowed to use the family Atari 800. Years later, when Wolf3D hit the scene, I finally managed to convince him to let me upgrade it to MS-DOS 6, install a VGA card, and upgrade to 4MB of RAM.
That’s sort of what happens in the “toolformer” paper[1] which sets out the basic architecture by which things like chatGPT plugins work. Language models can learn to use “tools” provided by plugins. Those tools might themselves bee the specialized models you are describing (although for some plugins they could be a non-AI tool such as web search or whatever).

[1] https://arxiv.org/pdf/2302.04761.pdf
I'm sorry, but that does not absolve anything. The US's humanitarian engagement is 100% a ploy to increase trade and/or military installations abroad. What's more, even in the outlier organizations like the Red Cross or the Peace Corps, they are forced to cowtow to the political agendas of the region. For example, PC cannot promote birth-control in a lot of impoverished areas of South America due to Catholicism. This illustrates quite plainly that despite the best intentions of their members, these organizations are political power plays, not acts of benevolence.
GNUstep Desktop (GSDE) is modern NeXT/OpenStep-like Linux desktop environment
Then this is a court order based on laws and a legal process. In no way is this comparable to how Russia treats different opinions.
You do get that that code is garbage and if any dev tried to check that code in they would get laughed out of the room right?

It is pure pablum. It is almost the perfect example of LLMs producing fluent vapid bilge.
I'm pretty sure the ellipsis replaces another word... "a productivity application" or whatever
In that case no. Why would you do that?
> I ended up sticking to Ubuntu mainly because the support was better. You could find tutorials for everything you wanted targeting Ubuntu users. Whenever I had issues, I always found answers on forums. Being a total noob in the Ubuntu community was not frowned upon like in the other distros.

I think this was the consequence of the network effect brought by the initial push. The webforums weren't full from the first day.