What are you doing this weekend?

Inspired by this Lobsters thread, and some of the great comments within it, I would like to ask if anybody is doing some hobby programming this weekend?

52 points · 56 comments · view on lemmy.world

56 Comments

HelloRoot@lemy.lol · 17 pts · 1d (2 replies)

1h of videogame dev every day keeps the depression away

alienscience@programming.dev · 12 pts · 1d

I find daily is better than weekly because I can actually remember what I was doing. However, it is mostly just a few hours each weekend for me a the moment.

Valmond@lemmy.dbzer0.com · 1 pts · 12h

So, what kind of game are you making?

alienscience@programming.dev · 17 pts · 2d

I got interested in constraint programming, and I had NO idea how it worked. It seemed like magic.

I have started on following the slides and code of MiniCP, and have started implementing the first steps in Rust. I find it very challenging but it is a great learning experience. I got such a thrill from solving the N-Queens problem in milliseconds from a program that I had written myself.

I am continuing to develop the implementation for a few hours this weekend. Because writing a constraint system is hard, I am also learning some new parts of Rust that I have not touched before.

rozodru@piefed.world · 14 pts · 1d

I'm trying to build my own Wayland WM. why when there are so many out there? because I don't feel like any of them do them well. either they all focus on fancy animations (hyprland) or slam you with features without focusing on specific things (mangowm) or primarily have issues with mouse/keyboard focus on games in window mode or just games in general when you toggle away from them and back (all of them) and that annoys me.

There's one specific game I play in window mode with multiple clients of the game running, it's EVE Online. ALL the Wayland WM's have issues with this. you move away from the window and back it doesn't grab the mouse back the first time or the keyboard won't work the first time going back. X11 WMs have ZERO issues with this. but like with Niri you have to switch workspaces and back just for it to grab the mouse/keyboard again. Hyprland you have to switch windows and back. Sway is the same type of deal.

So I'm trying to build a Wayland WM with a focus on gaming and vim style navigation as that's what I do on my machines. game and code. I just want to take a suckless type approach and do one thing and one thing well. I'm also tired of the idiotic configs and resource hogs of many of these. there's an x11 WM called SXWM written by a 13 year old whose config file is the most simple and clean one I've ever seen. many x11 WMs are like this (CTWM is another example of a clean and simple config) I want to adapt that to Wayland as hyprlands switch to lua and thus turning it into a mess also annoyed me.

it's a big project but one that I feel needs to be done. so I'm just building something that tiles, is solid with the mouse and keyboard, and has a very simple config and low resources. that's it.

CameronDev@programming.dev · 13 pts · 2d

I wrote a memory scanner that can regex over a processes memory. Goal was to make it easy to find CTF flags in memory. Dunno how useful it is in reality, but it was a fun tangent.

MyNameIsRichard@lemmy.ml · 9 pts · 1d (2 replies)

Learning the basics of rust and trying to build my new language first project

alienscience@programming.dev · 5 pts · 1d (1 reply)

Learning Rust is a journey. I actually gave up twice before I learnt it properly. I built a simple interpreter as my first project and I found it challenging.

I think that tutorials, and the support you get, is much better now though. Its also a language well worth learning.

MyNameIsRichard@lemmy.ml · 3 pts · 1d

Yeah, it's certainly different!

provectus@lemmy.ml · 7 pts · 1d (2 replies)

I learning about kernels by writing my own.

alienscience@programming.dev · 2 pts · 1d (1 reply)

Is there a course or a book that you are following or did you just dive in?

provectus@lemmy.ml · 5 pts · 1d

osdev is the way, https://wiki.osdev.org/Expanded_Main_Page. I am also following this, so I do not need to build a cross compiler, https://arjunsreedharan.org/post/82710718100/kernels-101-lets-write-a-kernel. I am writing a 64 bit kernel, so I am going to use limine as the bootloader.

Pencilnoob@lemmy.world · 7 pts · 1d

Not 100% programming but I've been getting into homelab stuff lately. Yesterday I got Fedora installed on an old MBP, and I'm hoping it'll be a good moonlight client to my main gaming desktop.

Now the living room TV can be run from the MBP and folks can still watch TV while I'm gaming. Then if I'm in the mood I can do couch gaming.

The first attempt last night worked so well! I was shocked to be playing a shooter like Just Cause 3 without any visible lag. Very impressive!

For programming, it's time I hosted my tarot card website on my home Ubuntu server. It's been a few weeks of testing the site just by running it from the command line. I'm still a little shaky on the hosting stuff, but I think I'll use a systemd service to ensure it starts up when the server reboots.

mlg@lemmy.world · 6 pts · 1d (2 replies)

I'm messing with making a kernel softmac driver that can handle Nintendo specific 802.11 frames so that MelonDS can connect to a real DS or to another device using the native Nintendo wirelesss protocol.

Lot's of interesting reading and packet capture fun with Wireshark has given me an idea of where to start, but the tricky part is that the DS needs less than 20us of round trip latency for it to work, which is insanely low. Otherwise the connection is considered interrupted and gets dropped.

afaik, the only part that "verifies" the latency are ACK frames which the DS expects a return for every frame transmitted, so it should in theory be possible to just make a small driver that generates ACK frames at kernel priority, and forwards the rest of the frame to MelonDS for actual game handling.

I'm hoping it turns out that easy but the MelonDS forums have a long ass thread about how much of a PITA the DS wireless multiplayer timing synchronization requirements are.

Maddier1993@programming.dev · 3 pts · 23h

Ooh, It does sound interesting. My wild conspiracy is that Nintendo has made hardware offloaded functions that run with sub-microsecond latencies so this 20 us looks more like blocking non-DS hardware from communicating with the DS.

xianjam@programming.dev · 2 pts · 22h

Wow, this would be quite cool. When DS emulators were new, I wanted this to be a thing so bad.

Unrelated (and not what I'm doing this weekend), but I've always been interested in reversed-engineering the DS / DSi firmware drivers that connects to WiFi to attempt to backport the 802.11b driver to WEP-only DS games.

trem@lemmy.blahaj.zone · 6 pts · 1d

A few weeks ago, I threw down a CLI for getting web-links for a local repo, so you could e.g. run forge path docs/index.md and it would give you a permalink for your GitHub/Codeberg/etc. repo to that index.md file.
Now I've used it for a few weeks and I'm realizing all the dumb assumptions I've made about how Git repos work.

For example, there's also a subcommand forge issue 123, which gives you a link to issue #123, but of course, it's not necessarily true that you actually have your issues where your code lives. You might have a separate JIRA, or you might be working on a fork from which you'll post a PR later.

Now I'm trying to figure out how to make it work at the very least for my own use-cases, ideally without requiring configs for every repo.

But yeah, it's great fun. Some excellent puzzles and also very humbling, because I'm pretty much supposed to be an expert in Git and yet:

  1. you suddenly see me googling shit like "git fetch vs. push url", and
  2. I struggle just as much to formulate proper requirements as our customers at $DAYJOB.
one_old_coder@piefed.social · 6 pts · 2d (2 replies)

Kotlin Multiplatform because I'm unemployed, and Kotlin is a nice language and it's been decades since I haven't done a mobile application (the last ones were in Java for Android and Objective-C for the iPhone).

alienscience@programming.dev · 2 pts · 2d (1 reply)

I haven't used Kotlin for years but I did do a $WORK project in it once. I prefer co-routines in Kotlin to using async in Rust (which makes sense because it is a higher level language with a garbage collector). I also like how easy it is to write Domain Specific Languages (DSLs) in Kotlin.

Good luck with the job search. Its hard out there at the moment.

one_old_coder@piefed.social · 2 pts · 1d

Thanks!

tias@discuss.tchncs.de · 6 pts · 2d

I'm working on a classifier to keep the chaos of my inbox under control. It uses the gemini LLM API (gemini-flash-lite) to add labels to each email depending on things like:

  • does it require an action from me?
  • does it require a reply from me?
  • is there a deadline?
  • is it an invoice?
  • is the information just an event about changes to information that exists in another system (i.e. a notification that can be deleted)

Currently upgrading from the 2.x to the 3.x model and tuning some of the prompts.

andioop@programming.dev · 5 pts · 1d

I'm lucky enough to sometimes take public transit that publicly posts its data on arrival times and the like. Have been working on a script to tell me when there's a track change (which changes where I need to wait for the train) because I'm a lazy person who wants to just have a notification fly across my phone screen instead of actually checking on the website. Currently working on testing some functionality before dumping it on my Raspberry Pi. I usually work on this while on the transit, but hopefully I'll do some of it this weekend.

Also would like to get working on the bog-standard personal project habit tracker, to make sure I remember how to do front end, back end, etc. I've learned I am more likely to use a system I built for myself. We will see if I get to it!

nnullzz@lemmy.world · 5 pts · 1d

Started a DSP/Audio plugin journey last weekend. This weekend I’m going to try to build a utility plugin I’ve had in mind for years. New to c++ so it’s been refreshing to be programming something totally different than my norm of web APIs and frontends.

mbp@slrpnk.net · 4 pts · 1d

I've been tinkering with integrated programming and physical circuits. Working with my hands to "code" a physical piece of hardware that does a specific purpose has been a breath of fresh air in the age of Al.

shape_warrior_t@programming.dev · 4 pts · 1d

Just finished "version 0" for a very simple programming language yesterday, and I'm looking to work on "version 1" this weekend. Rust is truly fun to program in... although writing all the tests was not a very fun experience. But doing the work for that meant I was guaranteed to have a reasonably good grasp of the semantics by the time I finished.

Since it's Rust, there's no garbage collector -- heck, for this particular language, there's not even any memory allocation after startup. Instead you get a giant global array of "memory" to work with. The only data type is the 32-bit integer (and thus, using UTF-32 for strings is actually the """correct""" choice for this language). I'm using a vaguely Lisp-like syntax that revolves around {[a tree] formed from (brackets and whitespace)}... which was probably slightly easier to parse than more traditional syntax, but Rust's current lack of pattern matching "through" Vec (for example, letting you extract e from {a b [c (d e)] f} in one step) didn't always make it feel that way.

Nest up: adding while loops, exponentiation and bitwise operators, and most interestingly, string and character literals. (The char literals would just evaluate to their character codes, and string literals would only be usable in a specific write-to-memory construct.) And also expanding the standard library. I'd say "version 1" would really be the more properly "complete" version of the language. I also want to do a functional programming variation (ditching the global memory in favour of reference counted cons cells), and also the whole language is kind of just a stripped down version of another much bigger language half-formed in my head, but that's all probably for... not this weekend, at any rate.

cafuneandchill@lemmy.world · 4 pts · 1d (1 reply)

Sadly, nothing; not very enthusiastic about programming at the moment. Though I'm currently going through Practical SDR by No Statch Press and learning GNU Radio. It's basically a flowchart constructor for Python code, so I guess that counts

alienscience@programming.dev · 3 pts · 1d

I lost enthusiasm and then my interest slowly came back as I wanted to learn things. Just in case you haven't seen this page, I thought it was really cool when I read it years ago: https://blinry.org/50-things-with-sdr/

remotedev@lemmy.ca · 3 pts · 14h (1 reply)

Looking for a job :(

FoxtrotDeltaTango@sh.itjust.works · 2 pts · 13h

Yeah, Same here honestly

Valmond@lemmy.dbzer0.com · 3 pts · 12h (3 replies)

Working on my latest videogame, very early stages but it's coming along nicely.

I also sot up a git server at home and a ssh access key on my el-cheapo laptop and I feel very good every time I push a branch from it to home.

I do have performance issues with Rider though (JetBrains C# IDE), I have disabled basically everything except syntax coloring and still it's just lagging insanely all the time. 20 seconds i7 quad core peak because I (shudder) select text, or erase some letters in a comment. Aaaaaa! If anyone knows a C# ide that works well with Godot on linux I'm all ears. Syntax coloring, debugging & autocomplete if possible, FOSS would be fantastic (microsoft code thingy sucks ass btw IMO).

Godot is fantastic BTW!

xianjam@programming.dev · 1 pts · 12h (2 replies)

Check out DotRush. It's made for VSCode/Codium but can be used with pretty much anything else with its LSP. https://github.com/JaneySprings/DotRush

Valmond@lemmy.dbzer0.com · 2 pts · 12h (1 reply)

Thanks, but vscode already do c# (and is quite shitty IMO)?

xianjam@programming.dev · 1 pts · 12h

Sure, but DotRush can work well with other editors with LSP support, like NeoVim, Zed, and Sublime as noted here. I'm pretty sure it can work with other editors, too, like emacs, but haven't tried (yet?). It also explicitly supports Godot.

idunnololz@lemmy.world · 3 pts · 1d

Trying to get a release of Summit (!summit@lemmy.world) ready. I've been trying to catch back up after taking a month hiatus about 2 months ago and still playing catch up.

Been ignoring the community for too long so after this release will need to go tend to requests and bug reports. It's a lot of work :/

insomniac_lemon@lemmy.cafe · 3 pts · 22h (5 replies)

I have a couple of ideas bouncing around, but they might be too ambitious (plus harder that I use a less common language, often via bindings).

The first is a lot of ideas for a mesh editor, but not sure where to start. Technically, I already started a while ago with a text-based* polygon format/loader for Raylib so if I had some (high-level) way to export that polygon to a 3D file (single/double-sided faces or extruded) that'd be the first step. However I never really used/continued what I made (2D) because of how windings (fan vs strip) are, not good** as you'd need to keep track of it during usage. Perhaps something else might be better, like p5js?

The other is a frameless+floating X11 WM, and I'm similarly unsure of what I should use for drawing a title/titlebar and window buttons (and inset controls if possible). .xpm for bar/buttons is a maybe.

* sparse (a rectangle is 4 numbers on an otherwise empty grid), not like traditional (filled) ASCII art

** maybe expecting winding from an unordered list of points is too much, but not sure there's an easy way to cover windings for most situations. Color index (8-way) used as face hints, or similar (4-way?) for inside direction? Multiple origins for raycasts?

e0qdk@reddthat.com · 2 pts · 21h (4 replies)

fan vs strip

Why not just work with a collection of triangles directly? It uses more memory, yes, but it's simpler to reason about and can also have parallelism benefits (since each triangle is independent).

It can still be useful to track shared vertices (and reference them by index) though.

insomniac_lemon@lemmy.cafe · 2 pts · 14h (3 replies)

That's how it could work when it gets to 3D anyway (with face-corner vertex color which I might not always need) but that'd be a pain to define by hand and the format I have I don't actually have a way to define the same point more than once as it's on a text grid.

::: spoiler for example, an oval

Note: it appears round here, but it isn't

#values: matrix_xres matrix_yres target_size vert_num
#vert pattern is cntrclckwse (related: replace 0 with @ for closed shape) or |/|/
31
15
160.0
9
               1               
                               
    2                     8    
                               
                               
                               
                               
3              @              7
                               
                               
                               
                               
    4                     6    
                               
               5               

Easier to edit in a text editor with syntax highlighting that marks spaces for a visible grid.
My face hinting idea also doesn't work with this shape due to orientation (would work as a more traditional octagon), it also seems to be more obvious/viable with a larger grid (looks right for a 32x32 star shape).


:::

e0qdk@reddthat.com · 1 pts · 13h (2 replies)

I'm not sure I quite get it, but if I'm following correctly, you're using the numbers to indicate a sequence of vertices for a triangle fan here (with @ indicating the central vertex), right? If so, the vertices are used in more than one triangle; (0, 1, 2) and (0, 2, 3) are triangles that reuse vertex 0 (@) and vertex 2.

If that's what's going on then it should be fairly straightforward to turn shapes defined like this into extrusions; for the simplest case you duplicate and offset the triangle fan for the other end and then generate quads/pairs of triangles for the extruded faces of the prism -- and for more complicated cases you can repeat that (with planar alignment if needed) following a curve in small increments.

I might not be following though since I don't know what you mean by color index face hints.

insomniac_lemon@lemmy.cafe · 2 pts · 11h (1 reply)

You are right about a few things, though the key is that Raylib is what's creating the polygon (after I parse the text file into a sequence) and ideally I don't handle face/mesh creation myself (at low-level). Maybe eventually.

what you mean by color index face hints

For additional context on where faces are.

I've mentioned vertex color (ideal as face colors), but I probably do want to handle a 3-digit-hex color palette with object-library-wide management.

::: spoiler here's what I was thinking with verts no longer numbered (instead E for external, C for corner. even-odd might work better in some cases), index numbers as hints and for color Each arm would be its own color

#values: matrix_xres matrix_yres target_size vert_num
#IDEA, fails with heart as there is only 1 corner vertex
32
32
160.0
11
                                
               E                
               1                
                                
                                
                                
                                
                                
                                
                                
                                
E2         C       C         3E 
                                
                                
               1                
              2@3               
              4 5               
         C           C          
                                
                                
                                
               C                
                                
                                
                                
                                
                                
                                
                                
     4                    5     
    E                      E    
                                


:::

The reason I'm thinking about this is that it would be better to have one way to define verts. triangle_strip can generally do more (shapes with no central point) than triangle_fan, though I think the star here is the sort-of-thing that a single triangle_strip cannot do. That, and with numbering it only allows 62 verts (0..9, a..z, A..Z), and is a bit clunky to iterate on. Numbering, especially with a strip, is also a lot more complex as you get more verts. If I got to the point of making my own editor*, I might abstract this away so the user only works with points.

Use-in-code-wise I may have already solved fan-vs-strip with a function that just compares the values of the first few points to choose draw type, though I wasn't confident in that as it'd require a lot more testing. Might be better to store that in an enum as well.

* I wasn't quite sure of using what I already made for anything more than a simple arcade-like game, so that sort of kills motivation, needing to do even more technical work just to get visible results.

e0qdk@reddthat.com · 1 pts · 10h

OK. I think I see what you're getting at. If you can figure out how to get it to the point of an outline, there are triangulation libraries that can fill in the mesh for you (I think I've mentioned one to you before a long time ago) if you want flat end caps on the extrusion. I'm not sure off the top of my head how you'd get to an outline from that star example though -- a few ideas come to mind, but they're very much half-baked ideas... :p

Best of luck!

Edit: the triangulation library I was thinking of: https://github.com/mapbox/earcut

nbsp@programming.dev · 3 pts · 2d

upgrading unloved django blog to 5.2, rebuilding vps, moving everything to uv and working out how that's going to play with piku.

if get that done, fix up some of the css on my blog and start a blog post to use as back country and camping check list (bc i forgot some stuff i really should have taken on last tour).

half arsed look for new job.

help bro cut down a tree.

clean the car.

orhtej2@eviltoast.org · 3 pts · 1d

Will probably try to migrate my Matrix homeserver from Dendrite to Continuwuity. No official migration path exists, what could possibly go wrong 😜

fieldswork@sh.itjust.works · 3 pts · 1d

Finally working to finish Eloquent JavaScript - whether this is me procrastinating on revamping and migrating my personal website or trying to fill in my knowledge gaps is a mystery to me.

ArsonButCute@programming.dev · 2 pts · 16h

I'm relearning arduino!

I've got a couple 382p's laying around and wanna build an RTOS for them, eventually drive a CYD to interface with them.

End goal: Affordable offline-first PDA.

echo@lemmy.ml · 2 pts · 1d

I’ll probably continue working on my Swift GTK/libadwaita wrapper and the demo project that makes use of the library. Doing it this way has been very pleasant, it allows me to put it through real world tests and helps me identify stopgaps in the toolkit I wouldn’t otherwise notice through unit tests alone.

yuman@programming.dev · 2 pts · 1d (1 reply)

got fed up with the local marketplace options so Imma scrap together a market. haven't touched django in like a decade, not up-to-date on tooling, don0t wanna pay for 3rd party services... what can possibly go wrong?

orhtej2@eviltoast.org · 1 pts · 1d

Something akin of Flohmarkt? Perhaps better to join forces?

jazztickets@lemmy.world · 2 pts · 1d

Writing code inside Mindustry's logic processor that test belt speeds, benchmark different schematics, etc.

A_norny_mousse@piefed.zip · 2 pts · 1d (4 replies)

Polishing my current SailfishOS installation. Some systemd services to tweak things, some user scripts in .desktop files (i.e., menu icons). I'm not an app developer but I love how I can do all my Linux tweaking on my phone, too.

The OS has gotten a lot better recently, and I'm on the most suitable non-dedicated device now. It should last me some years.

alienscience@programming.dev · 1 pts · 1d (3 replies)

I like the look of SailfishOS but there is the Ryanair app and a Banking app that I am sure will not work on it. Sometime in the future, I will probably have two phones, one for difficult apps and one with an OS that respects the user.

A_norny_mousse@piefed.zip · 2 pts · 1d (2 replies)

I like the look of SailfishOS

Who doesn't, but as I pointed out above that's not the main point for me.

the Ryanair app

Yeah probably not 🤢

and a Banking app that I am sure will not work on it.

Sure? Check here: https://forum.sailfishos.org/t/banking-apps-on-sailfish-os/18438

alienscience@programming.dev · 2 pts · 1d (1 reply)

Thanks, the banking app works!

A_norny_mousse@piefed.zip · 1 pts · 1d

Good. I was thinking; why shouldn't the Ryanair app work either. If it requires the full Google servcise bullshit, people got that to work, too: https://forum.sailfishos.org/t/google-play-services-on-xperia-10-iii-sailfish-4-4-0-64-now-5-1-0-11/11596 and mostly @Ikraav's posts therein (weird I thought they had their own topic).

nexusshell@lemmy.1095.me · 1 pts · 1d

I’m spending part of it on one of those changes that sounds tiny but touches half the desktop app: keeping a WebKit-backed terminal alive while SwiftUI rebuilds navigation. SSH can remain connected while the UI loses scrollback and visual state, so I’m separating the long-lived session from the transient view tree and letting SwiftUI rebuild only the native shell. Then feedback triage, and deliberately no new feature this weekend.

rimu@piefed.social · 1 pts · 1d

Yeah a little bit of coding

Here and here.

A couple of lines probably.

idriss@lemmy.ml · 1 pts · 10h

Realized, while disabling registration (due to heavy bot activity), my CI was broken so took the weekend to fix it https://github.com/idrissbellil/gossiper https://app.v3m.pw/