Peter Hellberg
@c7.se
📤 73
📥 61
📝 30
Go and Zig developer, Valheim player, Bread baker.
https://c7.se
On November 29, I’ll be at Zig Day Stockholm. I look forward to meeting other Zig enthusiasts there.
zig.day/europe/stock...
loading . . .
Zig Day Stockholm #0
Zig Days are single-day collaborative programming events
https://zig.day/europe/stockholm/0/
4 days ago
0
7
3
I just published
c7.se/reviving-a-q...
where I document the experience of getting my old web server up and running again.
3 months ago
0
0
0
It is a bit fiddly, but it is possible to run two instances of the
@fireflyzero.bsky.social
emulator, and have their respective inputs synced.
9 months ago
1
2
0
It seems like the current
@fireflyzero.bsky.social
emulator is consuming >100% CPU doing nothing really, which is a bit unfortunate. Let's hope it can be tweaked somewhat to work better on low end hardware. (like my P1000 GPU)
9 months ago
1
0
0
I've pushed fixes to the `ff.Angle` type, wrote some test cases for it, and also a small example where I'm using `ff.drawArc` to draw some rotating colors. Source code available from
play.c7.se/ff/rot/
9 months ago
0
0
0
Really nice how convenient
@github.com
makes it to have static content published on Pages (`.github/workflows/static.yml` was generated for me). I am now publishing generated
@ziglang.bsky.social
documentation for `ff` on
peterhellberg.github.io/ff/
when I push changes to the module. ⚡
9 months ago
0
2
0
Fixed the getRandom() issue in `ff`, and naturally had to test it out by writing something using that function. Source code available from
play.c7.se/ff/rng/
9 months ago
0
0
0
Ported another WASM-4 thing to
@fireflyzero.bsky.social
For this one I got to do silly things like; if (self.color == .white) { for (&bytes) |*byte| { byte.* = ~byte.*; } } img[0x6..0xE].* = bytes; Source code available from
play.c7.se/ff/fp8x8/
9 months ago
1
1
0
Just ported a small WASM-4 demo I made a while back to
@fireflyzero.bsky.social
using
@ziglang.bsky.social
, fun stuff 🔥 Updated my `ff` module with conveniences such as: const pal: ff.Palette = .{ .black = 0x000000, .gray = 0x292929, .white = 0xffffff, .orange = 0xf7a41d, };
9 months ago
1
5
0
I have now published
github.com/peterhellber...
(and
github.com/peterhellber...
) which makes it trivial for me to get started working on
@fireflyzero.bsky.social
apps, maybe someone else finds a use for it as well ✨
loading . . .
GitHub - peterhellberg/ff-init: Initialize a Zig ⚡ Firefly Zero app project
Initialize a Zig ⚡ Firefly Zero app project. Contribute to peterhellberg/ff-init development by creating an account on GitHub.
https://github.com/peterhellberg/ff-init
9 months ago
0
2
0
Today v0.5.1 of the
@fireflyzero.bsky.social
emulator was released, which means I could finally use it :) (due to me being on Pop!_OS 22.04) What better then to start working on some
@ziglang.bsky.social
code to make it convenient for me to start hacking on some apps.
9 months ago
0
0
0
Started working on a rudimentary
@fireflyzero.bsky.social
emulator in Go using Wazero, Ebiten and my Gfx-library. -
wazero.io
-
ebitengine.org
-
github.com/peterhellber...
10 months ago
1
6
3
The
@fireflyzero.bsky.social
ROM file format is a Zip archive compressed with Zstandard. For fun I wrote a small CLI in Go to extract these using the lovely compress module by
@klauspost.bsky.social
(Note that you could just as well use `firefly_cli import <file>`)
gist.github.com/peterhellber...
loading . . .
A quick and dirty decompressor for Firefly Zero carts (Which are Zip files compressed using ZSTD)
A quick and dirty decompressor for Firefly Zero carts (Which are Zip files compressed using ZSTD) - unzipzstd.go
https://gist.github.com/peterhellberg/6402e95154d57ef8ac886f6b36c398d1
10 months ago
3
3
1
This week I've looked at a few vector databases, and found Qdrant to be quite pleasant to get started with. (Qdrant in combination with Ollama and the LangChainGo library for some small experiments) -
qdrant.tech/documentatio...
-
ollama.com
-
github.com/tmc/langchai...
#golang
10 months ago
0
3
0
Wrote some code to generate a list of the 24 most downloaded 4 color palettes on Lospec. Then started hacking on a little
#wasm4
cart in
#Zig
You can follow along over at:
play.c7.se/w4-advent/
(Change day with ↕️)
12 months ago
0
2
0
A neat thing with Typst is that its compiler has a WebAssembly host (in which you can load plugins for use in your .typ files) I wrote a library to make building such plugins in Zig ⚡️pretty convenient:
github.com/peterhellber...
loading . . .
GitHub - peterhellberg/typ: A small Zig ⚡ module, as a convenience for me when writing WebAssembly plugins for Typst
A small Zig ⚡ module, as a convenience for me when writing WebAssembly plugins for Typst - peterhellberg/typ
https://github.com/peterhellberg/typ
about 1 year ago
0
2
0
@brtkdotse.bsky.social
Testar om jag kan posta trots att bsky tycker att mitt handle är invalid.
about 2 years ago
0
1
0
you reached the end!!
feeds!
log in