News for hackers. Stuff that matters.

ryangs

Re:What If We Made Advertising Illegal? on Sunday April 06, 2025 @05:06AM (#43600019)
While laudable, this seems significantly harder to implement than banning advertising. Not that either are particularly feasible policies but this one seems harder.
Epistemic statuses are a great aid in sharing ideas without sounding overly confident.

https://forum.effectivealtruism.org/posts/bbtvDJtb6YwwWtJm7/...

Re:Postgres as a Graph Database: (Ab)Using PgRouting on Thursday February 27, 2025 @10:22PM (#43201342)
https://www.hillelwayne.com/post/graph-types/ gives an interesting take on why we don't see a graph type as a primitive on more programming languages. Essentially boils down to graphs being very vague and depending on the topology of your graphs you are going to want different implementations for reasonable efficiency.

That said, there are graph databases.

Re:My Struggle with Doom Scrolling on Wednesday January 22, 2025 @08:37PM (#42799670)
I like this. Testing the browser extension now and pretty happy with it (after tweaking so returning to a tab has a grace period). I was using StayFocused, which is okay, but too tempting to just disable it (and annoying if I need to access a blocked site for work purposes).
Re:A visual demo of Ruby's lazy enumerator on Sunday January 12, 2025 @06:47PM (#42678309)
Java Streams and Kotlin Sequences provide similar iterator capabilities. Iterators are great for this lazy performance but can sometimes be difficult to debug. Especially if you are nesting many iterators, then extracting the underlying collection can be complicated. But necessary in many workflows.
Re:Getting to Two Million Users as a One Woman Dev Team on Tuesday December 17, 2024 @12:33PM (#42443303)
Excited to hear about Hardcover! I like StoryGraph but the lack of API frustrates me - I want to be able to sync back to my general notes store (Obsidian). Hopefully Hardcover works better with that.
Re:Speeding up the Rust edit-build-run cycle on Thursday November 14, 2024 @03:03PM (#42140559)
>Debug information tends to be large and linking it slows down linking quite considerably. If you’re like many developers and you generally use println for debugging and rarely or never use an actual debugger, then this is wasted time.

Interesting. Is this true? In my work (java/kotlin, primarily in app code on a server, occasional postgres or frontend js/react stuff), I'm almost always reaching for a debugger as an enormously more powerful tool than println debugging. My tests are essentially the println, and if they fail for any interesting reason I'll want the debugger.

Re:Notepad++ is 21 years old on Friday November 01, 2024 @04:00PM (#42020919)
What is your pattern for navigating to a function definition (as an example of a basic IDE operation that doesn't seem supported)? Grep?
Re:I'm Peter Roberts who does work for YC and startups. AMA on Thursday October 17, 2024 @12:17PM (#41871065)
What are some of the challenges involved with international hiring in a remote environment? I work at a fully remote startup with ~200 employees. We hire from a couple dozen countries but I know there are fairly significant barriers whenever we add a new one. What are some of those challenges? Are they getting more streamlined?
I think proper nouns get a bit more of a pass in terms of purple prose.
Re:Typing Lists and Tuples in Elixir on Wednesday August 28, 2024 @02:31PM (#41382664)
But the nonempty list never has an element, so we don't need to worry about the type mutation of removing an element from it. Filter just returns a nonempty list.
Re:Types as Interfaces on Tuesday July 23, 2024 @10:55AM (#41046623)
The problem is that user inferring doesn't scale. For small projects this is reasonable but for enterprise software engineering it is easy for a constraint that isn't enforced by the type system to be missed by an engineer leading to a bug. Whereas typed constraints naturally propagate throughout the system.
Re:A brief interview with Awk creator Dr. Brian Kernighan on Wednesday July 17, 2024 @05:19PM (#40990470)
Indeed, still in use. Also presumably the Aho of the Aho-Corasick string matching algorithm.
Right - it is saying that there is no algorithm to do this in general. Any specific instance may have a solution.
Re:Reasons not to take Lumina's anticavity probiotic on Wednesday May 15, 2024 @02:26PM (#40370580)
Interesting read. Does not seem to be working with the same set of facts as the ACX post[1], especially around FDA approval.

[1]: https://www.astralcodexten.com/p/defying-cavity-lantern-biow....

Re:My productivity app is a never-ending .txt file (2022) on Tuesday February 20, 2024 @12:50PM (#39444348)
Big fan of todoist. I've been using it for less than a month, but have already switched to the yearly subscription. I use Obsidian for my notes, but for remembering to do something, I now use Todoist. Any passing thought that I want to deliberately go back to (or even patterns of thinking, like every 6 months, reflect on this concept) can be put into Todoist and I know that I'll see it again.

I contemplated trying to do all of this in Obsidian but the conventional advice seems that while you can, it isn't worth it. Todoist offering a simple mobile interface where I can quickly add a task is great. I wish reminders worked a little better (I'd been using alarms on my phone for reminders I want at a specific time, and Todoist reminders aren't nearly as attention grabbing).

I've noticed some streaming platforms have ads for other shows/movies they've made. I don't love these but can tolerate them because:

1. They are only at the start of a show, so I'm not interrupted. 2. They offer a skip button. 3. They are ads for somewhat-relevant content and I don't tend to explore the space of other things to watch very much.

That said, it's a knife-edge for me. If they got even a smidgeon worse I probably wouldn't watch anything on those platforms.

Re:Why I Like Obsidian on Wednesday January 17, 2024 @09:23AM (#39028053)
Linking is an exceptionally good idea. It is very transformative to how I think about organizing information and doing it with Obsidian the past few months has felt great. Besides future proofing, I love the speed of processing a simple text format like markdown (plus local first) allows. Everything opens instantly, which feels very different from things like Google docs or Microsoft Word. About the only note tool it doesn't replace for me is spreadsheets that use math. There are plugins but it doesn't feel quite as clean as Google sheets for this purpose.
Re:Discord is laying off 17 percent of employees on Thursday January 11, 2024 @02:25PM (#38957456)
Being 'fair' helps company relationships with current and future employees.
Re:Why can't you multiply vectors? [video] on Monday October 30, 2023 @01:17PM (#38072451)
Highly recommend Freya's various deep dives into various game development contents. She also has twitch vods for developing those videos which are also fascinating.

https://www.youtube.com/@Acegikmo

Highly recommend the chrome extension Facebook Purity. It strips your feed of the nonsense you don't care about in a very configurable way.
This was effective for me around a decade ago. These days it feels like most algorithmic content generation sites don't care when you express negative interest in something.
Re:What Is the Point of Decidability on Thursday October 05, 2023 @02:01PM (#37781841)
I think there is a fundamental gap between the OP's concept of "Point" versus the responders. They're essentially asking if decidability has practical[1] uses to which the answer is generally "No". When a general CS practitioner imagines doing something via computation, they are already thinking of things in the realm of the possible. It may be helpful to know that exact answers are intractable and you'll have to settle for an approximation, but that information seems to correlate more with complexity than with decidability.

[1]: Where practical is in the sense of an engineer (or in their terms, a CS practitioner), not a theoretician. Most of the responders seem to interpret practical in the sense of a mathematician.

Re:Where does my computer get the time from? on Thursday October 05, 2023 @10:37AM (#37779161)
Interesting breakdown. But this format is horrible for conveying information. An improvement would be removing the slides, crafting some coherent paragraphs and then reinserting some of the more crucial images for support.
Re:Java 21 Released on Tuesday September 19, 2023 @10:43AM (#37570673)
It looks so bad in the context they give themselves:

C# $"{x} plus {y} equals {x + y}"

Visual Basic $"{x} plus {y} equals {x + y}"

Python f"{x} plus {y} equals {x + y}"

Scala s"$x plus $y equals ${x + y}"

Groovy "$x plus $y equals ${x + y}"

Kotlin "$x plus $y equals ${x + y}"

JavaScript `${x} plus ${y} equals ${x + y}`

Ruby "#{x} plus #{y} equals #{x + y}"

Swift "\(x) plus \(y) equals \(x + y)"

And finally:

Java STR."\{x} plus \{y} equals \{x + y}"

Re:LaTeX for publishing tabletop role-playing games on Monday September 18, 2023 @10:32AM (#37556631)
See also GameTex[1]. It is a LaTeX framework for writing a certain style of LARP common at MIT and Stanford.

[1]: http://web.mit.edu/kenclary/Public/Guild/GameTeX/

Re: on Monday June 26, 2023 @04:36PM (#36485486)
Definitely agree with unethical, although net negative seems a lot harder to quantify. Amazon has a lot of bad practices I disagree with, but are they net negative? I find it difficult to assess. And even if they aren't net negative now, is the 10 year trajectory clearly downward?

Soloing out Netflix, is there anything particularly wrong with them? I have significant gripes with all the others but no specifics about Netflix.

Re:Everything Is a Practice on Thursday April 06, 2023 @02:48PM (#35472666)
I think the important thing is to find a balance that satisfies you. If you never do any self improvement, you might be missing out on a much better life that would cost you relatively little to get to. But maybe your current life is hunky-dory, in which case, that's great, you do you!

And over-focus on "self-improvement" may mean you miss out on things along the way. Making yourself miss those things may be more of a decline than improvement for you.

Can you describe the structure of your conversation? Did you describe what libraries you were using and send the full code of the main app component?
Re:Ask HN: What is the best advice you got on any aspect of life? on Wednesday February 15, 2023 @03:10PM (#34809865)
Much more reasonable advice would be along the lines of "If you aren't excited about what you are going to do today for many days in a row, you should change things up."

Substitute "excited" for any reasonable descriptor. This assumes a certain amount of agency, otherwise it is just depressing that things aren't great and you can't change them.

Older »