skysight-inc/HackerNews huggingface dataset:
From the OP:

> Still, perhaps you are skeptical of parseNonEmpty’s name. Is it really parsing anything, or is it merely validating its input and returning a result? While the precise definition of what it means to parse or validate something is debatable, I believe parseNonEmpty is a bona-fide parser (albeit a particularly simple one).

> Consider: what is a parser? Really, a parser is just a function that consumes less-structured input and produces more-structured output.

The OP is saying that a validator is a function which doesn't return anything, whereas parsing is a function which returns data. (Or in other words, validation is when you keep passing around the data in the old type, and parsing is when you pass around a new type). It is true that there is code inside the parser which you can call "validation", but the OP is labeling the function based on its signature. This is made more obvious towards the end of the article:

> Use abstract datatypes to make validators "look like" parsers. Sometimes, making an illegal state truly unrepresentable is just plain impractical given the tools Haskell provides, such as ensuring an integer is in a particular range. In that case, use an abstract newtype with a smart constructor to "fake" a parser from a validator.

They are talking about the interface, not the implementation. They are saying that you should pass around a parsed type, even if it's only wrapping a raw value, because it carries proof that this data has been validated. They are saying that you shouldn't be validating this data in lots of different places.

> It may not be immediately apparent what shotgun parsing has to do with validation—after all, if you do all your validation up front, you mitigate the risk of shotgun parsing. The problem is that validation-based approaches make it extremely difficult or impossible to determine if everything was actually validated up front or if some of those so-called “impossible” cases might actually happen. The entire program must assume that raising an exception anywhere is not only possible, it’s regularly necessary.
What context am I missing to interpret this comment?
That last phrase hit me hard.
Printers are very expensive to design, especially if you care about reliably not jamming.

Printers are kind of expensive to manufacture.

Ink is extremely cheap to manufacture.

The printer industry charges a ton for ink and uses the enormous profits from charging for ink to cover the cost of design, and to heavily subsidize the price of printers.

Competing with printer companies as a startup looks like this: you burn a bunch of VC money to get a working design, then you burn even more VC money to make and sell printers at a steep loss, and once you have established a market presence your investors look on in horror as you use it to sell a very cheap commodity product a few milliliters at a time.
Too late. Not making a mistake is always better than correcting one.
Network Theory
> American housing is a Ponzi scheme

This is shockingly dumb. Please lookup the definition of a Ponzi scheme.

First, you do know that when you get a house you actually get the house, right? That’s the value residents extract from the house. Whether my parents could resell their house was only relevant when they needed to, big shocker, move to a different house in another area. Apart from leaving something for inheritance the re-sale value was irrelevant to the utility. That’s antithetical to a Ponzi scheme.

Second, anyone can build more housing and there is tons of land to keep building in 90% of the country. That doesn’t work in a Ponzi scheme if the real value that sets the price is margin that can be captured by builders.
I have no doubt it's a lesson he won't be applying broadly. There are lots of very sloppy communications in Tesla, particularly. Frankly, I'm betting the reason that the manual was turned into HTML was so that no one would be inclined to read about the cars' instructions in one go -- and find out how many mistakes there are in it. This isn't just an English as a second language problem -- its a problem that permeates the entirety of Tesla.
That's only sustainable for small pieces of state or some mechanism to exchange that small piece of state for a more complete piece of state.
Yeah, its PvZ 2 which has all the added bs
Oi, I had the same big on an ARM chip. If ended up debugging by putting

If (x) {
If (!x) {
Panic.
...

I wasn't saving the comparison bits on context switch.
While Canon driver support is less than exemplary, Gutenprint drivers work well for me on macOS, especially for a photo printer.

Worth checking out.

https://gimp-print.sourceforge.net/p_Supported_Printers.php
The problem is that f needs to be interesting. Nobody really cares about the function "17393/16200 x^2 - 14719/180 x", even if that produces f(180) = 20067.
First-Principles on AI Scaling
I think the population distribution by age band in the different eras would illustrate why there was enough money then and insufficient money now.

The premise wasn’t that you the worker would pay your own retirement but that you would pay for the current crop of retirees and then when you retire the younger age bands would be paying for your retirement.

If the worker would be funding their own retirements then they have to pay in a whole lot more.
Reminds me of the (supposed) Henry Ford quote “If I had asked people what they want, they’d have said a faster horse”.
Citizens hold their government to a higher standard. As an analogy, the government can't just go to the hardware store to buy a hammer. It needs to buy a hammer from an American using a drawn out bidding process that preferences veterans and minorities, etc etc. Iterate this for evey little thing.

That isn't fraud or corruption as most folks understand those terms. It is more simply not designing for efficiency. People are more concerned with other factors like fairness transparent process.
There is going to be a lot of health fallout though as people start having oxygen depletion from tightly-sealed houses.

It's important that even well sealed homes have both A/C fresh air sources as well as ERV/HRV systems that can recapture the heat/cold the house has while replacing the CO2 with outside air.
Does it still count as human content if I blindly copy paste from ChatGPT? :))
I work for a.company that melts steel. Cost of electric is a very large issue. We pay workers extra to work overnight shifts when electric is cheaper and shut down during the day. We also shutdown for annual maintenance in December when Christmas lights raise electric costs.. not one that melts metal, but I know one plant runs 5 months and does maintenance the other 7.

Note, the above is as of 10 years ago. Now wind provides most electric so hours may be different to account for that.
“Translate: to transfer or turn from one set of symbols into another” – Merriam-Webster

No, “translate” still works here, regardless of Pig Latin not being a language. And I agree with the GP that it’s more intuitively understandable word than “transform.”
I missed it in the article. How do signals fix react's shortcomings? With signals you still have the same exact state management problem of having these crazy stateful functions. Sure you don't need to deal with the additional complexity brought about by use effect and rerenders but that's only a small part of the problem in my opinion.

I've gotten to the point where I think frontend code should just be modeled as state machines from the start. I like XState but you can use reducers too if you like.
This probably doesn't answer your question, but when I was in grad school 30 years ago, there was an unwritten assumption that limiting your hours was necessary, so you could spend most of your time focusing on "getting done." Staying in school imposed a savage opportunity cost compared to finishing quicker and getting into a higher paying job. It also imposed a risk, since there were a lot of things that could happen, outside of your control, and knock you out of the program without a degree.

I worked my extra hours as a musician, and actually made decent money compared to my graduate stipend. But it was limited to about 4 hours a week. And it was a source of recreation and "escape" that I needed.
These drugs seem like a fad. What't the point of maintaining a healthy weight when not only are you not going to be getting many (if not most) of the health benefits, but you're also going to be at risk for additional longterm health problems?

We need public policy that makes it less expensive to eat healthfully. The entry-level dietary costs of staying in the lowest risk category for cardiovascular diseases shouldn't be several thousand dollars per person per year.
300%. Heck yeah. "Local loop unbundling" to decouple the (physical-/natural-monopoly) service from the information service! https://en.wikipedia.org/wiki/Local-loop_unbundling

Alas the US is fucked. In 2004 the FCC agree to Verizon's ask, that FCC exclude fiber to the home because it was expensive to build out. https://www.nytimes.com/2004/10/23/technology/fcc-shields-fi...

It keeps getting worse. In 2020 the FCC exclude a variety of dark fiber & ds3 owners from unbundling regulations, phased in over 8 years. https://www.federalregister.gov/documents/2021/01/08/2020-25...

Monstrous behavior. Society needs some safeguards. Letting old incumnents do what they want forever is an filthy disgraceful low place to be, especially for such a core utility. Living under this degrading pro-monopoly regulatory environment has been a major heartbreak of my life, and the people who should be doing something to protect one of our most prized embodiments of democracy- our ability to communicate with each other- keep making the situation worse.

This is 100x worse than Chicago selling the parking meter system to private interests for 100 years, which they recouped in 6. At least that was a limited area, at least that doesnt control speech & access (there are alternatives to driving then street parking). https://chicago.suntimes.com/city-hall/2022/5/26/23143356/ch... https://news.ycombinator.com/item?id=34988984

Absolute travesty. Humanity getting beatten in the face with a stick by shitty corporations forever. The FCC backing them up. I dont even know if it's possible to get these decisions changed.
This kind of thing is possible because the React state model ultimately hasn't evolved too much itself; only the easily-accessible user-facing parts of it.

I've been running a mobx-react setup for 7 years. It's been thru a few syntaxes but it behaves identically. Minimal rendering, observability, I find it the most intuitive state management pattern.
My brother mfc stopped working after 13 months and they offered zero support. Comments online said it was a power module.

Someone on ebay sold me the wrong power board.

The local brother service center wanted me to sign some kind of business support agreement to even talk about fixing it (it is just me at home).

So I threw my $400 paperweight in the landfills electronics section and swore i would never buy another one.
Ask HN How do I learn marketing?
I'm a strong engineer, and that's my core skill. But I want to focus 75% of my time on marketing.

Is there a way to learn marketing, in the same way that one learns software engineering?

It's so easy to learn software engineering, and the results are instant. How can I apply the same learning concepts to marketing?
Note that he tried to deflect the blame:

> It was based on things I was told that were untrue or, in some cases, true, but not meaningful

That’s a cop-out, not a redemption…
Is brother doing the same thing? I have an old brother wireless printer that takes generic cartridges. I'm not looking forward to the day it dies if so.
This is the strange/sad truth.

Clearly walkable neighbourhoods are highly desirable, and in the US people pay a massive premium to get them because they are so scarce. Yet, for some reason, new construction in the suburbs is all disconnected and almost never walkable.

There's a huge disconnect between what people want and what developers are actually building. The kind of density that leads to walkability seems to only occur in older and already expensive areas with infill development, never green field construction further from an existing city center.

Maybe it's impossible to build new walkable areas in the US.
I use Elixir's native EEX templating for some personal projects.

My Elixir script takes markdown files with YAML front matter and produces static HTML pages, which are served via Cloudflare Pages.

[1] https://hexdocs.pm/earmark/1.4.2/Earmark.html

[2] https://hexdocs.pm/yaml_front_matter/readme.html

[3] https://pages.cloudflare.com
Now if only HBO Max had a world class Apple TV app to match their world class content. Not expecting it to go anywhere but downhill from here what with the coming HBO Max/Discovery+ merger.
Referencing atomic orbitals... for a good time, ask ChatGPT this series of questions:

1. Hello, what can you tell me about the Legendre polynomials, angular momentum, and the three-dimensional visualization of atomic orbitals in the context of quantum mechanics?

2. So, can the three-dimensional representations of atomic orbitals seen in chemistry textbooks be considered to be solutions of the Schrodinger differential equations in the context of Legendre polynomials?

3. What's the nature - mathematically speaking - of the radial and angular combination of the Legendre polynomials and the hydrogenic radial functions that give rise to the textbook probablility density visualizations of atomic orbitals?

4. Tell me about Hartree-Fock representations of the molecular orbitals of the helium atom?

5. Compare and contrast the Hartree-Fock method and the more recently developed Density Functional Theory approach, please, in the context of simple molecular orbital theory.

That's pretty impressive, probably a better and more concise explanation than a lot of professionals in the field could give off the top of their heads. However, it's also interesting to see where ChatGPT is remarkable untrustworthy - Linux terminal command line options, for example, it often gets those wrong (disastrously so in some cases, happily I double-checked first). It also has problems with modular arithmetic... This one always delivers, it seems, and has been doing so for a month at least:

Q: So is seven congruent to four, in the context of modulus three?

> "No, seven is not congruent to four modulo three. To determine whether two integers are congruent modulo a given modulus, we need to compute the difference between them and check if it is divisible by the modulus.

In this case, we have:

7 - 4 = 3

Since 3 is not divisible by 3, we conclude that 7 is not congruent to 4 modulo 3.

We can also verify this by checking the remainders when 7 and 4 are divided by 3:

7 ÷ 3 = 2, remainder 1
4 ÷ 3 = 1, remainder 1

Since the remainders are not the same, we can again conclude that 7 is not congruent to 4 modulo 3."

Hmmm.... this seems wrong...
You are correct that they are viewed as different systems and tend to rely on different strategies:

https://ecokit.us/passive-solar-design-vs-passive-house/#:~:....

To me, it's almost a matter of semantics.

In passive solar building design, windows, walls, and floors are made to collect, store, reflect, and distribute solar energy, in the form of heat in the winter and reject solar heat in the summer. This is called passive solar design because, unlike active solar heating systems, it does not involve the use of mechanical and electrical devices.[1]

The key to designing a passive solar building is to best take advantage of the local climate performing an accurate site analysis.

https://en.m.wikipedia.org/wiki/Passive_solar_building_desig...

I think of passive solar as the umbrella term for such strategies. My understanding is passive house comes from a German project. It shouldn't surprise anyone that strategies which work well in Germany differ from strategies that work in warmer climates.

There are also traditional building approaches in Middle Eastern deserts that keep the entire city at bearable temperatures. They historically built on a plateau, oriented streets to be cooled by prevailing winds etc.

Both in Mexico and Iran, they have passive air exchange systems that help cool homes. Stairwells in Victorian American homes have similar features and likely served a similar purpose and were probably not merely ostentatious.

If you know a better umbrella term for this approach, I'm open to suggestions.
You're out of gas dude.
> Suburbs have existed for over 100 years. If there was a problem we would see it all over, not just in a few random ones.

"We've been throwing carbon dioxide into the atmosphere for hundreds of years. If this was a problem we'd be seeing the consequences of it by now."

Anyone who's looking does see the problem. Meanwhile there's a critical mass of people whose lives and identity revolve around the status quo and who simply prefer not to see it. The people who see the problem have been trying to tell you (and everyone else) about it, and it continues to fall on deaf ears.
I think they were maybe more referring to the logic that "if it saves even one life" that was prevalent early during the pandemic. Which I guess could be applied to FOSTA? I'm not sure, though.
Anecdata is interesting. Here's mine, I've recently had a spate of a few Dell system 3-5 years old getting progressively more sluggish. Quick tests don't turn up issues. When I'm given the time required I use the hard drive manufacturer's testing utility and do thorough testing at which point damaged sectors start to turn up, not too many but enough to cause seek issues or something. I use chkdsk to attempt to recover data and mark the problematic sectors and at least for a while the system are a bit better. Of course, as soon as possible replacements are needed.
For those of you who haven't already, I highly recommend just biting the bullet and switching from HP to Brother for your home printing needs.

I was a HP customer for decades. I had models going back to perforated paper dot-matrix printers. Finally last year I had a down-and-out fight to get my HP to do a basic task, and I bit the bullet and ordered a Brother at the recommendation of my friend.

My mfc-l3750cdw Brother printer is a bit of a beast, but it does it's job amazingly well. It's 2x the size, weight, and price of my old HP but it's worth every penny for the peace of mind. It prints when I need it to print. It shuts down when it's not printing. It connects to wifi and doesn't try to serve me an ad while doing it. It uses ink logically. And I don't feel like I'm trying to resolve a problem that was effectively solved in 1995.

The hard fact is that printers and copiers as a market has been shrinking (outside of China) for years now [1]. It's gone from a necessity to a niche need, and even then people have kinkos / WeWork / their parents house as a backup.

HP isn't going back, just switch. Save yourself like I did.

[1] https://www.statista.com/outlook/cmo/consumer-electronics/co...
Sad that Google dumped Boston Dynamics. Imagine version 2 of this in an Atlas body. I feel like it is already limited by the (lack of) capability of the robot they're using.
Eh, what I see is practically all Fortune 500 co's and every cutting edge startup using React / Svelte, while the majority of existing software engineers dig their feet into HTML templates in PHP / Rails / Python / Java poorly integrated with some ad-hoc javascript. Right now, if you need to create new products, you're going to ship them fast in React / Next.js rather than fiddling with your backend infra, especially with how managed the backend is getting with serverless and managed DB's.
I can only assume that this is some kind of lawyer insisted response. It isn’t even a real apology, instead offloading responsibility on some nebulous other source.

Here’s the thing though, who cares who told you that someone was faking it: at what point is acceptable to publicize medical information you required an employee to provide? And that is required to be confidential?

What kind of amoral shithead do you have to be to think that kind of behavior is ever ok?
I found this review which appears quite honest and educated: https://www.imaging-resource.com/news/2022/10/12/epson-ecota...

It would make sense for Ecotank users to reply to the post, given the cost savings it offers - whilst still retaining overall good print quality (according to the above review).

I'm presently on a Brother HL-L2375DW (BW laser) myself for my occasional use; love it.
NAT doesn't protect you from things inside your LAN either. Where you have NAT+firewall with IPv4 now, you'll need a firewall with IPv6.
The HP Smart app actually has a disclaimer mentioning 'non-OEM cartridges might be disabled if you install the firmware update'

https://i.imgur.com/Xp4tElX.png

Apparently some printers can be downgraded via USB

https://lucatnt.com/2022/06/downgrade-hp-pagewide-pro-477dw-...
Are we sure we can have artificial general intelligence when humans don't even have general intelligence?
mobx looks the most reagent like state model in vanilla react.

my forever setup is here:

https://github.com/nathants/aws-gocljs
The first time I saw laced cable, I am not ashamed, much, to say was in 1978, when I had just finished my masters in EE and had just landed a job at Bell Labs. One of my first assignments was to develop a procedure to convert an old teletype system to the new "datapak" technology which was a version of X.25 (a predecessor to the Internet, more or less) and was called BX.25, I guess, Bell X.25.

I went to an office that had the old teletype equipment, which reeked of PCB's, large coils with oil dripping from them. The circuit transmitted at 10 baud, not that is not a typo, not 10Mbps, 10 bps, or baudot, back then. 300 volts to zero and back again! Travelling hundreds of miles on terrible copper cables through hills and valleys carry the news wire of the day, AP etc.

An old man with grey hair and a beard, crept out of his cubicle to greet me, I informed him that I was from HQ and here to help. Just kidding, but I am sure I said something stupid like that. He explained everything to me, which was fascinating. I was surprised to find out that he was only 25 years old, and the PCB's had aged him. Again, only kidding, I have no idea how old he was, but he ansured me that he was going to retire just as soon as we completed the upgrade to the new technology.

He showed me around, the beauty of the equipment and the cabling astounding me, it was almost as if it would be a crime to touch any of it. The way it was tied so carefully. The way everything was put together. There was a beauty that was almost reminiscent of the Incan Quipu's.

I am sure I am waxing philosophically here of course. But who is to say that ancient technology is any less amazing than old art or music?
This is false. The tax districts are independent in the suburbs in many locations. Sewers and water are local city taxes are paid for out of the suburb property taxes. The only “city tax” subsidizing suburbs would be state taxes and that’s if and only if more people lived downtown than in the suburbs, which is not true in California.