News for hackers. Stuff that matters.

soedirgo

This is the one that I remember watching https://www.youtube.com/watch?v=826HMLoiE_o. Not exactly 24 hours though.
Re:Revisiting “The 4-Hour Workweek” on Friday October 29, 2021 @08:32AM (#29037665)
Haven't read the book, but I liked his lecture series on human behavioral biology: https://youtube.com/playlist?list=PL848F2368C90DDC3D
Re:Revisiting “The 4-Hour Workweek” on Friday October 29, 2021 @08:21AM (#29037596)
You jest, but... https://www.rangevoting.org/FeynTexts.html

TL;DR: read the end of the first paragraph.

Re:M1racles: An Apple M1 covert channel vulnerability on Wednesday May 26, 2021 @03:58AM (#27287660)
> The other person I have similar feelings for is Geohot.

I don't know about that... https://news.ycombinator.com/item?id=25679907

Re:Zig Makes Rust Cross-Compilation Just Work on Sunday May 23, 2021 @12:39AM (#27252502)
Not wasmtime, but I'm reminded of wasm-pack [0], though it's not project ownership but crate ownership, and not really a big kerfuffle.

[0] https://github.com/rustwasm/wasm-pack/issues/928

Re:“Shared libraries are not a good thing in general” on Saturday May 01, 2021 @07:26PM (#27010889)
> One day, game developers will package static binaries

Wouldn't you still need at least runtime linking (dlopen) to link to OpenGL/Vulkan/etc.?

Re:Modern C++ Won't Save Us (2019) on Sunday April 25, 2021 @10:46PM (#26938733)
While I agree with the sentiment, my impression is that the GP's point is about memory safety rather than performance. So yes, this applies for common patterns like per-frame memory in games, in which case the "it" is the arena. Otherwise, as a general rule, profile first, then optimize.
Re:New Bare Hash Map: 2X-3X Speedup over SOTA on Monday March 15, 2021 @12:23AM (#26462613)
Probably for your PR from way back when: https://news.ycombinator.com/item?id=19359870
Re:OpenGL Superbible on Monday March 01, 2021 @01:22AM (#26300203)
The latest edition (7th ed, 2015) actually uses 4.5 as well. AFAIK OpenGL hasn't changed too much since 3.3, certainly not to the point of being irrelevant for learning.
Re:Apple’s M1 silicon is all about platform control on Monday November 23, 2020 @07:56AM (#25186249)
Can you give a source for this? Also, is it still stuck at 4.1/1.2?
Re:The case for comments in code on Wednesday September 23, 2020 @07:38AM (#24565769)
Hard to talk about code comments without mentioning 'antirez's article [0] about this where he goes in depth on the different kinds of comments he used throughout Redis.

[0] http://antirez.com/news/124

Re:Best Practices for Testing in Java (2019) on Wednesday September 02, 2020 @12:30PM (#24354851)
Are you referring to snapshot testing[0][1]? i.e. you first "snapshot" the output of the function and commit it to VC, and each test run will run the same input and compare it against the "snapshot", failing and giving a diff if it differs.

I'm about to try it soon, seems like a good ROI as you said.

[0] https://jestjs.io/docs/en/22.x/snapshot-testing [1] https://github.com/mitsuhiko/insta

Since we're in pedanticville, these aren't converses, but inverses. The converse goes "If you don't outsource X, then X is your core business".
Re:Show HN: An ORM-Like Rust Client for PostgREST on Wednesday June 10, 2020 @09:00AM (#23476545)
Hey folks, this is my internship project at Supabase, which you may have heard from its HN thread that got popular recently. We lean heavily on PostgREST, which is a Haskell tool (a wildly successful one!) that turns a Postgres database into a RESTful API.

We use PostgREST through our own client library as it's much easier to use. But it's in JavaScript, and I'm part of the Rust Evangelism Strikeforce myself, and the rest is history. ;)

There's also one for JavaScript: https://github.com/supabase/postgrest-js
It's the transpose operation [1]. See property 3.

[1] https://en.wikipedia.org/wiki/Transpose

Re:Ask HN: Production Prolog in 2020? on Tuesday May 19, 2020 @12:15PM (#23236552)
Yarn 2 uses Prolog for workspace constraints.

https://dev.to/arcanis/introducing-yarn-2-4eh1#workspace-con...

Re:Rebuilding our tech stack for the new facebook.com on Friday May 08, 2020 @02:48PM (#23118077)
I don't know how many people FB actually allocates for their main app, but this reminds me of a chapter in The Mythical Man-Month. It is said over 1000 people and 5000 man-years went into OS/360. I don't see it anywhere today.

Instead, the book proposes The Surgical Team, i.e. about 10 people taking specialized roles, with the system being the product of the mind of a few key people. I wonder how well this aged.

Re:Happiness is a freshly organized codebase on Friday May 08, 2020 @02:35PM (#23117952)
Ah! I stand corrected. Mea culpa.
Re:Happiness is a freshly organized codebase on Thursday May 07, 2020 @08:02PM (#23109828)
In Go, there's a standard project layout [1]. It'd be nice to have a project layout linter in Go Report Card [2].

[1]: https://github.com/golang-standards/project-layout

[2]: https://goreportcard.com

Re:Making Emacs Popular Again on Thursday May 07, 2020 @07:44PM (#23109714)

  ;;; -*- lexical-binding: t -*-
isn't present until Emacs 24. After all these years.
Re:Making Emacs Popular Again on Thursday May 07, 2020 @07:38PM (#23109679)
It's the ultimate yak shaver ;-)

Or you could start with a popular .emacs.d (I use Doom Emacs), tweak a few things, and tell yourself "I don't need to modify yet another key binding" a hundred times.

Re:Luhmann's Zettelkasten on Saturday January 18, 2020 @09:14PM (#22088898)
I found this [1] series of posts to be incredible for implementing Zettelkasten using org-mode in Emacs.

I don't use Zettelkasten myself, but maybe I'll have the time to get around to it...

[1]: https://blog.jethro.dev/posts/org_mode_workflow_preview/

This might be related.

From pg: "...you could get smarter programmers to work on a Python project than you could to work on a Java project." [1]

[1] http://www.paulgraham.com/pypar.html