MurphyA/hacker-news huggingface dataset:
by tetris11 | 2025-06-28 06:34:29+00:00
I use org-roam for looking up a topic, adding a note, and then forgetting about it.

Yeah I might link one topic to another, but it's so seldom used because if I did it properly I'd have to link everything to everything else or create some maddening time-consuming thought hierarchy, like I believe the poster did.

I also dont use my notes to think... they just exist to roughly categorize my updates on a project or topic, and once that project is over I seldom look at it again, or, I simply archive it.

Having this virtual briefcase full of hastily tagged and indexed notes sounds chaotic, but it is immensely useful in unburdening my brain and uncluttering my desktop (firefox has maybe 5 tabs open).

I dont understand the need for thorough organization and consistent structure. Nor do I understand cradling every thought or whim like it's untapped genius.

Life is seldom like this, and an impossible ideal to enact. Linnaeus himself must have questioned his sanity when he saw a Platypus.
by anextio | 2025-06-28 06:36:41+00:00
> mainstream compilers provide support to detect and throw warnings/errors for some of these issues

You cannot detect all of these issues with static analysis. Rust does it by requiring the programmer to annotate lifetime dependencies in the source code. Without this additional semantic information, static analysis cannot fully reason about the lifetimes of variables.

There are efforts by some to introduce lifetime annotations to C++ (https://news.ycombinator.com/item?id=30888172), but any changes to the core language face a very steep uphill battle with the C++ standards committee, so any movement on this is likely to be compiler-specific attribute-based systems, adopted largely by companies invested in a particular compiler ecosystem (such as Apple or Google) to annotate their proprietary code.

On top of this, Rust is a very expressive language, with its features (like enum sum-types, traits etc) making it very easy to implement patterns such as compiler-checked state machines and polymorphism that doesn't involve the recognized downsides of class hierarchies.

It is not for everyone, and not for every kind of project, but its features resonate positively with a lot of people in systems programming because of their experiences with other systems languages and their downsides.

This is why Rust is popular today, particularly in certain communities.
by cb321 | 2025-06-28 06:37:44+00:00
Sure! Just compile with nim c --lineDir=on or drop `lineDir=on` in your $HOME/.config/nim/nim.cfg (or per project NimScript .nims or per file foo.nim.cfg or ...) and source-level debugging with gdb on Linux works..

mostly at the level of Nim source, although various things are likely to "leak through" like mangled names (though in fairness, lower-level assembly notions leak through in "C source level" debugging...).

Beware, though, that since around Spring 2024 this can make the tinycc/tcc backend infinite loop (but otherwise tcc can be a nice way to get fast development iteration).
by jakelsaunders94 | 2025-06-28 06:39:09+00:00
I find articles like this super interesting, but they remind me that I’m a deeply technical person and as such would never be able to thrive in the ‘business’ world.

The modern YC startup philosophy of ‘make something people want’ seems to be only partially true. There’s this whole world of coffee dates, relationship building and salesmanship which always feels slimy to me.
by samtheprogram | 2025-06-28 06:39:17+00:00
I would love a source about the immigration form. That would at least make more sense. Weed is legal in half of the US. As a citizen, I find the story troubling.

The tweets just saying “drug use” and then you hear it’s weed is ridiculous. Why wouldn’t they just state that they lied on their immigration form about drug use?
by pfp | 2025-06-28 06:39:55+00:00
First, thank you for the article, this is exactly what I need.

As for Home Assistant, I share your sentiment. I run my own stuff because I want to understand my infrastructure (vs. a black box from Philips) and to minimize the amount of code running around.

I'm sure HA is a better opaque box than the commercial ones for many people, but running it would still leave me with the same feeling of having outsourced critical knowledge - plus the compute costs.
by JimDabell | 2025-06-28 06:40:54+00:00
JSX is as much a new language as Vue’s templating. JSX extends JavaScript syntax; Vue extends HTML syntax.

If you’re working on generating markup, it makes more sense to do that at the markup level than constantly switch between markup and imperative JavaScript.

It might use JavaScript for control flow, but does it really count when it uses it in a way that is not idiomatic at all? It’s not idiomatic JavaScript to use map instead of for everywhere, and it’s not idiomatic JavaScript to use ternaries instead of if everywhere. Writing JSX looks very different to writing normal JavaScript.
by imhoguy | 2025-06-28 06:41:39+00:00
I keep mine but archived as git history. I don't return to it but in critical moment I can come back to some obscure information I recorded years ago - useful for legal or insurance.

And my "second brain" is just handful list of current stuff, some home technical or financial details my family would need in case I am in coma, etc. I would call it Snapshot of Presence notes.
by mrweasel | 2025-06-28 06:41:44+00:00
Same in Denmark. Some companies don't have websites, only a Facebook page, Facebook Marketplace has all but killed the local marketplace sites and pretty much anything related to organized sports and after school activities are coordinated on closed Facebook groups. The last one is the worst one. That's basically telling people that they will hold your child's social life hostage until you join Facebook.

LinkedIn was used in a similar manor, to coordinate meetups for our local Cloud Native meetups, but the LinkedIn algorithms are much much worse than Facebooks, so people would get "You might be interested in this meetup" two weeks after the event.

Facebook basically took over communication, no more mailing lists, no more updates on the website, if there even is a website. You just have to accept Facebook if you want to be notified about changes in scheduling, upcoming events or general information about your kids soccer practise.
by MobiusHorizons | 2025-06-28 06:41:52+00:00
Relevant Scott Manley video: https://youtu.be/nxeMoaxUpWk?si=QOO9KJCGS_Q8JeyR

Relevant tom Scott video: https://youtu.be/bJ_seXo-Enc?si=m_QjHpLaL8d8Cp8b

There is a lot of research, but it’s not as simple as operating under real gravity. Makes many movements harder and can result in getting sick.
by HaZeust | 2025-06-28 06:42:37+00:00
Let me preface this by first saying your reply is "No" to a comment that stated the courts just ruled the President as a King.

You followed that by saying they just decided no federal judge is King (not what OP said), and you supported both of your statements by saying that, "if there's going to be broad spread relief [to an executive action], there needs to be a class action suit brought, or that the supreme Court needs to step in".

And tell me, what branch of government is the loss of the steadfast check-and-balance known as "universal injunctions" in favor of – and will now require for ANY AND ALL parties to ONLY be recognized for their loss and damages from actions of the Executive ONLY IF they have the means to sue for it and prevail – in a 1:1 cardinality? Could it be the Executive, who OP said this supported Kingsmanship for?

If a executive action is so unjust, so grotesque, and you need to round up parties damaged by it – outside of the absurdly long time most courts take to make things whole – can't that also be a way to round up people being directly targeted by 1 of 3 branches?

Example: EO-1 quietly builds a “voluntary” federal digital ID, so no one is harmed and nobody has standing for their own injunctions. Then, EO-2 later makes that ID mandatory to file taxes, get Social Security, renew a passport, etc. Real injury finally appears, but each citizen must sue alone and any victory helps only that plaintiff while everyone else stays locked out. The first order sinks the foundations; the second flips the switch.

That’s the executive tilt OP warned about.
by MikeTheGreat | 2025-06-28 06:42:38+00:00
It's weirdly hilarious that they allow day-old birds, and adult birds, but apparently nothing in between.

So you can order chicks by mail, but you can't return them by mail (unless birth + packaging + USPS shipping, including delivery + return packaging + delivering return package to USPS for return mailing all takes < 24 hours, total, I guess)
Ask HN: How to Setup Cloudflare DNS Proxy and GCP Load Balancer with HTTPS?
by pinter69 | 2025-06-28 06:45:25+00:00
I have Cloudflare DNS Proxy connect to my GCP load balancer API endpoint via HTTPS with a signed google certificate. The load balancer has a firewall rule allowing only Cloudflare IPs to connect. Once every 3 months in order to update the google certificate I need to disable the firewall rule and turn off the DNS proxy. A manual process that lowers my security.

Is there a better approach to this?
by anextio | 2025-06-28 06:45:32+00:00
This is not a very good example, because this Rust code is a thin wrapper around pthread_mutex, which is an unsafe API that can cause undefined behavior (such as use after free) if used incorrectly. The Rust code in question is using the unsafe C API incorrectly.

https://github.com/Forestryks/process-sync-rs/issues/3

One could say "Rust doesn't stop you from calling out into unsafe C code, so it's still possible to produce memory vulnerabilities in Rust", and it would be true, but it kind of misses the point and only really bolsters the Rust people when they say they want to rewrite everything in Rust.

In Rust, an API with a rule such as "you must check that the mutex is unlocked before you can destroy it" would be implemented using the type system in such a way as to make it impossible to drop it without checking its state. This is something that is not possible to do in C and cumbersome to do in C++.
by LargoLasskhyfv | 2025-06-28 06:45:33+00:00
There is no need to imagine that. It depends on the country, and your insurance. I've experienced it, not personally, because no need so far (phew!). But when I grew up that was free, for all. Like glasses, too.

Still don't really care, because now it would be covered by my private insurance. If not they'd get sued into oblivion really fast, even if I would be incapacitated somehow.
by selfboot | 2025-06-28 06:46:21+00:00
A deep dive into the creation process and internal structure of SSTable files in LevelDB. This article takes a problem-driven approach to analyze how SSTable achieves high read/write performance through mechanisms like block storage, index optimization, and filters. It focuses on the implementation details of the TableBuilder class, including the construction of DataBlocks, IndexBlocks, and FilterBlocks, as well as engineering techniques like index key optimization and compression strategies. Through source code analysis, it demonstrates how LevelDB solves key problems in large-scale data storage, quickly locating data blocks, reducing unnecessary disk I/O, and balancing storage space with query efficiency. With concrete code examples and flowcharts, the article helps readers deeply understand the ingenious design of the SSTable file format and the core implementation principles of LevelDB as a high-performance key-value storage engine.
by raincole | 2025-06-28 06:46:37+00:00
> I started reading to extract. Listening to summarize

I resonate with this a lot. But in the opposite way of what the author implies here.

Since I've start 'reading to extract', my attention span improved a lot. I feel my reading pattern is like that of the pre-social-media self again. Simply knowing that I'm going to write some notes down makes reading a much more engaging experience for me.

By the way, this is what I wrote into Obsidian after reading this article:

> [url]: The author deleted their Obsidian database of 10,000 notes. I do not agree on this approach, but they raised some interesting issues. Quote:

> > The more my system grew, the more I deferred the work of thought to some future self who would sort, tag, distill, and extract the gold.

> > That self never arrived.

> I am probably making the same mistake, and should be reviewing my notes more often. Perhaps I can delete some outdated ones every once in a while, instead of deleting the whole database like the author did?
by Peteragain | 2025-06-28 06:47:37+00:00
Reinforcement Learning is basically sticks and carrots and the problem is credit assignment. Did I get hit with the stick because I said 5 plus 3 is 8? Or because I wrote my answers in green ink? Or... That used to be what RL was. S&B talk about "modern reinforcement learning" and introduce "Temporal Difference Learning", but imo the book is a bit of a rummage through GOFAI. Is the recent innovation with LLMs to perhaps use feedback to generate prompts? Talking about RL in this context does seem to be an attempt to freshen up interest. "Look! LLMs version 4.0! Now with added Science!"
by microtonal | 2025-06-28 06:48:33+00:00
Basically every kindergarten, primary school and high school will want to post pictures.

Here (NL) we get a form at the beginning of each school year to mark which uses of photos we find acceptable. E.g. we allow photos in the school portal (which is private and not owned by big tech), but not on Facebook, etc. It's the way it should be done, because there is not much burden on the parents. If the school also wants to put photos on social media, the burden should be on them to make sure that kids for which they don' have an ack are not put there.

A bit harder was initially convincing my parents not to put pictures of their granddaughter on Facebook. They are understandably proud and want to show their friends. But they respect it.

I think in all her life there has only been two violations of our policy. In both cases we contacted the person who published the photo/video and they took it offline.

You just need enough 'weirdos' to make it normal. I know that there are other parents that agree, but not everyone has the gut to stand up to the social media tyranny, but will join if some people set an example.
by mtts | 2025-06-28 06:48:50+00:00
Of course if you store “7000 notes” in a PKM you should expect most of them to be useless, unless you’re doing science and most of them are literature notes or something (remember the guy who “invented” zettelkasten worked as a researcher). Ordinary mortals can get by with a lot less.

I have maybe a few hundred notes on the handful of topics that matter to me and that’s it.
by winkelwagen | 2025-06-28 06:49:27+00:00
This resonates with me, I’ve never considered knowledge as something you can live.

But comparing it with photography, it influences how you experience the world. Sometimes it makes you feel like an outsider documenting instead of being in the moment.

I always cringe a bit when people take endless videos of fireworks or concerts. There is a fine line between wanting te remember a feeling or moment and just brainlessly recording.

I’m wouldn’t be surprised if this second brain movement is similarly lacking its connection with “reality” and when lacking clear intention.
by ejstronge | 2025-06-28 06:50:55+00:00
> I imagine many people will react only to the headline and not read the article [...]

I saw this line in the article: "Meta tells The Verge that it’s not currently training its AI models on those photos, but it would not answer our questions about whether it might do so in future, or what rights it will hold over your camera roll images."

It would seem important to share this with people who may 'not read the article'
by mrweasel | 2025-06-28 06:51:02+00:00
Possibly because a large number of organisations don't really have a good system for capturing somethings as "messy" as notes.

I'm not big on note taking myself, but when I do, the things I capture is very different from the version I put into the official documentation.

There is a good article: A rational design process, how and why to fake it.[1] Basically how we reach our goal and how we present them are two different things. The personal notes have the details on failures, wrong turns and alternative ideas, the official documentation won't have that.

1) https://www.cs.tufts.edu/~nr/cs257/archive/david-parnas/fake...
by ZYZ64738 | 2025-06-28 06:51:31+00:00
I used Obsidian 2 yrs. ago for almost 2 weeks and I quit. I did not know why - until this post. I felt missing s.th. or left myself behind by not using s PKMs. Now I feel calm after reading this post. It seems that my subconsciousness alredy knew, that (to me) a PKM would never reach a break even point...
Show HN: RepoDoc – Generate a clean README.md for any GitHub repo using AI
by tanbirrrrr | 2025-06-28 06:51:39+00:00
I built a tiny tool that generates a README for me (and maybe for you too). It’s called RepoDoc —

https://repodoc.vercel.app/.

You just log in with GitHub, pick a repo, hit Generate, and get a clean README.md in Markdown, written by AI.

Right now, it’s in early testing to see how it performs in the real world. If people find it useful, I’ll keep improving it. Feedback is welcome!
by nobody9999 | 2025-06-28 06:51:54+00:00
>Again, change what? Birthright citizenship has been in the constitution plain as day for 157 years.

>"Petition to change laws" is a ludicrous suggestion of a remedy when it's already in the US constitution

And where did I say otherwise? The amendment process is what it is. Removing birthright citizenship via the amendment process is unlikely in the extreme.

As for me (An American), I think birthright citizenship is a good thing for the US.

How long it's been in the Constitution is irrelevant. It's the supreme law of the land which can only be changed via an arduous (and rightly so) process.

Petitioning "to change laws" isn't ludicrous at all. In fact, that's also enshrined in the Constitution, and for much longer than birthright citizenship.

As to whether or not one might be successful with such petitioning to modify the constitution to remove/redefine birthright citizenship is another thing altogether.

If folks want to spend their time and energy on such a likely fool's errand, they should have at it IMNSHO.

While I don't think the 14th amendment should be changed, I don't have anything to say about whether others should be allowed to advocate for such a change -- as that's the right (via the First Amendment) of all folks in the US to advocate for all kinds of stuff.

And I have just as much right to be vocal in my opposition to such changes.

As such, despite how much you might disagree (I certainly do), please don't advocate for silencing others -- because if they can be silenced, so can you, or me.
by saghm | 2025-06-28 06:51:58+00:00
The original claim that the was responding to in this thread was that `return` as an expression didn't fit in well with Rust, and he said that it did. He also cited how far more things in Rust are expressions than statements, so it stands to reason that people who program in Rust are familiar with those styles of language. It sounds like you're arguing that it makes more sense to judge whether return makes sense as an expression in Rust based on the expectations of people who aren't as familiar with expression-based languages (and therefore aren't super familiar in Rust), which doesn't make a ton of sense to me.
by strogonoff | 2025-06-28 06:52:28+00:00
Photography stealing someone’s soul is easy to discount as an obvious misconception, but if you think of “soul” as a shortcut metaphor for some difficult to describe sociopsychological phenomena then there is some food for thought in it.

First, for most of us in daily life, once you know you are being photographed you exit any context you were in and enter the new “I am being photographed” context. In some important way, you are stolen from the world around you for a period of time. Your body is still present, but you might be thinking about how this all would look at any later time. This does not apply when photography is specifically arranged by you (common in analog era), or if you are unaware of being a subject photographed (but there may be other concerns about that[0]).

Second, a photo/likeness of you is a proxy allowing other people to relate to you. Keeping in mind that we only ever relate to images/models that we build of each other in our minds (we have no “direct access” to other people), in this case a photo is a shallow (there is little other information than appearance) but weirdly high fidelity (for sighted people) model of you. This is not an issue if the photo is kept just by people you know (common in analog era) or after you are dead, but otherwise if published[1] it means people can somehow relate to “you” without the actual-you knowing or having met them. Some people may feel some sort of satisfaction from this, others it can make uncomfortable.

Third, as someone noted, soul could map to another nebulous concept: identity. It could range from problematic cases (someone pretending to be you to resell work you made) to twisted but benign (stories about people making fake profiles pretending to be successful SV employees come to mind).

[0] If you are secretly photographed[2], this can happen for a number of reasons. Some may imply a missing interaction (if that photographer could not photograph you, maybe they would talk to you instead). Some may be done with intent of sharing your photo in unknown context where again people may relate to you in specific ways that can be unpleasant (e.g., mockery).

[1] Now when generative models start to be trained on what we thought is our private photos, the idea of “published” is blurred.

[2] In most cases here “photo” can be swapped with “video”.
by lucas_membrane | 2025-06-28 06:53:06+00:00
Back when I learned guitar, guitar players came in only two flavors -- Spanish and Hawaiian. One was a Spanish guitarist if one played the guitar with the face of the guitar vertical (strings forming roughly a vertical plane), and a Hawaiian guitarist if the guitar was oriented horizontally, typically in the lap of the guitarist, with each forearm also approximately parallel to the face of the guitar pointing forward from the guitarist. Nowadays genres are all mostly obscurely defined, fragmented, swirling around, and trying to become world music, which is wonderful, and almost everyone is trying to be one of a kind, so good luck figuring that all out and finding a happy place in it. Don't be like me; if you are not in the water you are not learning to swim -- just play!
by pjmlp | 2025-06-28 06:55:53+00:00
Contrary to C standard library, all C++ compilers have provided safe versions of their standard libraries, predating C++98, enabled in debug mode.

Even if non standard, all major C++ compiler vendors have provided similar features on their standard library, and is now officially supported in C++26.

I have debugged enough C memory corruption issues with strings and arrays, that I would thought by now WG14 would actually care to fix the root cause, 40 years in.