skysight-inc/HackerNews huggingface dataset:
Those computers with rich instruction sets are built up of smaller units made of smaller units, down to individual transistors (typically 2 kinds). It's pretty cool that you can build something so complex from a couple types of components and wires.

Lambda calculus is the analogous building block for algorithms. With just a few primitives (including the Y combinator) you can have a powerful system upon which you can build any (no-quantum) algorithm at all.

I find it deeply pleasing that all our fancy systems can be broken down to such simple components, and I'm glad to belong to the profession of people who are good at this task.
>It is better than 10 guilty persons escape than 1 innocent suffers

What if the escaped guilty persons cause more than one innocent to suffer? Seems like an obvious flaw in this aphorism. Maybe works for petty thievery, not so much crimes of great bodily harm.
How would you feel if a foreign country invaded yours and forcibly occupied it for many years?
Yea, mine too
Walking down the street a few days ago I saw someone had put out an entire trash bag full of reusable bags.
> Haven't things which house methods and fields together gone out of fashion?

Rust's structs have methods and fields together, and that seems very much in fashion!

But, I wish that using OOP constructs to model ontologies would go out of fashion faster. The examples you pose are so abstract as to have no correct answer, because the correct answer depends on the needs of the software.

Cucumber/knife could be modeled in a thousand different ways depending on whether you're making The Sims, a recipe website, or the firmware for a robot chef.

"is-a" is indeed problematic, because "is" is a linguistic construct that can have different meanings, and there's never just a single "is-a" relationship. I'd go out on a limb and say you should never need classes for Square, Rectangle, etc; just make a Polygon that is a closed collection of points, and be done with it.

But that doesn't stop OOP education (from web tutorials to university courses) from teaching students to think about ontologies first and requirements second.

These are problems with the way OOP is often used, and with the language features that encourage this kind of usage. But I don't think it's necessary to say that classes in their entirety are an antipattern.
How is it possible that a man spent 20 years imprisoned without being charged with a crime, any crime? How is it possible that the US government is now doing an "oopsie, my bad" and just releasing him?

Is he perhaps not the dangerous terrorist you think he is?
Outside of the US and a few other English-speaking countries? Not really. In Europe, US keyboards are nowhere to be found (the UK uses a different layout).
Don't be ridiculous. No one is seriously proposing completely cutting people off from water. Flow restrictors still allow customers enough water for personal consumption and hygiene.
I can't believe it actually worked. Took like 5 hours to build all of those components haha
Same issue in Germany
> What is more fundamental to earthly time than the rotation of the earth and its orbit around the Sun.

True.

> From there it follows that the cycles of the other planets may also be important.

Not particularly, no.

> Isn't it amazing, for example, that Jupiter's cycle is 12 years and there are 12 lunations in a year? The cycle of Uranus is 84 which is 12 x 7. There's also a subtle mathematical relationship between 12 and 7. 12 = 3 x 4, 7 = 3 + 4. You have to have eyes to see these patterns.

None of that is amazing in the slightest, and your base numerology won't make it amazing.

You can find coincidences everywhere if your definitions are loose enough.
There you go. We were promised quite far fetched things like 'flying cars', 'time travel', 'life extension' and 'universal basic income'.

Instead we get Deep Learning AI's being used for generating and faking sentences, images, videos, voices, code and digital art all being trained on mountains of data in data centers all significantly contributing to the already burning up of the planet to no benefit and no efficient alternatives.

A dystopian future with deepfakes and easy fake news creation thanks to the technologists who helped create those things for others to create a new griftopia on top of that.

So you will own nothing, believe everything that you see on the internet, and be very happy.
> iOS lacks many features that have been standard on Android for years and the only reason it feels so smooth is because the UI thread has pretty much the highest QoL that anything can ever have. iOS would rather drop your network call than drop a single frame.

This is a bit of a simplification but in broad strokes it is kind of correct. And it turns out this actually makes good UI!
So it's a political idea, as opposed to an economic one.
How do you know if your network is the truthful one and isn't participating in deception? And given that networks are increasingly non-physical, how do you guarantee it is the person in question?

The only way reputation networks maintain durability is if they stay physically constrained and limited by physical contact. Any system built externally and allowed to represent facts and truth will be compromised due to computational superiority. It must not be a network hosted by a computer. It must run on culture and physical reality itself.

Additionally agents of deception are regularly embedded in networks to encourage malicious behavior. Spies are pretty common.

See: https://m-cacm.acm.org/magazines/2021/6/252840-collusion-rin...

I think the key bias we're contesting is that I'm arguing computational superiority allows creating networks that are indistinguishable from truthful ones because they have the resources to have the "longest version of history" to act as the authority. If the history is not there, it can be fabricated and embed enough "covert actors" to maintain a narrative.

Then you also generate useful idiots who don't know they are being used to propagate misdirection or what have you. They become unable to detect any "obviously fake content" because it doesn't require fake content to conduct deception.

Very often, it is real information indeed that is most able to misdirect attention.
I found East India Company and Bengal saltpetre link to be an intriguing one. That is the first time I have heard about it.
The UK /s
So if I have my cell phone (Galaxy S21) near my headphones USB cable, and there is activity on the mobile phone radio (I can hear the mobile phone 'radio' in my headphones), sometimes my monitors will black out. This has happened to a few other users at my office as well. Move the mobile phone a meter away from any cables and problem goes away.
How to Cure Boredom at Work
I look forward to trying this out and seeing how this architecture change works in practice. For large Postgres databases (tens of TB in my experience), the old stats collector architecture was a reliable source of operational bugs that didn't have any real fixes, and this has been the case for a long time. If those issues start being addressed by these changes, that is a huge boon for people with large Postgres instances and will significantly improve its scalability story.

This could be a really important change, especially for people with large instances.
Just tried it on Ubuntu 22.04. And it's working! Had to install python-is-python3 and conda, but it's up now. Fun, thanks.
Writing controllers is complicated and underspecified in UIKit and AppKit; AppKit has old unmaintained "bindings", UIKit doesn't have them at all, and it seems to lead to third parties reinventing the whole stack rather than using any of it.
A wireless split mechanical keyboard designed for productivity and ergonomics
Hello there !

My name is Steve, a software engineer, I built the keyboard for myself.

Key features:
1. It comes with a custom layout with 76 keys, compatible with ansi 60%, so no need to change typing habits.

2. Thanks to the ZMK firmware, It's really handy to customize the keymap(add layers and combos, even macros), it increases productivity by never leaving the home row.

3. As a wireless split keyboard, the two halves result in a more natural typing posture – without forcing your wrists to adapt to a straight keyboard.

4. The palm rest, with a small bevel, are firmly attachable to the keyboard, it saved my wrist.

5. Hot-swappable sockets and hot-swappable control

If you have any feedback or questions please let me know.
Thanks!
I find them slow too. Depending on the author, I can read a novel in an evening. Mostly, I do quick bursts for time reasons. My average is a few nights.

An audio book can take a long time. Listening fast is a mixed bag. I generally have a poor experience. And I can take aural "input" quickly, and do that when it is about learning something, not pleasure.

A while back, I gave audio books another try. My brother in law loves them, BTW. He encouraged me to try again largely because he had one he wanted me to comment on.

I find my ability to visualize, become immersed in the story to the point where I do not notice I am reading is not as well developed when listening! For me, this is my number one reason for not using audiobooks.

For my brother in law it is the opposite!

I find it hard to restart sometimes too. Have to go back some and let the book ramp up. This is near instant when I read. Maybe go back a page or few tops, if it has been a while. I need to ramp up on a listen every time.

I bet something along these lines drives people to on medium or other. People appear to vary widely.

That said, audio books have some great use cases:

When reading, many labors can't be done. Listening works along with many labors. This is compelling! I personally prefer podcasts, but audio books will plug right in here.

I already mentioned immersion differences.

Some people really enjoy the readers inflection and characterization. I like this too. It is one of the better things about audio books, assuming one has some affinity for a reader. There definitely is potential for pleasure here. A great reader does add to the experience.

Shared reading! This one surprised me! I know a couple who listen together while doing other projects. Pretty cool! They just have it playing and do whatever they are doing.

That is all I got. Maybe it is useful perspective from a reader who prefers visually reading a book, but who has also appreciated audio books.
Ask HN: Owner's representative services for home owners
You have some service work that needs to be done on your home, the dollar value of the work is substantial enough to do your due diligence. After multiple competitive bids from different contractors, you've selected a contractor to perform the work. You’ve based your decision on cost, brand of materials/equipment, contractor availability, contractor reputation, etc.

Even with your due diligence, you are still nervous. Not being from a construction or technical background, you have no way of knowing whether the work is being performed as quoted (contractor swapping for low quality materials) or whether the work is even being done correctly (incompetent crew sent to your house).

There is a 3rd party service who provides an industry knowledgeable person to act as your representative. This person reviews the quote, makes sure pricing is inline, and holds the construction crew accountable for their work.

Is this a service that would interest you?

Background: I worked in air conditioning for 7 years, another 8 in industrial construction and commissioning.

I was recently quoted to have my air conditioner’s evaporator coil chemically cleaned and the crew came out to perform the work. The quote included cutting a hole in the ceiling to get access to the coil and then cleaning the coil. The crew that was sent out did not cut a hole in the ceiling and attempted to clean the coil with a vacuum cleaner. After fumbling around in the ceiling for an hour, they packed their tools and asked me to sign the invoice - with still the same pricing as cutting a hole and chemically cleaning. Being familiar with the business, it was clear they were lying to me and I refused to sign the invoice. I spoke with the owner of the company who sent out another crew and the work was done properly. I can’t help but think how many people get scammed by contractors on a daily basis.

Commercial and Industrial construction routinely has owner’s representatives to act and supervise on the owner’s behalf. The issue is partially addressed this with permitted construction. Your town/city/council will review plans and send out an inspector to verify work was done to code. Day to day service work is rarely permitted so things fall through the gaps.
No they haven't. Everyone still loves their type dependent namespaces. Just look at the ugliness of Haskell records where every field is a global function inside a module.
> not all problems can be mapped to strings

I think that statement is at odds with the Turing-Church hypothesis, but I understand that is pedantic
Whenever people come up with low numbers like that their mental model is really what they see as sticking some ASCII on the screen with a couple of colors blitted in. Doing text rendering that is actually good, transparency, shadows, the things that make a UI worth using makes things somewhat more expensive. It doesn't have to be overbearingly expensive–modern computers are fast, after all–but it's definitely going to be more than what you think an imgui thing is going to take. And this is pretty important when you're making an OS, otherwise you're really making something that a lot of people will not want to or be able to use.
Don't give 'em any ideas, please...
I think it's a two-fold problem. One is they may not be so guilty as they claim. The other is they may be so guilty as they claim, but the methods and torture they were put through are not things the government wants discovered by the public during trial.
This is exactly what i came to point out!

That chapter named "Program Development" is a masterpiece and a must read by every Software Engineer.

I read it before i knew what Compilers/Language Design involved and it was sort of a revelation in how much you can get done without knowing too much theory but with the intelligent use of appropriate tools, a framework and a guiding hand. Whenever people ask me for resources on Compilers/Language Design i always tell them to first read this chapter a couple of times and grasp it thoroughly and only then move onto other proper textbooks.

A good followup to this chapter is the book Introduction to Compiler Construction with Unix by Axel Schreiner and George Friedman - https://archive.org/details/introduction.to.compiler.constru...
The acts of 9/11 should have been considered a crime, and the remaining planners and perpetrators - and those planning and training for future actions - brought to the USA and tried.

That’s what a country the USA aspires to be in its best moments would’ve done. It would’ve been a shining example of what a liberal democracy could be.
My company is moving away from the Dell XPS. We’ve had nothing but problems with the devices, primarily the terrible “killer” Wi-Fi and Bluetooth adapters. The support has been abysmal which makes it worse.

I hear Lenovo is making good stuff though. We’ll see how that goes.
I’m not the type to self promote much, plus, a lot of bad experiences in the industry (due to maverick type behavior), so filling out profiles seems like a waste of time.

But, I’ll have to come out of hiding soon enough, have spent the last year+ developing a pretty unusual project. Actually I’m sure I should have been blogging about it already. But it’s hard for me to have positive expectations, and I know that alot of what I have to say is going to be divisive.

Now that I saw the first replies to my comment, I realize that I wasn’t really seeing the big picture in that moment, someone can’t really steal your open source project, the thing to do would have been to mention it in the thread and then just keep on developing it as I had been. Anyone who wanted to use it would eventually realize that the fork wasn’t where the action was at.

Truth is there is some kind of trauma at play, and actually there is for a lot of people, but trauma is still a bad word, we don’t really talk about it on HN, actually a lot of conversation in tech has been sterilized, the mindshare is highly sought after.
I think he meant that for Python operators, the method can be dispatched based on the first or the second argument.
> No one cared, at all.

I know the feeling, having been involved with the US immigration process since the start of covid & living here through the last couple Trump years.
They're looking at the percent of people who have dropped out of the workforce for disability. It was steadily decreasing up until the pandemic and has now leveled out and might be increasing. That's bad at a macro level. Less people working, less output from the economy years from now. They weren't looking at the GDP right now or other recession indicators.
It's a bug. They didn't intend for it to flag ad-blockers, it was supposed to inflate the prices for third party aggregators so that their direct website would look cheaper than booking on a third-party site.
I don’t know that any such tiered pricing needs to be down to the liter.

I think it would be perfectly reasonable to assume that agricultural water from individual farms dwarfs that of individual residences, so you just need to find the cutoff at which residential allowance stops applying.
There's a sad story of a guy who got released from Guantanamo. No one wanted to take him back, including the country he grew up in. I think he got sent to Serbia or Kosovo or something and he's not allowed to work, basically do anything. Anyone who associates with him gets harassed. Basically lives off a small stipend in a cramped studio and the police prevent him from doing much more than walking down the block to buy something to eat. Hopefully someone here can point out the video because I've forgotten his name.

Edit: found it, here's the story https://www.bbc.com/news/world-us-canada-61609417
This feels like a roundabout discovery of data oriented programming.
How to Be Upstream First
I'm impressed that running it on CPU only made it ~20x slower. How did you do it?
Yes, either Inkscape or Krita depending on the task.

There just isn't a task that Gimp fits.
Okay, you didn't like Cryptonomicon. Maybe you don't like longer books, which is fine.

Personally, it's my favorite book of all time. I'm not a Sci Fi snob and rarely read the genre, so I'm not sure what the signaling is.
HN Users: what has been your journey after the cs50 intro course?
I am 18y/o just started the cs50 course from yt, feel in love with programming.
I just wanna know what has been the path of various people and craft my own path.
You need a different metric for your thought processes than utopia/not utopia. Ask yourself how close to utopia you have to get for your idea to work instead. The answer in this case is pretty damn close to utopia because such a small percentage of people are needed to ruin it for everyone and it is expensive to run the cleaning regime necessary to cancel that out everywhere.
That should be in the guts of the implementation of == for value types, not something exposed outside of it.
As someone who only occasionally visits reddit, can I ask what the bots are doing? I’ve only ever seen bots that do things like correct spelling
wasm32 uses 32-bit pointers for memory addresses, instead of 64 (wasm64).

> Why have wasm32 and wasm64, instead of just using 8 bytes for storing pointers?

> A great number of applications don’t ever need as much as 4 GiB of memory. Forcing all these applications to use 8 bytes for every pointer they store would significantly increase the amount of memory they require, and decrease their effective utilization of important hardware resources such as cache and memory bandwidth.

> The motivations and performance effects here should be essentially the same as those that motivated the development of the x32 ABI for Linux.

> Even Knuth found it worthwhile to give us his opinion on this issue at point, a flame about 64-bit pointers.

https://webassembly.org/docs/faq/#why-have-wasm32-and-wasm64...

---

> The x32 ABI is an application binary interface (ABI) and one of the interfaces of the Linux kernel. It allows programs to take advantage of the benefits of x86-64 instruction set..while using 32-bit pointers and thus avoiding the overhead of 64-bit pointers.

https://en.wikipedia.org/wiki/X32_ABI

---

> It is absolutely idiotic to have 64-bit pointers when I compile a program that uses less than 4 gigabytes of RAM. When such pointer values appear inside a struct, they not only waste half the memory, they effectively throw away half of the cache.

https://www-cs-faculty.stanford.edu/~knuth/news08.html
Yes your job is to get things done not to care about ontological purity.

The problem with ontological purity is that it would need complicated features that aren't worth bothering with. Oval vs circle for example is a classic case of parameter dependent typing yet no language on this planet has objects whose type changes as it's data changes.
Yeah, there's two ways to look at this:

* The US is doing better than you might expect from an influential, powerful country, that could be abusing its power much more (but that's how empires fall, and the US has learned from the lessons of history)

* The US is doing worse than you might expect from a prosperous and stable country, one that doesn't need to be driven by desperation and genuine threats to survival
That would always wind up bankrupting at least some poor soul caught unawares. I would only support that if there were clear warnings delivered to the specific user in question beforehand (not a blanket notice to everyone that they might, but to one person indicating that they will be charged if they don't change, because they have already gone into a draconian penalty tier), in a way that you were absolutely certain the person had received notice.
Why compare a fantasy rocket that doesn’t exist yet to one that has already flown? If you’re comparing future rockets at least put future SLS versions up against future Starship and Starship Heavy for that matter… not against Falcon Heavy.
Photoshop is one example, and Adobe Creative Cloud as well.
Explain, for instance, where you would have the captured leaders of ISIS tried? In a US court? Where then when they are found guilty? Into a US prison? Returned to their country of origin? There is a reason that after all the talk that Obama did about closing Guantanamo, he didn't even try.
> Getting the Starship itself to survive reentry and landing in good enough condition to fly again without major refurbishment is another story. Something like that has never been achieved before

Didn't the space shuttle used to do that?
There were a few videos of what appeared to be forceful vaccinations but internet videos are hard to cite as real evidence. That officer and medical team could have been forcefully injecting anything into that poor bloke
web demo for stable diffusion (txt2img): https://huggingface.co/spaces/stabilityai/stable-diffusion

github with gui: https://github.com/hlky/stable-diffusion

dev repo (more features, may have bugs): https://github.com/hlky/stable-diffusion-webui

repo with docker: https://github.com/AbdBarho/stable-diffusion-webui-docker

colab repo (new): https://github.com/altryne/sd-webui-colab

can also run it in colab (includes img2img): https://colab.research.google.com/drive/1NfgqublyT_MWtR5Csmr...

demo made with gradio: https://github.com/gradio-app/gradio
I wish I had your problems.