HNHacker News
TopNewBestAskShowJobs

brandonasuncion

40 karma · joined August 11, 2023

submissionscomments
brandonasuncion··on CodingFont: A game to help you pick a coding font
I got the same result. I usually use Monaspace by GitHub. Interestingly, they both use texture healing.

https://github.com/githubnext/monaspace/blob/main/docs/Textu...

brandonasuncion··on Show HN: Run – a CLI universal code runner I built while learning Rust
If you look at it that way, I agree. But then the same thing is done for executing Go, which is listed with the other compiled languages.
brandonasuncion··on Show HN: Run – a CLI universal code runner I built while learning Rust
As a small note, Swift is a compiled language. It uses LLVM as a backend, same as Rust and Clang (C/C++/ObjC). It's currently listed under "Web & typed scripting".
brandonasuncion··on Show HN: OctaneDB – Fast, Open-Source Vector Database for Python
Claims of being "10x faster performance than existing solutions" using a HNSW written entirely in Python is enough to raise alarm bells, vibecoded or not.
brandonasuncion··on Show HN: Prime Number Grid Visualizer
I was reading into it and came across your blog post. It's a good followup read.

It has better avalanching compared to indexing by `(i * prime) % n`, but at the tradeoff of `n` being restricted to powers of 2.

brandonasuncion··on Show HN: Prime Number Grid Visualizer
I use "random" in quotation marks because it communicates the topic effectively and is very straight to the point. Colloquially, when people say "random" in the context of algorithms, it's generally understood to mean "pseudorandom" or "quasirandom". The trick is essentially an LCG using coprime numbers.

The blog post uses "random" in quotations as well in its title.

I call it O(1) because the ordering is fully determined just by choosing an arbitrary prime number. It's constant time to "reorder" the elements and also constant time to get the i'th element in the permutation. This is in contrast to something like the the Fisher-Yates shuffle which permutes the elements in O(n) time.

brandonasuncion··on Show HN: Prime Number Grid Visualizer
Reminds me of a really cool coding trick to get a "random" permutation of an array in O(1) time/memory.

https://lemire.me/blog/2017/09/18/visiting-all-values-in-an-...

brandonasuncion··on Swift-erlang-actor-system
And for times you need a fast heap-allocated type, Swift's Noncopyable types have been pretty great in my experience. Especially so for graph data structures, where previously retains/releases would be the biggest slowdown.

Example here: https://forums.swift.org/t/noncopyable-generics-in-swift-a-c...

An added plus is that the Swift compiler seems to stack-promote a lot more often, compared to class/ManagedBuffer implementations.

brandonasuncion··on My 16-month theanine self-experiment
I've tried different L-Theanine supplements, and there's definitely a difference in quality across companies... which could help explain the variance in experiences.

Unfortunately, there isn't much regulation for supplements in general. Some companies do 3rd party purity testing, though it's not always the case.

brandonasuncion··on Emerging Reasoning with Reinforcement Learning
Honestly, I'm welcoming this move to Notion. It's much less cluttered than Medium.
brandonasuncion··on Building a faster hash table for high performance SQL joins
Hi there!

I made the initial suggestion to look into Robin Hood hashing when it was first posted on Reddit.

Glad to see it make its way into the repo!

brandonasuncion··on Wikidata, with 12B facts, can ground LLMs to improve their factuality
Is it possible to finetune an LLM on the factual content without altering its linguistic characteristics?

With Stable Diffusion, you're able to use LoRAs to introduce specific characters, objects, concepts, etc. while maintaining the same visual qualities of the base model.

Why can't something similar be done with an LLM?

brandonasuncion··on Ollama is now available as an official Docker image
Btw, the quantized models are on Huggingface, so step 1 and steps 3-6 can be avoided. (The link is 3/4ths into the llama.cpp README)
brandonasuncion··on macOS Sonoma is available today
Also,

  Android 1.0
  Android 1.1
  Android Cupcake
  Android Donut
  Android Eclair
  Android Froyo
  Android Gingerbread
  Android Honeycomb
  Android Ice Cream Sandwich
  Android Jelly Bean
  Android KitKat
  Android Lollipop
  Android Marshmallow
  Android Nougat
  Android Oreo
  Android Pie
  Android 10
  Android 11
  Android 12
  Android 12L
  Android 13
  Android 14
  Android 15
brandonasuncion··on B612 Font Family
I really like the font aesthetically, and I'd use it as a coding font. However, the brackets and parentheses look too similar at smaller sizes, and arrows (ie. -> and =>) don't quite line up properly.
brandonasuncion··on SwiftUI is convenient, but slow (2022)
Just curious, but have you tried the `equatable()` modifier?

It's doc description seems to be closer to what you need than the `id()` modifier.

<https://developer.apple.com/documentation/swiftui/view/equat...>

> Prevents the view from updating its child view when its new value is the same as its old value.

Also, https://swiftwithmajid.com/2020/01/22/optimizing-views-in-sw...