Better HN
topnewbestaskshowjobs
Log inSign up

judicious

165 karma · joined Sep 4, 2023 (3y ago) · 36 submissions

Submissions

comment 1mo ago · link · parent

I do seeing this becoming a trend more and more. A lot of open models are fairly strong and fine-tuning and other post-training techniques could easily make bespoke domain-specific inference considerably cheaper (in token usage and energy consumption) and allow for more data sovereignty.

comment 1mo ago · link · parent

Blank Space: A Cultural History of the Twenty-First Century by W. David Marx. A fascinating and approachable read.

3.

Intern Spotlight: 2025 Software Engineering Summer Projects(hudsonrivertrading.com ↗)

3 points · by judicious · 2mo ago · discuss

4.

Cheap Ornament and Status Games(worksinprogress.co ↗)

1 points · by judicious · 10mo ago · discuss

5.

Euergetism(en.wikipedia.org ↗)

3 points · by judicious · 10mo ago · discuss

6.

Build Systems Are Spreadsheets(functional.computer ↗)

1 points · by judicious · 11mo ago · discuss

7.

Rain: A key-value store for Strava's scale(medium.com ↗)

2 points · by judicious · 1y ago · discuss

comment 1y ago · link · parent

I’m by no means an expert on this topic, but what about using predefined hash map of value to function call/closure unless that also yields branched programming underneath? Additionally, maybe you want to use macros of some kind to generate the “magic” function you’re looking for, where it constructs a single branchless statement up to N terms, whether it’s procedural macros in Rust or C macros.

9.

The Weird Concept of Branchless Programming(sanixdk.xyz ↗)

170 points · by judicious · 1y ago · 90 comments

10.

I learned to stop worrying and love the debt(worksinprogress.co ↗)

1 points · by judicious · 1y ago · 1 comment

11.

What if Humanity forgot how to make CPUs? [video](youtube.com ↗)

2 points · by judicious · 1y ago · discuss

12.

Class Based Programming Sucks(loup-vaillant.fr ↗)

4 points · by judicious · 2y ago · 1 comment

comment 2y ago · link · parent

Something like this occurs cross-linguistically: https://en.wikipedia.org/wiki/Evidentiality

Turkish has some evidentiality.

comment 2y ago · link · parent

Here's a link to their library in GitHub: https://github.com/tigerbeetle/tigerbeetle/blob/588123f219f1...

15.

Snapshot Testing for the Masses(tigerbeetle.com ↗)

2 points · by judicious · 2y ago · 1 comment

comment 2y ago · link · parent

That's incredibly clever, generators are underrated. I once challenged my friend to do leetcode problems with only expressions. Here's levenshtein distance, however it's incredibly clunky.

  levenshtein_distance = lambda s1, s2: [matrix := [[0] * (len(s2) + 1) for _ in 
  range(len(s1) + 1)], [
          [
              (matrix[i].__setitem__(j, min(matrix[i-1][j] + 1, matrix[i][j-1] + 
  1, matrix[i-1][j-1] + (0 if s1[i-1] == s2[j-1] else 1))), matrix[i][-1])[1]
              for j in range(1, len(s2) + 1)
         ]
         for i in range(1, len(s1) + 1)
     ], matrix[-1][-1]][-1]

comment 2y ago · link · parent

I guess for most purposes, OrderedDicts are then obsolete, but I believe there are some extra convenience methods that they have, but I've only really needed to preserve order.

Makes you think what other parts of Python have become obsolete.

comment 2y ago · link · parent

I find converting things from map objects or filter objects back to lists to be a bit clunky. Not to mention chaining operations makes it even more clunky. Some syntatic sugar would go a long way.

comment 2y ago · link · parent

Dictionary comprehensions can be very elegant. List and dictionary comprehensions are very powerful and expressive abstractions. In fact, while not good practice you can pretty much write all Python code inside comprehensions including stuff regarding mutation.

This is valid(as in it will run, but highly unidiomatic) code:

quicksort = lambda arr: [pivot:=arr[0], left:= [x for x in arr[1:] if x < pivot], right := [x for x in arr[1:] if x >= pivot], quicksort(left) + [pivot] + quicksort(right)][-1] if len(arr) > 1 else arr

print(quicksort([1, 33, -4, -2, 110, 5, 88]))

comment 2y ago · link · parent

There in lies another reason why OrderedDicts are still useful even in 3.12

comment 2y ago · link · parent

I work with different versions of Python3 (and 2 unfortunately) and some code is still in 3.6, hence I used OrderedDicts.

comment 2y ago · link · parent

I find defaultdict, OrderedDict, namedtuple among other data structures/classes in the collections module to be incredibly useful.

Another module that's packaged with the stdlib that's immensely useful is itertools. I especially find takewhile, cycle, and chain to be incredibly useful building blocks for list-related functions. I highly recommend a quick read.

EDIT: functools is also great! Fantastic module for higher-order functions on callable objects.

https://docs.python.org/3/library/itertools.html

comment 2y ago · link · parent

Definitely very excited to see this be a thing. Genuinely liked the approach to make function calls strongly typed and rely on functional programming principles.

During my senior year, I worked on a research project very similar to this and I’m glad to see this out there for everyone. I’d love to connect with the team if possible!

24.

Increasing velocity by modernizing a Python codebase(engineering.ramp.com ↗)

1 points · by judicious · 2y ago · discuss

25.

Every Simple Configuration Language Will Eventually End Up Turing Complete(solutionspace.blog ↗)

4 points · by judicious · 2y ago · discuss

comment 2y ago · link · parent

I’m always amazed by the level of the discussions on Signals and Threads. I especially enjoyed hearing about the challenges with performance engineering in OCaml versus C++. The work on unboxed types is very promising.

27.

The Dynamics of Network Effects(a16z.com ↗)

1 points · by judicious · 2y ago · discuss

28.

Why we decided to write our real-time market gateway in Rust(databento.com ↗)

1 points · by judicious · 2y ago · discuss

comment 3y ago · link · parent

This is unironically my plan/playbook with ideas I have for startups. Start with Python, node, or whatever. Then go to Rust once product-market fit has been established.

Rust really hits that sweet spot with memory-management, programming paradigm flexibility, and speed. It’s precisely great for what I need because it’s essentially an ML with good imperative constructs.

comment 3y ago · link · parent

I loved reading the “making of” post. I’m very interested in getting into technical writing and your post, really helped me understand your thought process behind “Elixir at Ramp”.
12