worked on this some time ago but didn't ship. been a bit curious about brainfuck so i hacked together an interpreter in Zig. i think there's room for making the code more concise but it works.
The demo video below includes an example of it running a sierpinski triangle brainfuck program i found on the internet
Link to source: github.com/JosiasAurel/brainfuckz
update on a drone side project i've been working with @GlenMue (haven't shared updates in a while, cuz it's actually hard, lots of hiccups along the way, this is my first hardware project and... well... life has been lifeeeinnngggg 🌦️)
1. got most of the firmware implemented and the PID controller
2. got one of the propellers broken during a test :crydeath: - we now need to get a new set, haven't found any yet in shops around (hopefully won't have to order online)
That's all I've to share, gotta get back to work
Linked a video to showcase the work we've done so far[test] upload image
[test] just another random screenshot from my desktop
[test] just a random screenshot from my desktop
[test] this soup has no texture
[test] finding out how well scrappy handles this
[test] just some logs
[test] to be deleted
[test] also hack clubbing @gibberish@example.com
doing some React Native
graph in side project
Late update: We got halfway there balancing our drone yesterday. We didn’t get to record because the cables connected to our battery burnt due to a short circuit 🥲 so we’ll have to solder new ones.
Update.
We’ve assembled the drone together and make all the four motors work.
We managed to get all the motors and work but it does not balance correctly. That’s our next challenge 👍
With my friend @GlenMue we set out to build a RC drone ourselves for nothing other than fun. We started last weekend and so far, we’ve managed to get a motor working. @undefined is doing the soldering like a pro :saluting_face:
setup Tailscale earlier this morning and using a DigitalOcean droplet as an exit node (a personal VPN)
new article just dropped (actually last evening but 🤷//josiasw.dev/writing/automatic-social-behaviour>
Oh yes another inconsistent scrapbook post. Added basic support for loops in my VM. It is doing n += 1 for a variable stored in its own memory now. Also working on making draw basic shapes
day 3 of #10-days-in-public, spent some time in the source of tyvm but frankly majority of my day was spent doing documentation type of things and dev work for an event
day 2 of #10-days-in-public reading through the source of tyvm to learn a few tricks 🏯
Day 1 of #10-days-in-public: I'm very late but here's an update -> Implemented Power, Square Root and Multiplication operations in my VM and created this pattern
getting back to work on a project i've been procrastinating on: a virtual machine which I'm writing in... yes you guessed it wrong... Zig :clapping:
more updates will go into my personal channel #josias-nestif you're using Python on Mac, you might want to run the "Install Certificates.Command" script especially if you get a SSL certificate error when making network requests
[testing] here is a random xkcd comic
some random screenshot for testing purposes
wrote a stupid script that would spawn 400+ threads on my Mac and instant regret 🤦♂️
[test] 60mb video file (original was 1GB)[test] video i found on the internet[testing] (some code i wrote for a challenge)
Tried to scrapbook your ship with links but scrappy rejected because there is no image? Well, fret no more! Now if your post comes with a link having a snazzy image preview, scrappy will gladly take it!
github.com/hackclub/scrappy
woke up at 3am today and mostly spent time installing and setting up Raycast till like 6am. I don't regret doing that!
found this via a discord server
This guy has been stuck here for a while and needs your helppassive aggressive way of saying "your internet is trash"
just a random bird for testing. hello
rocked a new record at typing !!
looked into python context managers
dear dictionary, WHY??
forgot to post this weekend but began working on a pacman-like game called "pacbot". I'm using emojis cuz I'm too lazy to draw proper characters. hoping to ship this soon #100-days #100-orpheus
Forgot to post yesterday. I got my sprig, assembled and played my game on it yay!!
+ some stickers
definitely not trying to cheat scrappy 😇
investigating some issue in scrapbook
still a post to see if it posts to a different scrapbook account
first scrapbook post on the staging environment... image didn't upload successfully but it seems to be working alright though
I've always wanted to build something concrete with Zig. So today I built this CLI that allows you to convert from one timezone to another.
Source (+ linux binary in release): github.com/JosiasAurel/dt
this is not corn 😐
something else now please work... this should be fun
something something with a this should be striked and s
this post will be retroactively watched -- I'm misusing the term retroactive
First 100-days posts -- been following the Crafting Interpreters book here and there and got a basic parser working in Java
this should not go through
this should not go through
scrapbook now supports .webp images
this lion is cool
just making a web post
this is not an orange \<3
ah just adding a <3 from the web editor
i got this picture from lorem picsum
got this from the Zig Showtime newsletter and someone has a Zig project with the same name as one of my Zig projects
got this from the Zig Showtime newsletter and someone has a Zig project with the same name as one of my Zig projects
got this from the Zig Showtime newsletter and someone has a Zig project with the same name as one of my Zig projects
adding dark mode to the Sprig editor... was harder than I expected :face_holding_back_tears:how nice this site using up ~3GB memory and crunching CPU
got spade running locally :yay:
Dear scrappy,
work this time
investigating why scrappy isn't working alright... found this random picture from the internet
Dear Scrappy,
work
did some code review on a side-project with a friend. peek at the wip UI
stuff in here
Doing some work on scrapbook
the beauty of maths
did some improvements on my sudoku solver and it can now solve hard sudoku problems (tested using nytimes).
Source: github.com/JosiasAurel/sudoku-solver (Zig)
ps: took me 5 mins to copy-paste into the web app 😄
did some improvements on my sudoku solver and it can now solve hard sudoku problems (tested using nytimes).
Source: github.com/JosiasAurel/sudoku-solver (Zig)
ps: took me 5 mins to copy-paste into the web app 😄
wrote a Sudoku solver in Zig -- learned some memory management-related stuff and some weird tricks peculiar to Zig... like putting a variable in a struct automatically makes them static and will live for the lifetime of the program
doing some scrappy testing
did some Rust :rust: coding today and enjoyed it! I built a CLI that takes in boolean expressions, parses it and outputs the result after evaluating it
source code: github.com/JosiasAurel/booltable
learned a bit about bigrams and created a simple model to predict names using it following zero to hero
wrote something to evaluate math expressions using the Pratt parser technique in Rust :rustlang:
first time my M2 air overheats and got me super worried while running the Hello World example from Raylib. Turns out I had to set FLAGVSYNCHINT before InitWindow. TIL V-sync tells the program to synchronize with the framerate of my display :thinkies:
PS: yes this is Zig :swedenparrot:
Not much today. Took some time to rewrite my markdown to html converter in C using stacks as per @GrahamDarcey's recommendation. It works better
Still room for improvement tbh but I'll call it a day.
Also the code is shorter :thumbsup-dino:
Ok, I finally fixed why my personal website was not rendering OG images when sharing links on social media.
Also did some styling and improvements on the writing and reading experience overall
Here's an old post for testing
josiasw.dev/writing/programming-paradigms
Another day of Zigging. So I improved my math parser to take on more complex expressions and evaluate them. Basically it takes the expression and builds a tree for the entire expression and then evaluates it from bottom to top with zero allocations. It doesn't yet support operator precedence though but I'm happy at how it turned out.
Also I had to write my own functions to convert from string to numbers and vice versa.
PS: Pointers are a nightmare somtimes :icri:
Today I spent some more time Zigging. Trying to improve my text calculator to support nested operations.
Dealing with errors for now but it was fun to build many things myself like a function to convert from a string to a number and such.
New post after a while. Today I spent some time doing the arithmetic arranger challenge from FreeCodeCamp.
It was quite interesting to solve this problem and gradually build a solution. The final result is good looking
New post after a while. Today I spent some time doing the arithmetic arranger challenge from FreeCodeCamp.
It was quite interesting to solve this problem and gradually build a solution. The final result is good looking
I've always wanted to build something concrete with Zig. So today I built this CLI that allows you to convert from one timezone to another.
Source (+ linux binary in release): github.com/JosiasAurel/dt
Finished drafting my manifesto and got back to the coding part.
Created xarray data trees and printed them to the console. Figuring how to move DataSet from one parent node to another
Cloned the xarray data tree repo to start contributing for internship. Installed the Dev version locally.
Ooffff next up is making some more changes on sinerider scoring service
Spent some time putting together a manifesto for a personal project (will hopefully have something to show off soon)
Woke early this morning to get some coding.
Download the LLVM source to complete a task but 6hrs into the build it failed (due to insufficient RAM) ;(
How's your Sunday going 🤧