Better HN
topnewbestaskshowjobs
Log inSign up

malkosta

211 karma · joined May 9, 2020 (6y ago) · 128 submissions

Submissions

comment 3w ago · link · parent

What is "open" about it?

comment 1mo ago · link · parent

mine has no org-mode...which is fine...I like markdown:

find . -name '*.md' -type f -exec sh -c '

  for file do  
    out="docs/${file#./}"  
    out="${out%.md}.html"
    mkdir -p "$(dirname "$out")"  
    pandoc --quiet --template template.html "$file" -o "$out"  
  done  
' sh {} +

comment 3mo ago · link · parent

Great, now they can put much more Ads in my notes app...

comment 3mo ago · link · parent

I'm probably missing something big...but after trying this herdr, conductor, etc...I always come back to ghostty+tmux+nvim....idk, maybe it's my old brain sticking to its existing synapses, but I find this setup much easier to maintain and more intuitive to think of whatever customization I need

comment 3mo ago · link · parent

Love pandoc, I use it for all sorts of stuff…here is my minimal static site generator:

find . -name '*.md' -type f -exec sh -c '

  for file do  
    out="docs/${file#./}"  
    out="${out%.md}.html"
    mkdir -p "$(dirname "$out")"  
    pandoc --quiet --template template.html "$file" -o "$out"  
  done  
' sh {} +

comment 4mo ago · link · parent

yes true, but I already have it on all my machines, for diverse reasons...it wouldn't be hard to implement a markdown support, but it would be worse to maintain that

comment 4mo ago · link · parent

mine is:

find . -name '*.md' -type f -exec sh -c '

  for file do  
    out="docs/${file#./}"  
    out="${out%.md}.html"
    mkdir -p "$(dirname "$out")"  
    pandoc --quiet --template template.html "$file" -o "$out"  
  done  
' sh {} +

comment 5mo ago · link · parent

All I remember is that it's pretty clear written in the post...

comment 5mo ago · link · parent

The problem with QWEN is that it just can't edit files reliably, I had to hack Pi all over to reduce the pain, but still far from perfect...does Gemma 4 strugle on this?

comment 5mo ago · link · parent

That was exactly my same question. Then I finished reading the post. The reason is pretty clear, and written in the post: it is faster than ollama+mlx.

comment 5mo ago · link · parent

What about just getting work done because you like to code, and not giving a damn about what others think because we will get rich anyways…I wonder why people are always trying to win instead of just having fun.

comment 8mo ago · link · parent

What a master class in linear algebra…

comment 8mo ago · link · parent

Yes, it describes human nature better than psychology. We can’t fight even knowing about it.

comment 8mo ago · link · parent

How do you ensure security? Does it have a proper container? Otherwise, it's impossible to prevent leaking prod secrets.

comment 8mo ago · link · parent

How do you intend to conquer the preemptive scheduler? System-wide fairness and preventing starvation are essencial steps for this to work well.

comment 8mo ago · link · parent

It’s crazy how pretty much every tool people post to support AI systems is already in Erlang/OTP or in elixir standard libraries.

comment 9mo ago · link · parent

Elixir + Postgres is the microservices killer...last time I saw VP try to convince a company with this stack to go microservices he was out in less than 6mo

comment 10mo ago · link · parent

You read my mind sir! Also, great work by OP, I really needed this since a long time!

comment 1y ago · link · parent

Beautiful! :clap:

comment 1y ago · link · parent

Rectangle+Apptivate made me stop looking for an i3 alternative, after years. The first for moving windows, the second for switching between them with super+number, just like i3.

comment 1y ago · link · parent

I fight against this by using it mostly on trivial tasks, which require no comprehension at all, also fixing docs and extending tests. It helps me to focus on what I love, and let the boring stuff automated.

For complex tasks, I use it just to help me plan or build a draft (and hacky) pull request, to explore options. Then I rewrite it myself, again leaving the best part to myself.

LLMs made writing code even more fun than it was before, to me. I guess the outcomes only depends on the user. At this point, it's clear that all my peers that can't have fun with it are using it as they use ChatGPT, just throwing a prompt, hoping for the best, and then getting frustrated.

comment 1y ago · link · parent

I do almost the same, with a simple bash script, and no JS junk: https://github.com/alexandremcosta/alexandremcosta.github.io...

comment 1y ago · link · parent

TODO is a pretty clear name. If it's not to be done, then it should be just a regular comment, no need to tag as TODO.

comment 1y ago · link · parent

If it's not intended to be done, then you are using the wrong name. Don't call it `TODO`.

comment 1y ago · link · parent

It's just a ~~reduce~~ loop, with an API call to an LLM in the middle, and a data-structure to save the conversation messages and append them in next iterations of the loop. If you wanna get fancy, you can add other API calls, or access to your filesystem. Nothing to go crazy about...

comment 1y ago · link · parent

Offset-based pagination will be a problem on big tables.

comment 1y ago · link · parent

The official ones are still the best: https://hexdocs.pm/phoenix/overview.html and https://hexdocs.pm/elixir/introduction.html

comment 1y ago · link · parent

I have a 60 LOC [bash script][1] to do something similar to my personal blog

[1]: https://github.com/alexandremcosta/alexandremcosta.github.io...

12345