HNHacker News
TopNewBestAskShowJobs

pjot

967 karma · joined June 5, 2019

Schfifty-five
submissionscomments
pjot··on Are people bad at their jobs or are the jobs just bad?
This compounds with each _team_ modeling the work in jira/excel too!
pjot··on My 16-month theanine self-experiment
Through the arm, I believe, is still the way it’s performed today!
pjot··on Sam Bankman-Fried thrown into solitary over Tucker Carlson interview: report
I don’t know, I feel like there is much more room for positive incentives than negative. Prisons put people on a pretty level playing field.

Like, the well behaved could be served pork chops and peas instead of slop and mush.

pjot··on Sam Bankman-Fried thrown into solitary over Tucker Carlson interview: report
Maybe leading with a stick instead of a carrot isn’t the right approach?
pjot··on Simplewall Has Been Discontinued
When Forest Gump said “I’m pretty tired, I think I’ll go home now” was he breaking an obligation to keep running just because others were following him?
pjot··on How Louis Armstrong shaped the sound of Ghana
The impacts of this on today’s music is unreal.

WWOZ is the local station and its djs are musical historians.

Enjoy https://www.wwoz.org/listen/player/

pjot··on If you ever stacked cups in gym class, blame my dad
We did this in elementary school in Seattle. I feel like the muscle memory might still be there!
pjot··on Introducing deep research
From New Oxford dictionary:

  > combine (a number of things) into a coherent whole: pupils should synthesize the data they have gathered | Darwinian theory has been synthesized with modern genetics.
pjot··on I keep turning my Google Sheets into phone-friendly webapps
A little know Google product is called Tables[0]. Very similar to what you’re describing.

Another is AppSheet[1] for a more drag and drop application builder.

[0]: https://tables.area120.google.com/

[1]: https://about.appsheet.com/home/

pjot··on So You Want to Write Java in Neovim
Similarly, I found the kickstart.nvim immensely helpful as a jumping off point.

https://github.com/nvim-lua/kickstart.nvim

pjot··on How did human butts evolve to look that way?
Made me spit my coffee out
pjot··on Should you ditch Spark for DuckDB or Polars?
So many think they (their company) have “Big Data” but don’t.
pjot··on Bringing the Instructions to the Data
Apache Substrait is doing exactly this. Paired with Arrow makes for powerful composable data architectures

https://substrait.io/

pjot··on Chuck E. Cheese's animatronics band bows out
For weeks after my grandmother brought me to a Chuck E. Cheese for the first (only) time, I had recurring nightmares fueled by this band.
pjot··on Advent of Code 2024
I love it for these meta-type use cases that aren’t necessarily about solving the puzzles.

For instance I’m using it this year to dial in new neovim configs. Last year was to get comfortable with a split keyboard.

pjot··on Brick and Mortar Triangle Fraud
This happened to my parents in the late 90s. No recourse back then - or at least I don’t think there was. Roughly 20 pairs of shoes were delivered to our door.
pjot··on Malware can turn off webcam LED and record video, demonstrated on ThinkPad X230
Just to point it out, but there’s a native terminal command `caffeinate` that does the same as Amphetamine.

I use the -disu flags

pjot··on 32k context length text embedding models
Personally I feel they are overkill.

For example I’m using duckDB as a vector store for similarity search and RAG. It works really well.

https://github.com/patricktrainer/duckdb-embedding-search

pjot··on SQLite’s Use of Tcl (2017)
This book lives on my desk. And I’ve proudly filled its pages with annotations and sticky notes. It’s really well done.
pjot··on Ask HN: Have you changed your top color on HN?
The default is #FF6600
pjot··on M4 Mac mini's efficiency
I recently upgraded from a 2020 Intel MBP to an M3 Pro. I’ve been been blown away. Even more, I’ve yet to hear the fans turn on.
pjot··on DuckDB over Pandas/Polars
And macros! Which you can overload too

https://duckdb.org/docs/sql/statements/create_macro#overload...

pjot··on My Time Working at Stripe

  > He gave me a coderpad link. I started to read through the question. I could already feel my mind moving like molasses. On the surface the question seemed straightforward enough. It presented a simple data structure and asked me to do some filtering based on a set of constraints. “No problem!” I thought.

  I fired up vim and got to work.
Wait, since when can you use your own editor? Is this common? Did I just fail to ask?

My interview with Stripe felt similarly nerve wracking - with writing code in what may as well be TextEdit.app contributing to that feeling

pjot··on Vector databases are the wrong abstraction
Embeddings are what encode the “meaning” of a given text. Similarity search works by computing the angle between your query vector and the rest of the vectors already stored. DuckDB (and columnar stores in general) is great at aggregation. It’s particularly well suited because DuckDB is a single file. There’s no server to muck with.
pjot··on Vector databases are the wrong abstraction
Yep! It was added in v0.10.0 - which was released a month or two after I made this.

This is using v0.9.1

pjot··on Vector databases are the wrong abstraction
I made something similar, but used duckDB as the vector store (and query engine)! It’s impressively fast

https://github.com/patricktrainer/duckdb-embedding-search

pjot··on Her Majesty’s Rat-Catcher (2013)

  > The Downing Street website describes Larry's duties as "greeting guests to the house, inspecting security defences and testing antique furniture for napping quality". It says he is "contemplating a solution to the mouse occupancy of the house" and has told Downing Street that such a solution is still in the "tactical planning stage"
Larry the Cat is quite the diplomat!
pjot··on Crokinole
When I was a kid my neighbors (who were from Ontario) taught me this game - we played all the time! It’s been over 20 years since and every few I try and recall what “that game” was. So glad to have seen this!
pjot··on Show HN: Self-Hostable Algolia DocSearch Replacement
Got it! I saw this in the code and assumed you were using embeddings def evaluate(input: shared.EvaluationInput): ds = Dataset.from_list(input.dataset) metrics = [metric_map[metric] for metric in input.metrics]

    llm = ChatOpenAI(
        model_name=shared.LANGUAGE_MODEL,
        base_url=os.environ["OPENAI_API_BASE"],
        api_key=os.environ["OPENAI_API_KEY"],
    )

    embeddings = OpenAIEmbeddings(
        model=shared.EMBEDDING_MODEL,
        base_url=os.environ["OPENAI_API_BASE"],
        api_key=os.environ["OPENAI_API_KEY"],
    )
pjot··on Show HN: Self-Hostable Algolia DocSearch Replacement
Can you talk about how you implemented search-as-you-type? Doing so with semantic search seems tricked given the roundtrips needed to compute embeddings on the fly (assuming the use of OpenAI embeddings)
← PreviousPage 2 of 12Next →