skysight-inc/HackerNews huggingface dataset:
An oft recited of thumb: Make it work, make it pretty, make it fast - in that order. That is, performance bottlenecks are easier to find and fix if your code is clean to begin with.

I sometimes wish performance was an issue in the projects I work with, but if it is, it's on a higher level / architectural level - things like a point-and-click API gateway performing many separate queries to the SAP server in a loop with no short-circuiting mechanism. That's billions of lines of code being executed (I'm guessing) but the performance bottleneck is in how some consultant clicked some things together.

Other than school assignments, I've never had a situation where I ran into performance issues. I've had plenty of situations where I had to deal with poorly written ("unclean") code and spent extra brain cycles trying to make sense of it though.
This magazine seems to come up on the front page nearly every day.
I find it to be uneven in how and what it covers.
If it is a subject matter on which I have some actual knowledge
sometimes I learn something, but more often I am disappointed.
I have an e-ink tablet (Boox Tab X), which is like a Kindle Scribe except it's also a (more or less) full featured Android tablet.

I have a very nice setup with Zotero, where I can sync papers I want to read to the tablet (running Zoo for Zotero), read and mark them up, and then sync the marked up version back to my computer.
Design Sidekick – Find and Copy Fonts, CSS, and Colors from Any Webpage
California is a model for what other states want to avoid doing. And if you’re admitting that you wish to use bribed politicians to enact WEF policies where’s the conspiracy theory?

People don’t want to become California and will work to prevent their states from resembling it.
How does being able to integrate all that random stuff analytically make me any smarter, wealthier, more creative, or better at my job?

I mean, why not a "long division bee" as well? It's just as useful. It would be more impressive to hold a contest for the best (open-source) program to arrive at the answers.
$78k is very small, even for bootstrapped companies. Only the very smallest shops would be inhibited by that. And I admit, that's a lot of them! I get it. It sucks to be a solo developer who wants to get involved and doesn't want to spend a bunch of cash.

But still, for even small players $250k annually just isn't that much.

What we might hope for are trimmed down, subsidized options for small shops who want to get started, with the hope to upgrade them to the full option when they are ready.

In the meanwhile, you might consider partnering up with other small startups.

Also, "open" doesn't mean free. Things take a lot of effort to build and maintain, and that effort needs to be accounted for somewhere.
I was talking about those hot functions only, not the rest of the program. But yeah a “sometimes” or a “may” would have helped in my original sentence.
or `git add -p` to interactively stage changes
That's interesting... I didn't realize that it worked that way. For example, I just assumed that something like 32N, saved in an int, would be interpreted the same as 32.00000000N -- I didn't realize that the number of decimal places implied precision/significant digits. I suppose it's not surprising, and it makes sense, but I hadn't really thought much about it before. I also suppose there are probably systems out there that don't work with Decimal-Degrees and do assume 32 == 32.000 because the devs weren't aware. Thanks for sharing!
Love this, my fave sd webUIs..
https://scribblediffusion.com/scribbles/r7vdh5aw4ja5dnpidpqz...
Since you bring up React in your example, which framework should one use to build better performing web apps?

I know React tends to lack in both dev UX and performance (at least in my exp). Personally I've taken a look at Svelte and Solid, and liked them both. I haven't had the chance to build anything larger than a toy app, though.
It's really nice and I'm a fan of the man but... Even back then it was a really simple spellchecker. Back then stuff like the "metaphone" and "double metaphone" algorithms already existed (suggesting candidates based on similarly sounding words). Fun algorithms 'em metaphones I'd say. Relatively easy to implement/port (been there, done that).

I'm sure there's better stuff now.

Also it's possible to better ranks candidates to fix typos by taking into account the layout of the keyboard (e.g. on a QWERTY keyboard is you see "wery" it is, despite having an edit distance of 1, highly unlikely the person typing meant to type "very". "weary" is much more likely). So just sorting by edit distance and then suggesting the most common word often doesn't result in the best candidate being shown first.

And then context. Ah, context. I type this and my browser isn't aware I'm talking about algorithms and not only says "metaphone" is incorrect but suggests "megaphone".

So... The matter still isn't settled if you ask me.
In my personal opinion, this is less of an argument of "clean code" vs "performant code" and it seems to be more of traditional "object oriented programming" vs "data driven design".

Ultimately though, data driven design can fit under OOP (object orient programming) as well, since it's pretty much lightweight, memory conforming structs being consumed by service classes instead of polymorphing everything into a massive cascade of inherited classes.

The article makes a good argument against traditional 1980-90's era object oriented programming concepts where everything is a bloated, monolith class with endless inheritances, but that pattern isn't extremely common in most systems I've used recently. Which, to me, makes this feel a lot like a straw man argument, you're arguing against an incredibly out-dated "clean code" paradigm that isn't popular or common with experienced OOP developers.

One only really has to look at Unity's data driven pipelines, Unreal's rendering services, and various other game engine examples that show clean code OOP can and does live alongside performant data-driven services in not only C++ but also C#.

Hell, I'm even doing it in Typescript using consolidated, optimized services to cache expensive web requests across huge relational data. The only classes that exist are for data models and request contexts, the rest is services processing streams of data in and out of db/caches.

If there is one take-away that this article validated for me though, it's that data-driven design trumps most other patterns when performance is key.
Absolutely.

And in particular, I'd like to rephrase my original statement of:

> Outsourcing of complexity is /not/ elimination of complexity.

to

> Outsourcing of complexity /reduces/ complexity, but not all the way to zero.
> Things way worse than that exist.

Yeah. I opened discord earlier, and it took about 10 seconds to open. My CPU is an apple M1, running about 3ghz per core. Assuming its single threaded (it wasn't), discord is taking about 30 billion cycles to open. (Or around 50 network round-trips at a 200ms ping).

Crimes against performance are everywhere.
MRSK – bare metal orchestration from 37 signals
The largest issue with Wayland is it has "Linuxisms". That means no work was done by the Wayland people to make it portable to other UN*X. So the BSD folks (and other UNIX people) have a lot of work to get it going.

And there still seems to be confusion if or will Wayland require systemd, from what I have seen, no 100% clear direction from anyone.
I realize you might not have seen it if you filter out the stupidest people, but the stupidest people still have some of the loudest megaphones.

https://twitter.com/jordanbpeterson/status/16092556469934571...
That excuse sounds like the guy in highschool who would have treated the girl so much better, but she was into assholes.

If you are old enough to remember those days, then you remember COBOL, Algol, Fortran, Pascal, BASIC, Ada, Oberon, Lisp/Scheme, Forth, O’Caml etc. They’re all great languages, some still have their uses. There’s a reason all of the major operating systems have cores written in C/C++. It’s entirely because they’re pragmatic and “work”, and not some conspiracy.

Edit: although now that I write it, what if C/C++ was planted on earth by an alien intelligence in order to slow down the development of the human race.
That’s exactly what I want to change with my open source weather api https://open-meteo.com

It collects raw weather mode data and redistributes weather forecasts with simple APIs

Briefsky is also using it :)
The war in Ukraine has demonstrated that even if you have no intention to fight a war, an aggressive neighbor may have other ideas, so you don't have a choice other than being ready for it, if you want to continue existing as an independent country.

How you're ready for it can vary, but deterrence by having better weapons is one effective way. In the best case, it works and you don't have a war. And if it doesn't, you still have better weapons to end the war - and preferably keep it on the enemy's territory so the destruction happens there and not in your country.

Right now, Ukraine has its cities leveled, while Russia is (with a few exceptions) "only" losing military gear and personnel.
An adult antlion. They have (probably) short lives as adults adding a lot of difficulty to watch them

There are like "four or five people in town" with the skills, bibliography and interest to identify them at species level and resist the urge to smash them so, rarely seen. It toke eight years to identify correctly this specimen.
Strange but true you can create functions where you pass a pointer to an error variable.

error_t oops;
int x = foo(10, &oops);
if(oops)
goto whoops;

int x = foo(10, 0); // yolo!
> they seem like reasonable simplification of real-cases.

Paraphrasing Russ Ackoff, doing the right thing and doing a thing right is the difference between wisdom or effectiveness and efficiency. What Casey is doing here may be efficient, but calculating a billion rectangles doesn't present a realistic or general use case.

"Clean Code" or any paradigm of the sort aims to make qualitative, not quantitative improvements to code. What you gain isn't performance but clarity when you build large systems, reduction in errors, reduce complexity, and so on. Nobody denies that you can make a program faster by manually squeezing performance out if it. But that isn't the only thing that matters, even if it's something you can easily benchmark.

Looking at a tiny code example tells you very little about the consequences of programming like this. If we program with disregard for the system in favour of performance of one of its parts, what does that mean three years down the line, in a codebase with millions of lines of code?`That's just one question.
I’m conflicted on calling him “lucky”, and I don’t think you mean to discredit him, but yeah he’s had genetic and societal gifts but I’m sure his work ethic is what makes him exceptional
Yes, and who remembers "Y" from I think 20 to 25 years ago :)
anyone who thinks the Brave New World was a tyranny obviously did not read it.

(hint: gur vfynaqf)
This isn't C, this is preprocessor. Tomato tomato, who cares if it is 60 lines or 600.

https://doc.rust-lang.org/src/alloc/vec/mod.rs.html#400

https://docs.rs/containers/latest/src/containers/collections...
The phone may not lose signal immediately (or at all) - this is implementation dependent, so it's not a reliable indicator.
That holds true if scaling laws don’t hold true, otherwise a hypothetical Llama 175b would be even better. So the high end will always be on big clusters.
I did now and you're right. Thanks.
I always wondered how it worked. It seems to me that with its limited hardware, it can only display ground features, not whole 3D surroundings. Am I completely wrong? Is it something like this?

https://www.youtube.com/watch?v=umZYSY1fSQk
More specifically it's enantiodromia, or as the most discerning llm enjoyers are now calling it, 'the waluigi effect'.
Love hearing about this. Thanks for the correction.
And minus the times when it gets stuck and needs to be rescued by human driver either remotely or an actual Waymo guy coming over and getting in the car. Doesn't happen every time of course but it does happen.
I personally want to live in a country where 40,000+ people don't die from traffic violence every year.

I also think the subjective enforcement of laws by uniformed officers has a terrible record in this country. It strains credulity that anyone would trust a police officer more than a speed camera. I personally think it says something about their actual concerns with oppressive government.

Despite your apparent belief the government is already doing mass surveillance that impacts you, you specifically have a problem with traffic enforcement. Presumably you own a registered vehicle with a serial number and have a drivers license. Forgive me for being skeptical of "concerns about privacy" that specifically entail traffic enforcement but aren't strong enough to forgo vehicle ownership.

I don't think anyone's personal paranoia about traffic enforcement or their personal consumer preference to use a private automobile should take priority over reducing the thousands of deaths and injuries on our roads.
What? You're hallucinating. I said no such thing.
I don’t need help making the TTS, but I need to know when it’s a weird generation.

Based on your description this may be what I need but I clearly have a lot to learn
Exactly, and they only decided to write those bits in assembly when they identified it as a hot code path AND the assembly outperformed any C code they could come up with.

The times that assembly outperforms a higher level language has reduced as well over time, with compiler and CPU improvements over time.
TIL,thanks.
Rooftop solar to become Australia's biggest power source amid coal's demise
>by plastic mass, FDM is probably way less efficient energy wise than injection molding for the same mass of plastic

How does it compare when you consider the energy required to manufacture small-run injection molds?

Clearly at a certain scale there must be a crossover point, and it's probably greater than 1 unit.
Why were you making incremental changes?
The problem with being a "Bicycle Guy" is that people like to run them over...
Ask HN: Is anyone working on an opt-in alternative to the LAION image dataset?
There's a lot of discourse around the LAION dataset right now, including some active lawsuits against Stable Diffusion. Regardless of whether it turns out to be "legal" or not, there are also a lot of people against the collection for ethical or other reasons.

I've been looking around for anyone trying to collect a dataset of opt-in images and/or with consent from their creator, but either my Google-fu is finally failing or it doesn't seem like anyone's working on such a LAION alternative.

This seems like a huge opportunity to solve a problem that adds a lot of risk to anyone looking to use generative AI for images in their own projects/business, and could potentially have a huge impact on the public's sentiment towards AI.

So... is anyone working on an image dataset that was built with some form of consent, opting in, or other more legal/ethical means to collect these images?
This has nothing to do with alpha rays (which are helium nuclei), but with neutrons, and fast neutrons are much less prone to generate a fission than thermal neutrons, so having a moderator in between your fissile material parts reduces the amount of fissile material you need to achieve criticality. That's how nuclear reactor work, by the way. And this is also what happened to John Bistline on the 4th of June 1945 at Los Alamos.

Edit: in fact the first ever recorded criticality accident ever recorded involved the water in the body of a scientist (Otto Frisch), though the water was acting as a neutron reflector here, and not as a moderator.
Fractional scaling was recently merged.

https://gitlab.freedesktop.org/wayland/wayland-protocols/-/m...
Damn, before I read the comments (or TFA) I was hoping it was that someone prompted "write an exploit for iOS 16" and it worked
I can absolutely write bugs. But I can be confident that there is a very well defined set of rules for what the compiler must emit given the characters that I wrote. That's not going to be the case for a LLM. You can perfectly express the problem you want it to solve and it just spits out garbage and this wouldn't be considered a bug in the system.
This link comes up in literally every Wayland thread and it is even more bullshit now than it was in 2013 when it was first posted (and it was bullshit then too). It is titled "the real story" but it is quite the opposite.

A few key points:

1) he laughs at how X has a bunch of extensions. https://wayland.app/protocols/ hypocrites much. In 2013, since it was completely unusable, it probably didn't have many. But turns out real world use leads to "useless" features being reimplemented.

2) he complains about how X.org has broad hardware compatibility. As if that's a bad thing. Meanwhile wayland, even now it still doesn't work reliably on half the graphics chips on the market.

3) It complains that certain X features are not fully network transparent. True, but most are and you can detect at runtime and gracefully degrade. Wayland "fixes" this by just dropping the whole feature.

4) it flat-out lies saying the X server does nothing yet it is so much hard to maintain code. The core X protocol provides backward compatibility and is rock solid (and really easy to impelment from scratch btw, someone did it in Javascript for a tutorial for crying out loud). Meanwhile the Wayland compositor keeps accumulating everything because of point 1. Need a screenshot? Add it it the compositor. Need a hotkey? Add it to the compositor. Need drag and drop? Add it to the compositor. Need a notification icon? Add it to the compositor. In X, all those are peer to peer. Graphics are actually a relatively small part of a graphical user interface, something Wayland is still slow to learn.

5) He complains that certain applications are written inefficiently with blocking calls which is inefficient over a network connection. Wayland's calls are ALL blocking and just has no network connection.

6) Complains that X may draw things unnecessarily. Indeed... but there's an extension to disable that. Easy fix. Wayland even uses the same drivers!
How to Do a Dopamine Reset
> Waymo, by comparison, racked up its million miles driving around the SF Tenderloin, in the dark.

You might be confusing them with Cruise. Waymo is driving around SF driverless 24/7 so the million miles also come from during the day, while Cruise is limited to nighttime.
the alternative in c is something like glib's array container which hides types. I dislike that more.
Efani is the only carrier I'm aware of that is security-centric, I have not used them myself, but they claim zero SIM-swap attacks have been successful against them. Even though they are an MVNO they claim their upstream networks cannot change their customers' SIMs. Downside is it's expensive, it depends on what you need to protect I suppose.
Account created 22 days ago with the profile description: "Long time lurker, only made an account to comment about FPGAs..."

So this seems like low-effort trolling.
I mean, you can get screen sharing to work. But there are like 3 different incompatible "standards" for how to do it. There's no single simple answer to "how to record the screen in Wayland". This has been the state of screen sharing on Wayland for at least 7 years.

I'm also very curious about what's envisioned for global hotkeys. Surely we don't expect people to manually go to their system settings and configure some command to run which talks to Discord over an IPC solution to start sharing my voice when I press my push to talk button and stop when I release the push to talk button? But "global hotkeys should be configured on a system basis, not an application basis" seems to be the reigning philosophy, despite being incredibly user and developer hostile.
There must be something especially lucrative about GoPros as stolen devices.

I’ve heard multiple independent stories from a few friends in Law Enforcement about cases involving trafficking of large quantities of stolen GoPros (obtained via methods not unlike what happened to you).

Interesting you mention NYC - at least one of these cases involved a very high volume fencing syndicate operating as a legitimate storefront in NYC - with merchandise fraudulently obtained from Amazon[0]. A friend of mine worked this case.

Small, fairly high value, high demand, and no remote shutdown/disable/reporting - somewhat of a perfect storm I suppose.

[0] - https://www.cnbc.com/amp/2018/06/07/how-the-finans-stole-1-p...
OF COURSE I'VE SEEN THESE! D'oh! Thank you.
That holds for past too. If anything, expectations on parent actively playing with kids, actively teaching them or doing enriching activities are higher. The do spend less time with friends , but it is not because parents are less engaged with them.

The concept of play date is new. Parents were not organizing kids social lives. The need to drive somewhere to even have a chance on meeting someone is new. They used to bike to meet friends or do what they want. There and many changes like that. I am not saying everything is bad. Kids commit less crimes, gets into serious trouble less often. They get pregnant less, they drink less, they smoke and take drugs less. They are safer and are involved in less accidents. They finish the school more often.

All that is good. But it is simply not true that parents would actively engage with kids less all in all.

-------

My point here is that kids and teenagers are not lonely because parents don't engage with them. They are lonely because peers don't engage with them. Fairly often they just don't live nearby. Or it is not accepted for kids to go visit them without adult having to tag along. Then they become teenagers and people act shocked they ... continue existing the way they have been raised.
>Clean code optimizes for improving time-to-market for those features

Does it though? Where's the evidence for it? The vast majority of people I've worked with over the last couple decades who like to bring up "clean code", tend towards the wrong abstractions and over abstracting.

I almost always prefer working with someone who writes the kind of code Casey was than someone who follows the clean code examples I've spent my career dealing with. I've seen and worked with many examples of Data Oriented Design that were far from unmaintainable or unreadable.
Yes, Black Mirror is in the process of producing that episode.
and actually lack integrity. but I would suspect that if you've spent the time to become an expert that you wouldn't want to blow your reputation over lies.

To me the more confidence one conveys in something non-trivial the more likely they aren't really an expert.
Agreed. I grew up in a semi-rural area in the US in the 90s and no one in our community thought twice about just showing up.

This sometimes still happened within the past decade in rural Virginia (my family owned a farm there). Neighbor farmers would stop by once a week or so and just chat, usually still sitting in their truck. Seemed like they were on their way somewhere and saw us outside so they'd pull over to talk.
> I think the author is taking general advice

Not just general advice, but advice that is meant to be applied to TDD specifically. The principals of clean code are meant to help with certain challenges that arise out of TDD. It is often going to seem strange and out of place if you have rejected TDD. Remember, clean code comes from Robert C. Martin, who is a member of the XP/Agile gang.

The author cherry-picking one small piece out of what Uncle Bob promotes and criticizing it in isolation without even mentioning why it is suggested with respect to the bigger picture seemed disingenuous. It does highlight that testable code may not be the most performant code, but was anyone believing otherwise? There are always tradeoffs to be made.