skysight-inc/HackerNews huggingface dataset:
> As I prepared my presentation, I found myself falling into my usual pattern when trying to really understand a piece of code—in order to grok it I have to essentially rewrite it. I’ll start by renaming a few things so they make more sense to me and then I’ll move things around to suit my ideas about how to organize code. Pretty soon I’ll have gotten deep into the abstractions (or lack thereof) of the code and will start making bigger changes to the structure of the code. Once I’ve completely rewritten the thing I usually understand it pretty well and can even go back to the original and understand it too. I have always felt kind of bad about this approach to code reading but it's the only thing that's ever worked for me.

This has also been my experience over the last thirty-odd years, whenever I have to take over maintenance of someone else's code.
How? I’m curious if you can share any case precedent, particularly examples of such a high amount being awarded?

In most U.S. jurisdictions, including WA (which has some of the more stringent law regulating recording), if you’re stood on their property or even on the street, surveillance of you is legal. About the only obligation you may have is to post signage.

Recording audio conversations is a bit trickier. In WA, they have RCW 9.73.110 [1] which does make provision for any cameras “within [the] building” recording audio — it’s therefore generally best for exterior cameras to *not* record audio given WA is a two-party consent state (with a few exceptions).

Edit: Looks like the person making this ESP32-based solution is in Ireland, which has its own peculiarities but with a bit of effort, it seems like you’d have no issues there either [2].

[1] https://app.leg.wa.gov/RCW/default.aspx?cite=9.73.110

[2] https://smartzone.ie/are-home-cctv-systems-legal-in-ireland-...
LLM inputs are the worst candidates for caching. The only place where caching might make sense if you have a public facing service & have coupled it with a vector cache instead of a typical word for word caching of the prompt
I used ChatGPT and Claude to fill out everything to the right of "Built?" More here: https://www.notboring.co/p/sci-fi-idea-bank

Would love to see what else people come up with using the dataset. Someone just did this: https://twitter.com/CRISPR_LuCas/status/1691468733024550912?...
A few of these startups are copycats of successful tools. Open source helps them be a 'virtuous' copycat.
Giving up on a failing browser, and trying to make a whole OS instead, is insane. The OS is much harder.
> the paradigm is very similar

I disagree. I believe you're referring to the paradigm of mixing markup and code, which I never did.
I've got some Phillips Hue bulbs that are now beyond 10 years old. Obviously that's anecdotal but so far I've had great luck with my LED bulbs.
All 5 of those age better than React. Also, you are conflating languages and platforms.

Counterexamples / Retorts:

- https://catonmat.net/5-best-programming-languages

- https://stevelosh.com/blog/2018/08/a-road-to-common-lisp/

Choose ecosystems free of hamster wheels, friend.
Nitrox is any mix of nitrogen and oxygen. It isn't specifically 65/35; other mixes such as 68/32 and 50/50 are also common. Oxygen also seems to have a narcotic effect and so breathing nitrox doesn't significantly reduce narcosis. Thus breathing either nitrox or air below about 100 ft (30 m) isn't a good idea because it impairs your judgment and reaction time. Depending on the exact gas mix and depth, oxygen toxicity can also become a hazard. For deeper dives we add helium to reduce both problems, as well as to reduce work of breathing.
The right analogy is not to literature, but schematics of the architectural or mechanical kind. Those can also be beautiful, works of art, and objects of study. Sometimes a clever blueprint will allow seeing some aspect of construction that isn't otherwise obvious. But the prints are not usually the centerpiece for a discussion in their own right. The object depicted - a building or whatever - is the main focus.

Going back to the literature analogy, reading groups are for fun (usually). Spark ideas and discussion. Code is too low level. It's like discussing the author's grammar and word choice -- sometimes necessary to understand the meaning of the text! - but most would prefer to discuss high level themes in the work.
Wanted: Cybersecurity and AI Project Managers
I am a consumer, and I look not only at cost per megabyte. I also need to sleep at night while my laptop gets backed up and while my torrents get downloaded and seeded. Therefore, due to their noise, HDDs in the same room are not an option, no matter the price. For local backups and torrents (i.e. something that I can lose) I nowadays rely on an 8TB QLC SATA SSD connected to the router via USB adapter (in 2016, there was a 1.92 TB SSD), and will buy another one if it gets full.
Manifest v3 announcement feels like a pretty arbitrary line to draw in the sand.

> I don't think Mozilla is managed well enough to actually compete against Chrome. We'd need the Linux Foundation or some other large neutral standards body to fork Chromium

Ah, yes, Linux, the OS used on something like 3% of desktop machines! I'm sorry but I don't see the logic at work here at all. Chrome dominates because Google pushes it and they have the means to reach basically every internet user out there. Switching out Mozilla for the Linux Foundation would do absolutely zero to counter that. Case in point: by most measures ChromeOS has a higher desktop market share than vanilla Linux already.
You tea-lovers can also boil water electrically twice as fast as we can, it's unfair. I've seriously considered adding a UK-style 230v plug to the kitchen so I can use an imported electric kettle.
More importantly: being a fork or not doesn't matter! As long as the Brave team is not able to write their own browser engine that could compete with chromium, they are stuck with whatever development goes into chromium. "Oh it's just patches and things", but it won't be forever, and we WILL see work go into chromium that is deep enough to be difficult to untangle and subtly designed to to force you into whatever path google wants. There will be a day where Brave is unable to degoogle chromium to a useful point. Participating in a chromium browser is only helping google, and there's no way around that.
Turns out the proliferation of open source was never because of "collaboration" or "community", it was actually just a result of zero interest rates and "growth".
Right but every experienced desktop Linux user knows better than to expect bluetooth to work :)
Remember two things:

Investors invest in a vision and people/teams. You're an employee, not the funded team. You may feel you're more than a wage taker, do the investors agree you are not a fungible coder?

Development isn't that hard. Hard CS gets done in environments that are not about pushing to market, that's commercial coding, mainly doing not hard stuff in a new environment. What's hard is linking everything, code, customers, vision, offline... The code is the essential but not that hard bit. Plus, are you blinkered to your contribution so much you cannot observe the vision. Just a coder doing the predictive, doable part where elsewhere chaos needs to be lived in.

Ask yourself these questions.
I don’t really get how people keep falling for online password managers. The only thing I can think is there must be some psychological effect: “well, this person is suggesting something that I know to be very dumb. So, I guess they must know something I don’t, better trust them!”
Startup Annual Planning Playbook from Pilot
> That's fine, batteries being a black box that you replace wholesale is generally fine by me so long as we also put the appropriate recycling processes in place.

There's an additional part which is crucial: No DRM-crap (secret APIs, cryptographic handshakes) preventing other companies from selling safe replacements for the original Sealed Danger Boxes.
Show HN: A CLI tool to have LLMs edit and add code to an existing code base
I've been experimenting with GPT to try to write code in an existing code base. This consists mainly of copy and pasting existing code snippets and getting edits or adding new functions. Or using tools like smol-dev [0] to generate entire projects me for

j-dev originally started as a refactor of smol-dev but I quickly realized it was unrealistic to nuke your entire project and rebuild from scratch. Plus it was overly expensive in terms of tokens used.

j-dev is meant to be used in existing projects and allows the LLM have discretion over what it need to know about your codebase, while giving the user full control. j-dev also handles invalid responses, and updates your code with permission, all while providing full transparency and a relatively simple implementation.

From experience using it, it's somewhat useful although still often has a shallow understanding of the code base despite being able to request more. But hopefully this gets better as LLMs improve or I get better at prompt engineering.

[0] https://github.com/smol-ai/developer
There was a huge wave of anti-chrome propaganda about how manifest v3 would prevent all ad-blocking* on Reddit and Tumblr (and probably tiktok) and such. Even if none of them read the actual announcements, the low-info folks still learn about it from the outrage machine.

*Which isn't actually true; "cosmetic" blocking (altering the DOM), the original type and the one most users actually care about, will still work just fine. It's only privacy tracking which is going to be totally broken, and frankly, outside of the unreality bubble of HN, most users care much less about "privacy" than you'd think.
The thread has been extended to cover all distributed front-end paradigms.
Has anyone already used this package to code a web article to markdown download?
I don't think this conversation is just about the US; an earlier comment in the chain said "for those in democratic socialist countries, stop voting for socialism".

But if the parent commenter was talking about America, 'leftist' presumably means Democrat. Medicare, Medicaid, and Obamacare were all introduced by Democrats and signed into law by Democratic presidents.

Until quite recently it was Republican policy to repeal Obamacare, and in 2017 a partial repeal (including big cuts to Medicaid) would have gone through if not for a small number who voted against the party line.
Yes, and the Lisa failed, because there just weren’t enough adopters at that price.

I struggle to see any sizable market for the tinybox, but I wish them good luck.
> Well at least you used the right word, even if you didn't intend that meaning.

I used contrived, because I meant contrived. They're invented.... until they happen.

While I'm pretty sure this will conflict with your world view. You don't understand the world in which I live better than me, and you don't understand my threat model better than I do. You'd convince a lot more people that you're right, if you even pretended like you believe that instead of acting like you're hot shit.

> If your OSS project has meaningful users, and a bus factor of one, it's already under those same risks every day you wake up, but it has the added risk of a malicious actor taking control of your account.

Passwords used correctly aren't less secure than passwords + 2fa. But they do increase the chance of lockout. And given human nature, if used incorrectly they might decrease it.

> I mean, I am pretty dismissive of anyone making such a fuss about 2FA. It's not hard to use, and the benefits far outweigh any slight inconvenience.

Well at least you're being honest about not caring about others. That's not nothing. But my advice to you, if you care about security, more than you care about being right, is to be less dismissive of people who think differently from you, maybe then you'll have a chance at convincing them of anything. Instead of what you're actually doing, which is trying to look cool on the Internet.

> and the benefits far outweigh any slight inconvenience ... the target audience for GitHub needs to use Git on a regular basis, which is at least several orders of magnitude more complex than entering an OTP occasionally when you login via the web.

to you... the benefit, inconvenient trade off is worth it to you... there are more scenarios than you can imagine. And I'd also argue you'd become better if you tried to fairly consider some of them, instead of being a douche. But you do make a point, it is more common that people who use gh more, are the most common users. It's not a good point, and it's what's known as a dick move, to everyone else that uses github slightly differently, but to hell with people different from you, right?

sigh
As I'm sure you're aware, there was such a thing. But market segmentation was used to turn it into a higher super-enterprise tier. Unless you care a lot about latency variance, there is no reason why those two sets of protocols (networking and storage) shouldn't have converged a long time ago. Admittedly, 20 years ago there were some bandwidth issues due to run lengths, but those are long gone.

The market is simultaneously the hand that giveth and taketh away
It is not clear that people despise Java or they despise backward compatibility of Java. Because I haven't see anyone despising Java's backward compatibility.
This article from Igalia describe pretty well the situation around contribution to gecko/webkit/blink : https://bkardell.com/blog/2023-Mid-Season-Power-Rankings.htm...

Very interesting read!
Why doctors pay millions in fees that could be spent on care
> SSDs have predictable durability?

If it is not plugged in, i.e. unpowered, don’t count on anything more than three months. Thread with sources: <https://news.ycombinator.com/item?id=27573332>
> I've lived here for four decades, the son of a coal miner who was the son of a coal miner, the first person in my extended family to ever earn a college degree. Do you actually know what you're talking about, or are you just angrily shouting into the wind?

Mon ami this is HN -- any posts that aren't about node.js or autism are generally people pissing into the wind
Last discussion (4 comments):https://news.ycombinator.com/item?id=37127673

Link to comment from the original thread where you can find an archived version of the repository: https://news.ycombinator.com/item?id=37127061
It was more for curiosity's sake, but it's really cool that there's already converters. My project is very much in the "hey it would be nice if" stage right now, but I'm on the Python track at Exercism and want some "small" projects lined up once I'm finished there.

The idea is: pull in a quick 3D sketch of a home. Place (USB-C via PoE-power?) ESP32/Pi/Other devices at specific points with very precise measurements between them. Use them to determine the exact position in 3D house-space of Bluetooth low energy beacons. Use that info to help my very ADD wife find the things she loses. (because Tiles often fail)

A lot of the code to calculate position from timings already seems to be out there so I can cargo-cult things over.

In a far-too-roundabout way, that sorta kinda answers your question.
Neat, thanks for the link!

I vaguely remember my colleague having a reason for why his abstraction did not fit in the computed box. Probably something related to async, so it might very well have been because of that
The FreeBSD Handbook
Carbon removal is on track to be a $1T industry per year.

There's that much excess carbon dioxide in the air.

The scale that's needed is far beyond what trees can do.

And trees have their own complications - carbon release (fires, virus, death), measurement, and attractiveness to chop down and use for other stuff. Trees haven't (yet) been optimized as carbon removal and storage devices. They just happen to be somewhat decent at it, but with some shortcomings.

I wrote more about carbon removal in my weekly newsletter here: https://tito.co/posts/do-you-think-we-need-carbon-removal-fo...
What's wrong with the user experience? To me they're all the same there: you have tabs and a toolbar and the rest is the webpage. Little else I actually interface with in a normal day.
It’s useful if you might submit the same document or edited versions of the same document with a lot of overlap.
It seems as though the author has a (relatively) specific view of both Taylor Swift and Disney that he is trying to generalize, while ignoring the social ecosystem that both currently exist in.

I don't know what knowledge can really be gleaned from this piece. Walt Disney's claim to fame were some of the incredible risks that he took, and his near Jobsian ability to predict what the consumer wanted.

Taylor Swift's claim to fame is that she is an attractive white woman from affluent parents, who is both highly malleable and a very hard worker.

This emotive nonsense doesn't jive with n+1.
A large part of the reason for that is that the CIA promoted it _hard_ in the 1950s, including directly financing a motion picture.
I did exactly the same and use an Aqara Zigbee contact sensor (which has a reed switch inside) inserted into the actual doorbell (which has a convenient flat spot above the coil). Works great.
How would you get to 355/113 from pi using your method?
The truth is that a fork hurts everyone.

Imagine a future CTO trying to pick the IaC tools for their company. They see Terraform as an option, but then learn there are multiple forks, licensing questions, and a big battle happening in the community. What do they do? They are now way more likely to pick a different tool that is genuinely open source. The same is true of every dev considering where to build their career, every hobbyist, every open source enthusiast, every vendor, etc. In the end, no matter which fork wins, everyone will be worse off: the community will be smaller and more splintered.

So we opted to ask HashiCorp do the right thing first. If they choose to do the right thing, we can avoid a fork, and avoid splintering the community. We still think that's the best option. But if that doesn't work, then a foundation + fork it is.
what is the relationship between 0.15% more energy the sun may output vs. how much energy is retained via CO2 greenhouse effect?

https://earthobservatory.nasa.gov/features/EnergyBalance/pag...
Indicates that 5-6% of solar energy is thermal radiation from the surface absorbed by the atmosphere (greenhouse effect).

This page states that CO2 is 20% of greenhouse effect
https://earthobservatory.nasa.gov/features/CarbonCycle/page5...
"Carbon dioxide causes about 20 percent of Earth’s greenhouse effect; water vapor accounts for about 50 percent; and clouds account for 25 percent."

So 1 to 1.2% of sun's energy is CO2 greenhouse effect. So a 10% change in CO2 greenhouse effect is roughly the same amount of energy as the observed change solar cycle output.
tldr; 0.15% of sun's energy output is actually a lot of energy!
> You can also slap a reed switch (e.g. a normal door open/close sensor) near your dumb doorbell's magnetic coils

> The simpler reed switch method of detecting current is rock solid.

That's really clever! I'm gonna try that. Thanks for sharing.
I have a part of the “dev loop” here that reads each file and “fixes it” based on user instruction. Look at the modification prompt I have. It certainly needs work however I think it’s the start of what could help you write a script to fix your code. I suggest using starcoder instruction fine tuned model instead however
The multiple choice example was just for tractable computations and illustrative purposes. Pretend the LLM has characters===tokens and is doing autoregressive probability prediction as per usual -- "f"-25%, "h"-50%, "g"-25% to start with, and then appropriate probabilities thereafter to yield that multiple-choice example (plus an <end-of-string> token).

> I am trying to think of an example where "answer prefix might have been extremely unlikely to yield a valid response, but the technique ( ... ) constructs a valid response from it regardless", which might really cause a problem. But to no luck. Anyone has any idea? This could potentially be an interesting research question.

At one point in the past ChatGPT (at a model probability layer, not just because of the context window issue) was prone to truncating long JSON responses, and if that happened in a long string field then you'd see the observed behavior. An example application:

(-) You're asking the LLM to turn some written podcast description into something machine-readable. You chunk the input, feed each chunk into the model (somehow; ignore the details; they're not important), and turn paragraphs into {speaker_name: str, timestamp: str, content: str} blobs.

(1) The LLM is prone to turning long paragraphs into `{"content": "the beginning of the content...` patterns, using ellipses to indicate that there's more to that JSON object.

(2) If you actually retry till the LLM succeeds, it's leaps and bounds more likely to end that string with a quotation mark if the string has all the original input. I.e., output like `{"content": "the beginning of the content..."}` is comparatively rare.

(3) The article's technique, however, always morphs those truncated json blobs into valid json. Since the ellipses is _valid_ at that point (a sub-string), instead of the vast majority of inputs failing you instead end up with the vast majority succeeding and having an incorrect ellipses sub-string.

In general, the LLM does autoregressive completions. Imagine two prefixes P1 and P2, each of which can be completed by classes of data so that P1{G1} adheres to the grammar, P1{F1} fails to adhere to the grammar, P2{G2} succeeds, and P2{F2} fails. With retry-till-passing-grammar the weighted probabilities are:

P1{G1}: Chance[P1] Chance[G1 | P1]

P2{G2}: Chance[P2] Chance[G2 | P2]

Whereas the weighted probabilities produced by the technique are:

P1{G1}: Chance[P1]

P2{G2}: Chance[P2]

In both cases you'd need to divide by the total probability, but the convolution by conditionals is both important and notably absent. For very simple schemas like {sentiment: "positive"|"negative"|"neutral"} the results might potentially be similar, but nothing in the idea of a greedy token filter forces that constraint.
IMO it's not insane (and they didn't give up on their browser in order to do it).

It was a Hail Mary for sure but really their only way to be competitive on mobile. iOS and Android are both owned by direct competitors in the browser space, Mozilla is never going to be given a fair shot there. FirefoxOS would have their way to rectify that and I think we would have all benefitted from greater competition in the mobile market. But alas, it was never to be.
Yeah, the advantage is when the power usages is way below normal mains. We already see it (I have lights in my kitchen that have one transformer connected to the mains, and then all the rest of the wiring is low-voltage).
Maker of Chrome extension with 300K users tells of constant pressure to sell out
Time for us to write that album
Often it will be preferable to limit the error instead of the denominator. "Find the fraction with the smallest denominator that's within 0.005 of 0.33." Does python support this as well?
there is a company near UC Berkeley campus filled with people speaking some east slavic language, that has been making red-light cameras for at least ten years. They have expensive office space and no public signage.
> ... you can emit calls to functions in the address space as literal address instead of using a loader to patch them from relocation tables.

Technically, dlopen can do this too, except it'd make dlopen() slower.

My toy compiler's C backend does just that: emit ELF files with relocation tables but load them and patch all relocations to direct addresses instead of PLT/GOT jump.
Maybe HN should keep a blacklist for companies that are bad actors. We'd have to work out the details, but it could be useful.
The elite in the US, after indictment, say things like "IF YOU GO AFTER ME, I’M COMING AFTER YOU!", with little more than a stern warning.

SBF imagined himself among the elite; he's not.
Gift Registry for India