HNHacker News
TopNewBestAskShowJobs

habedi0

122 karma · joined April 10, 2024

submissionscomments
habedi0··on Show HN: A simple PS1 memory card editor
Lol
habedi0··on Show HN: Gemini Pro 3 imagines the HN front page 10 years from now
Looks like it's over for Linux.
habedi0··on Show HN: PyGraphina – A Graph Library for Python
`rustworkx` is older and much more mature than PyGraphina. So at the moment, it includes a larger collection of graph algorithms. But the goal is to keep PyGraphina focused on specific applications like community detection and link prediction with a high-level API like NetworkX.
habedi0··on Show HN: ZigFormer – An LLM implemented in pure Zig
I wanted to get a sense of and intuition for how to build an LLM from scratch, and to learn more Zig by doing so.

I avoided using external (linear algebra/tensor) libraries to keep the project's scope small and manageable. Adding them can be the next step, but they are usually very large dependencies that can make the project bloated. Anyway, Zig has great SIMD and multi-threading support, but I think there is a need for a native linalg/tensor library for Zig with a clean and mature API.

I'm not sure about the usefulness, it depends TBH. I think there are a lot of people (like hobbyists, students, people learning Zig, etc.) who can find the project somewhat useful at its current stage.

habedi0··on Show HN: Ordered – A sorted collection library for Zig
I picked that name (`ordered`, as in `put into and kept in an arrangement`) when I started the project a few months ago and decided to keep it.
habedi0··on SmallJS: Smalltalk-80 that compiles to JavaScript
This is pretty cool!
habedi0··on Show HN: Zig-DbC – A design by contract library for Zig
That's kinda weird and sad. Lambdas are very useful TBH.
habedi0··on Show HN: Zig-DbC – A design by contract library for Zig
I think they want to add lambdas to Zig at some point. The number of changes is high between releases.
habedi0··on Show HN: Zig-DbC – A design by contract library for Zig
I created this library to help me verify the correctness of my Zig code in another project. However, I wanted the option to strip the checks when the code becomes more mature, for efficiency. For efficiency, I mainly care about speed, which is why checks are only compiled out in `ReleaseFast`.
habedi0··on Show HN: We made a 2.5GB Offline disaster AI assistant [video]
Thanks for the share.
habedi0··on Show HN: Zig-DbC – A design by contract library for Zig
Thanks.

I'm new to Zig myself and created this library because I had trouble verifying the correctness of the code I wrote for a set of complex data structures in another larger Zig project (this one: https://github.com/habedi/ordered). I'm currently experimenting with how to use DbC in Zig, which led to the creation of this library.

habedi0··on Show HN: We made a 2.5GB Offline disaster AI assistant [video]
Looks like a great (offline) use case for small language models. Are you going to share the source code for your implementation?
habedi0··on The Story of Mel, A Real Programmer, Annotated (1996)
The Story of Mel is all you need?
habedi0··on Show HN: Mongo Analyser – A TUI for MongoDB with Integrated AI Assistant
Hi, sure.
habedi0··on Show HN: 90s.dev – Game maker that runs on the web
This is pretty cool!
habedi0··on Show HN: Cogitator – A Python Toolkit for Chain-of-Thought Prompting
Thanks.
habedi0··on Show HN: Cogitator – A Python Toolkit for Chain-of-Thought Prompting
Lol. No. Not heretical at all.

I might add support for other model providers (like Google and Azure) in the future. Although I'm trying to keep the scope of the project very small because it's easier for me to maintain it.

Anyway, I think adding new LLM providers is pretty straightforward if you want to do it yourself. You just need to implement the API of the BaseLLM (see the `cogitator/model/base.py` file) for your provider. After that, you just use it like how you use OllamaLLM or OpenAILLM.

habedi0··on Show HN: Cogitator – A Python Toolkit for Chain-of-Thought Prompting
I'm not using it in a larger project at the moment. The examples right now are mainly included to help people get started quickly. About the applications, they are somewhat context-dependent, but I might add one or two larger examples later if I have the time.

I guess CoT prompting could be used for ARC Prize (https://arcprize.org)

habedi0··on Show HN: Cogitator – A Python Toolkit for Chain-of-Thought Prompting
Sounds like a great idea. In the next release, I'll add a visualization for how things work and related to each other, and possibly also include some benchmark results.
habedi0··on Graphina: A High-Level Graph Data Science Library for Rust
Lol. No
habedi0··on Graphina: A High-Level Graph Data Science Library for Rust
Hi everyone,

I'm developing an open-source Rust library called Graphina for graph data science. The library is in a very early stage of development, so it may not be ready for serious use yet. However, early versions of many core features and algorithms have already been implemented.

I'm announcing the project here to invite contributions and suggestions from the community. I'm still relatively new to Rust, so I would especially appreciate any constructive feedback you might have to help improve Graphina.

GitHub link of the project: https://github.com/habedi/graphina

Thanks for your interest and support!