skysight-inc/HackerNews huggingface dataset:
Writing and editting code is a lot more flexible, but it gets repetitive, and I have written the same stuff so many times. It's all adhoc, and it fixes the problem at the time, then it gets thrown away with the notebook only to be written again soon.

As an example, I frequently want to run analytics on a dataframe. More complex summary stats. So you write a couple of functions, and have two for loops, iterating over columns and functions. This works for a bit. It's easy to add functions to the list. Then a function throws an error, and you're trying to figure out where you are in two nested for loops.

Or, especially for pandas, you want to separate functions to depend on the same expensive pre-calc. You could pass the existing dict of computed measures so you can reuse that expensive calculation... Now you have to worry about the ordering of functions.

So you could put all of your measures into one big function, but that isn't reusable. So you write your big function over and over.

I built a small dag library that handles this, and lets you specify that your analysis requires keys and provides keys, then the DAG of functions is ordered for you.

How do other people approach these issues?
What always worried me is that nobody ever challenged these methods. We just accepted it as fact. Endless crime tv shows reenforce that these methods are infallible. People that watch these shows then become jurors. Scary.
Thanks! I have updated my post to use your code. It is indeed much nicer. And yes, I don't write much FP.

I just improved the comprehension code as well using the same idea as your code, eliminating an entire list!
Why bound it to the US Federal service?
Yep - I've got three separate devices that would appear to have Espressif SoC's

A Hildebrand IHD (reads the smart meters and pops the readings onto an MQTT topic). The Octopus Home Mini, and finally, a Tado wireless controller.
I hear you, but I live in Atlanta. Now maybe if they found some way to do some sort of Indian - soul food fusion instead of every dish being clearly one or the other...
Just downloaded it and mucked about. It definitely works without the cloud, because it works while I'm offline. Looking at the code, it looks like an opt-in feature where you can provide your API key to Tavily.

That said, it seems built toward "Cheat on your homework" and doesn't reliably surface information from my notes, so I uninstalled it.
Things have indeed gotten more expensive. But is it crimping your style? Do you eat enough $7/doz eggs and drink enough $11/gal milk to make a difference?

There are quite a few Americans for whom it is, and I'd also like to see more aid given to Americans who need it. Unfortunately, I don't see any effort towards that. Any savings from canceling foreign aid appears to be directed into tax cuts -- sadly, not something that benefits those who can't afford eggs.
There is some use to bringing deepfakes to mass adoption. The thing is that since the tech exists, powerful actors with lots of resources will develop these tools for their own use either way. The question is whether they'll be able to fool the masses who are unaware that such realistic deepfakes can exist, or whether they will have no effect as everyone and their mom have already seen similar AI slop on their Facebook feed
This is a better source: https://blog.mozilla.org/en/products/anonym-technology-overv...
Unlike the procedural approach, every step in a functional chain is wholly isolated and independent from the others. It is strictly easier to split this style of code up into two halves and name them than it is to disentangle procedural equivalents.

I have quite literally zero times in my ~25 year career had to deal with some sort of completely inscrutable chain of functional calls on iterators. Zero. I am entirely convinced that the people arguing against this style have never actually worked in a project where people used this style. It's okay! The first time I saw these things I, too, was terribly confused and skeptical.
You could profile it and find out.

Another commenter pointed out that compilers have very different performance characteristics to games, and I'll include web servers in that too.

tsc needs to start up fast and finish fast. There's not a ton of time to benefit from JIT.

Your server on the other hand will run for how long between deployments?
OpenOrch – A Distributed Alternative to Ollama
.NET executables requires a runtime environment to be installed.

Go executables do not.

TSC is installed in too many places for that burden to be placed all of a sudden. It is the same reason why Java has had a complicated acceptance history too. It's fine in the places that it is pre-installed, but no where else.

Node/React/Typescript developers do not want to install .net all of a sudden. If you react that poorly, pretend they decided they decided to write it in Java and ask if you think Node/React/Typescript developers WANT to install Java.
Race and class friction and conflict in America is getting more complex than black and white, and many people are still stuck thinking of it that old way. A whole lot of people a stuck in rather well insulated ideology bubbles and there's not much self-doubt going on.

It's really quite difficult to not be demeaning because the core of the problem is bigotry across the political spectrum, making significant unequal decisions about individuals based on shallow characteristics (appearance, ethnicity, gender expression). And you can't really have a discussion about it because nobody will accept that making decisions based on a person's race/gender/... is discrimination regardless of which group gets the positive benefit. And you can't really have a discussion about it because "yeah but what the other guys did or are still doing is way worse".

Bottom line: to succeed in the 21st century you have to weigh pros and cons and live in the grey area. This is an optimization problem not a battle between good and evil. Viewing the world exclusively through the "good vs evil" lens is going to lead to a civilization threatening war.
>For me, roughly 5 calls in a chain is where things begin to become harder to read, which is the length of the example I used.

This isn't just about readability. Chaining or FP is structurally more sound. It is the more proper way to code from a architectural and structural pattern perspective.

given an array of numbers

1. I want to add 5 to all numbers
2. I want to convert to string
3. I want to concat hello
4. I want to create a reduced comma seperated string
5. I want to capitalize all letters in the string.

This is what a for loop would look like:

// assume x is the array
acc = ""

for(var i = 0, i < x.length; x++) {
value = x[i] + 5
value += 5
stringValue = str(value).concat(hello)
acc += stringValue + ","
}

for (var i = 0, i < acc.length; i++) {
acc[i] = capitalLetter(acc[i])
}

FP:

addFive(x) = [i + 5 for i in x]
toString(x) = [str(i) for i in x]
concatHello = [i + "hello" for i in x]
reduceStrings(x) = reduce((i, acc) = acc + "," + i, x)
capitalize(x) = ([capitalLetter(i) for i in x]).toString()

You have 5 steps. With FP all 5 steps are reuseable. With Procedural it is not.

Mind you that I know you're thinking about chaining. Chaining is eqivalent to inlining multiple operations together. So for example in that case

x.map(...).map(...).map(...).reduce(...).map(...)

//can be made into
addFive(x) = x.map(...)
toString(x)= x.map(...)
...

By nature functional is modular so such syntax can easily be extracted into modules with each module given a name. The procedural code cannot do this. It is structurally unsound and tightly coupled.

It's not about going overboard here. The FP simply needs to be formatted to be readable, but it is the MORE proper way to code to make your code modular general and decoupled.
OT, I'm so very looking forward to some language supporting a pushout (path independent) lattice of theories (types, operators, laws). So abstraction has math-like locality and composability and robustness.
You might be able to turn off developer mode once it's enabled, maybe?

Anyway, apps have literally no reason to query the status of developer mode and should not be allowed to do so.

I don't think apps should be able to query the status of the OS' "integrity" either (which in practice just boils down to a "Google-approved" boolean anyway), but they do at least have somewhat legitimate reasons for wanting to do that -- Pokemon Go wants to make sure the GPS coordinates it receives aren't spoofed, for example.

But there is no reason they should be able to query the status of developer mode.
I think this varies a lot depending on what you're doing.

I agree 100% that matplotlib is really slow and should be made to run as fast as humanly possible. I would add a (3) to my list above: optimize matplotlib!

OTOH, at least for what I'm doing, the code that runs to generate the data that gets plotted dominates the runtime 99% of the time.

For me, adjusting plots is usually the time waster. Hence point (2) above. I'd love to be able to make the tweaks using a WYSIWYG editor and have my plotting script dynamically updated. The bins, the log scale, the font, the dpi, etc, etc.

I think with your 8 slices examples above: my (2) and (3) would cover your bases. In your view, is the rest of matplotlib really so bad that it needs to be burnt to the ground for progress to be made?
Yep! This is just to inform that everyone is different so we're not teaching the one right way. That's why we didn't set it at 100% form strictness for every one of the exercises. We just correct your form to the exercise shown, but no means claim that it's the one true way.

Yes! Not for every single workout since I've been working out for a while. My friends and I occasionally do squat challenges and pull up challenges for fun. Think we set them at like 100% strictness whenever we do them. I have one where I do 100 squats at 70% strictness since it takes me like 5 minutes to do them. Shreds my legs lol
I don't think there will be a movement away from type hints in python any time soon, they're too useful as guardrails for an LLM. But even without using an LLM I'm definitely faster with type hints enforced because I can just sort of feel around with autocomplete. Sure, the transition sucks, but once you're there the benefits start stacking up pretty fast.
Yeah, but those are probably two of the easiest to understand characters in that show
Notwithstanding what you said, it is worth noting that the US Space Force has been a long time in the making: https://en.wikipedia.org/wiki/United_States_Space_Force
> Not to be confused with gravitational waves from massive stellar bodies, [gravity waves] are an atmospheric phenomenon when a packet of air rises and falls due to variations in buoyancy.

For those similarly confused by the title as I.
https://www.reuters.com/world/us/trump-says-he-will-label-vi...

> President Donald Trump said on Tuesday he will label violence against Tesla dealerships domestic terrorism as he appeared with Tesla CEO Elon Musk to show support amid recent "Tesla Takedown" protests and the slump in the company's stock price.

Seems like his and Elon’s symbiotic relationship is only getting tighter
The immigration courts are part of the administrative branch. Homeland overseas it, not State. He was detained by ICE, which is part of Homeland.

You are miles out of your depth.
The Lidl-coffe is very cheap at $20/kg! That is my definition of what is currently the cost of low-end, budget-beans.

Stepping to twice the price of the low-cost beans is my definition of premium. Like going from a 30k Fiat to a 60k Alfa Romeo.
Been here since day 1, I was already semi-following PG because of his writing on Lisp.
Of course, the software that goes onto a NixOS installation is the same as on most other Linux distros so it's not any different in that regard. What I was trying to say is the config management aspect - especially when used with an ephemeral root FS - provides an entirely different way of managing your computer that's not really possible to replicate anywhere else (except Guix as I've mentioned).

Not that that makes it objectively better or worse. The config shtick of NixOS can also be really annoying to someone who just wants to install stuff and move on. It comes down to personal preference.
Neat idea. Why logs, and not metrics too? You can characterize an accurate "baseline" system behavior through a combination of system level and userspace metrics. This profile would offer more depth than what you'd otherwise piece together with userspace logs.
In San Francisco, yes, absolutely.
> why are stock market players any different, if not worse?

Because no one stays rich being stupid. If someone like you "knows" about media manipulation, wouldn't they know about it as well, and they would just ignore whatever "lies" the media is publicizing, and just do what they think is the best so they can remain rich?

But oh noo, you're the one who can see through the "media lies", those people playing with billions of dollars are just so goddamn thick!
It's just a FastAPI app with endpoints that I developed and deployed before OpenAI released structured outputs that used a custom grammar to enforce a pydantic-like schema for Chain of Thought rollouts / structured data extraction from unstructured text. I also use it for a video transcription knowledge base generation API

https://arthurcolle--dynamic-schema.modal.run/docs
Adding enemies and collision detection in Next.js
Maybe because real estate prices are not captured by CPI, only rental prices. People are taking longer and longer to save up for a house[1].

https://www.crews.bank/blog/real-estate-prices-vs.-income
> I think what's missing is one (or more) step in-between, possible a graph database (eg[2]), which the LLM can place all it's information in, see relevant interconnections, query to question itself, and then generate the final report.

Quickly, productize this (and call it DeepRAG, or DERP) before it explodes in late 2025 - you may just beat the market to it!

See: https://news.ycombinator.com/item?id=43267539
The problem with this definition is that modern workflow systems are not through predefined code paths, they do dynamically direct their own processes and tool usage.
YC has been exploiting naive founders for 20 years. Congrats everyone.
Do you have data to back up this claim or is this just bar talk ?
Looking forward to when there will be a broad llm api accessible in the browser via js
Maybe it's because I'm not familiar with such style, but I don't like how the code hides operational details. That is, if `books` contains one billion books, and the final result should contain about a hundred authors, how much extra memory does this use for intermediate results?
Applying it to rent is arbitrary. The general point is that it is inflationary for all goods and services.

That is assuming UBI is funded through government borrowing as we saw with COVID stimulus. If funded through new taxes the inflationary impact should be much less.

(I don’t have enough economic training to determine how much less.)
It could be largely a redistribution of rotational energy in the system.
Where they contacted could not particularly stable, heat would be generated,
energy dissipated. maybe ice state change helps, with luck a messy rolling contact could become a series of slingshot orbits,
but I am just making stuff up here
"Before that, they had a sugar daddy billionaire. Obviously, Arianespace doesn't have that."

Ariane have ESA as sugardaddy. And SLS has NASA. Both are consuming more more money than SpaceX with less results. The main difference is that nobody pushes them to be more ambitious.
Maxwell was more than 40 years ahead of Einstein
India's Battle to Control the Democracy Narrative
> If Apple let you run macOS from a tethered iPhone, it just might!

Maybe that's why? It seems that people just aren't currently capable of fathoming the concept of "one device for everything". If Apple did it though, people might realize it's a good idea. Then again, I think it's unlikely that they will, because they do want to sell you a Mac as well as an iPhone/iPad.
They for sure will.
I wonder how many of these are just attempts for Google to try to slim down how much equipment they have to hand their own employees internally.

IIRC, they started handing their contractors Pixel Tabs and docks to work from?
> Comparing a robotic system to a human, the current labor force is lower skilled, lower ability, and a much higher attrition rate. ... The US must take part in the robotics revolution before all labor is handed over to China to own in perpetuity.

The US capitalists must monopolize all upcoming labor commodities (all-robot) before China does it. Definitely some projection here.
Nice, that's a cool use case. I like that the local model gives you more privacy when sharing potentially sensitive data like voice recordings with an LLM. I've been interested in hosting one locally, but I was curious what I would be giving up compared to the commercial models. It sounds like its still possible to get a reasonable result with some caveats. Thanks.
Opens with AI art and a banner about how this is an AI site, I am just gonna assume the body of the text is AI spam as well and close it.
Doge Dataset
Appeal to aithority
Well, my question implies that being a landlord would be a remaining source of income, for starters. But if that landlord also owns the automated farms and factories producing consumer goods without labor, then the people they're renting to really might not have any other income. At any rate, where a UBI is substituting for employment income that someone used to earn, but is no longer able to, then I don't think the renter gains purchasing power to pay more for rent. (They do gain free time though).
I think most MAGAs have this idea that 1) manufacturing is a good paying job and 2) if the US isn't manufacturing stuff, that means China is doing it for us, which will lead to 3) when we decide to go to war with China we will not have the industrial capacity to fight the war. In their world model, the opportunity cost of manufacturing things domestically is not considered, and certainly not the benefits of manufacturing things cheaply abroad and having US workers move up the value chain.
> I see parallels between the debate about typed vs. non-typed errors and the debate of static typing vs. dynamic typing in programming languages.

Author of the post here. I also see this parallel in error handling discussions. But seems like it's much harder to sell error handling than static typing. Static typing was also much more debatable in the past then now so maybe same can happen to error handling mechanisms in the future as well.

Your project seems very interesting! Typescript is sophisticated enough to model complex Result-like types that can narrow-widen error cases throughout the code. I will check it more if I find the time.
> and was used for “consolidation, journals, business-critical reporting, and analysis.”

Not sure what 'journals' is supposed to mean here but “consolidation, business-critical reporting, and analysis.” does not mean operations day to day use, it means high level management reporting

My position is that the article (or the consultants who are trying to sell the ERP) are exaggerating the role of the spreadsheet.
That's not what idempotent means. Idempotent means forall x, f(x)=f(f(x)). Most pure functions are not idempotent. Heck, f(f(x)) doesn't even type-check for most f. The typical name given to always getting the same results is just "pure". It doesn't depend on any implicit state anywhere.
This argument applies equally to never increasing anyone’s wages. If income goes up for anyone, rent will instantly rise to match the increase.

(It’s not clear why this only applies to rent and not other things people spend money on.)
Show HN: Metacheck – preview how any link appears on social media and chat apps
Hey HN,

I’ve been an indie hacker for a while, but I haven’t had much success with my past projects. Recently, I came across Marc Lou’s advice about building free tools just for fun, so I decided to give it a shot.

I built Metacheck, a simple tool that lets you preview how any link will appear on Twitter/X, LinkedIn, Whatsapp, Telegram, and other platforms. No API keys, no setup—just paste a link and see the preview.

Why I built this
I often ran into issues where social platforms displayed broken or unexpected link previews. Debugging Open Graph meta tags was annoying, so I made a tool to make it easier.

How it works
Fetches metadata from any URL
Parses Open Graph & Twitter Card tags
Shows real-time previews of how the link will look when shared

Try it out: https://metacheck.appstate.co/
I think anyone can flag a comment, and if enough people flag a comment, it will become flagged.
Maybe they’ll subsidise them so they can monitor us 24/7/365
It "was known" in the 60s that Japanese electronics and cars were inferior in design and quality. Chinese products are going through the same trajectory.
The one issue with procedural is all the temporary variables and the fact that the variables themselves are intertwined with function calls. With Lisp, the whole branch is self-sufficient. It's a different reading method. Just like reading Prolog requires a different strategy.
Based on the responses here, it seems to vary a lot between countries, within countries and over time.
> Stepping to twice the price of the low-cost beans is my definition of premium. Like going from a 30k Fiat to a 60k Alfa Romeo.

Your definition of premium isn’t based in reality, though. It’s more equivalent to going from a $5000 motorcycle to a $10000 used car, to continue straining the car analogy.

If the $86/bag coffee is the equivalent of a Ferrari, then scaling down by the same amount would be your $60k car. Which would be like paying $14/bag (for 12 oz of coffee).
Started reading HN nine years ago, when I screwed up my third startup the year before, was devastated, and needed some inspiration. And among the shared news were stories that inspired me again, that made me come back to this site every single day ever since. I like the cultivated discussions, like the things I learn about, and I feel like I never miss any tech trend. Excellent community. Love it.

Thank you PG, thank you Dang! Thank you to all the contributors for the high quality content.
I'm fascinated to see the vehicles being charged with cables that surely have to be manually plugged in.

I was just assuming there was some kind of "docking" mechanism.

Unless there's a robot that plugs and unplugs each vehicle?
NTSB says DCA midair collision part of 'serious safety issue'
Your comment perfectly illustrates why communism doesn't work. The one-sentence summary of communism is "from each according to his ability, to each according to his needs" and clearly people's needs grow. I don't know how much longer CCP can still keep communism in its name; how will CCP leaders reconcile that the fact that only by abandoning communism did the country rise?
Well it's not quite arbitrary because it will induce supply in other goods and services. Rent in high COL areas is driven primarily by land rent (i.e. cost of land, regardless of whether that land is actually rented to the building on top of it or not), which has zero supply elasticity.

And then the other portion of rent (the building itself) is also pretty darn supply-inelastic as well, though not entirely.
The mod system uses lua, so that was always possible.

https://lua-api.factorio.com/stable/
1ct5 44t t5