JustineSmithies, to zig
@JustineSmithies@fosstodon.org avatar

Hmm has updated to using 0.11.0 but doesn't seem like it's going to get the Zig update anytime soon. As much as I love Void I've hit a few barriers which to be fair are probably my own doing because sometimes I want to run the latest from git. Not sure what the answer is? Do I suck it up and try another approach or do I head back to my roots aka Arch ?

britown, to zig
@britown@mastodon.gamedev.place avatar

I wish I could just cross compile my game to the 4 places from Windows. makes this trivial but getting the OS SDK's and dependencies to link up right just feels really impenetrable.

x86_64-macos, aarch64-macos, x86_64-linux, x86_64-windows

Even just downloading prebuilts from other targets has been something I haven't found a good resource for

britown, to linux
@britown@mastodon.gamedev.place avatar

Just in time for my game now builds and runs on using

JustineSmithies, to zig
@JustineSmithies@fosstodon.org avatar

Gone back to for a while as Qtile under is really not that stable at the moment and what with the latest Python release things got worse under so I'm going to give River another shot but I am tied between it and as a fallback to Qtile. Hyprland just doesn't interest me, Been there got the t-shirt thanks but no thanks. Fingers crossed development picks up soon on River and they move to Zig 0.11.0 . Might even tempt me to start learning ? 🤔

britown, to zig
@britown@mastodon.gamedev.place avatar

Reading about using zig as your build system and considering moving on from makefiles into the land of light and serenity

rml, to random
@rml@functional.cafe avatar

is pretty fast

source |secs | mem | gz | cpu secs
Rust#9 | 2.81 | 11068 | 1874 | 2.81
Rust#7 | 3.27 | 11068 | 1753 | 3.27
Rust#6 | 3.92 | 11068 | 1790 | 3.92
Rust#3 | 5.63 | 11068 | 1540 | 5.63
Rust | 5.63 | 11068 | 1480 | 5.63
Rust#2 | 5.98 | 11068 | 1805 | 5.98
Rust#8 | 6.01 | 11068 | 1767 | 6.01
Go#3 | 6.36 | 11244 | 1200 | 6.37
Go | 6.55 | 11244 | 1310 | 6.56
Go#2 | 6.94 | 11244 | 1215 | 6.95

rml,
@rml@functional.cafe avatar

@pkw spending a weekend with go has reminded me of @pjotrprins's talk at Fosdem about Zig, where he was commenting on Rust being too much when you just want to get into a bit-bucket soas to wrap something up to program with scheme. and while Go is about as high level as scheme and thus not what you would reach for, its made me think I should try , because now I'm less convinced that trying to improve C is a matter of putting lipstick on a pig.

edit: oops forgot link to talk https://archive.fosdem.org/2023/schedule/event/zigandguile/

krowemoh, to zig

Now that I have proven that I can hack on with zig....it's time to actually learn

It looks like the best resources are still ziglings and learnzig. I did do ziglings ages ago but never got around to actually using zig so I don't know if I really learned anything.

This time I'll take some notes while doing the ziglings. The big things I want to learn is wtf is the @ symbol doing. What does ?* mean? What is .{}? I think I saw a .&{} as well. How do strings work?

thelastpsion, to random
@thelastpsion@bitbang.social avatar

coughs in retro-nerd

Bloody COVID.

thelastpsion,
@thelastpsion@bitbang.social avatar

My week (other than a small amount of remote $dayjob) has mostly been spent watching YouTube videos in one comfy chair, windows open to maintain fresh air.

Things I have learned:

  • looks like a beautiful double-edged sword
  • Stable with looks like a usable solution
  • has bindings
  • I like the idea of more than I like the idea of (I haven't used either)
  • I definitely can't write a yet
  • I need a cheap mini wireless keyboard and trackpad
watzon, to zig
@watzon@watzonmanor.com avatar

I think it's about time for another , because it's been a while and a bit has changed.

Hi, I'm Chris. I'm a software engineer of about 13 years, with most of that being in both front end and back end web development. In a lot of circles I'm known as the guy, because for a long time that was my favorite programming language. I wouldn't say I have a favorite anymore, but I use , , , , , and a ton of other languages.

I am also a father of 2 beautiful children. Both of them were born prematurely, so that number will not be increasing.

mrnugget, to random
@mrnugget@mastodon.social avatar

I don't know what I'm doing wrong, but Mastodon seems to be the deadest of all the platforms when it comes to engagement with my posts.

(I'm saying this knowing that others report the exact opposite, so take this as a "Huh" from me, not as a criticism)

gvrooyen,
@gvrooyen@c.im avatar

@mrnugget Who knows how these social clusters form 🤷‍♂️

I joined twitter in 2008, but over the past couple of years it seemed as if the old crowd just up and left for other things.

Feels a bit like Conway's Game of Life where with some clusters just become stable and others dissipate. If you have a good thing going in Twitter, hang in there.

A few people in the thread did mention hashtags, which have a completely different dynamic in Mastodon, since you can follow them like a regular account – I follow things that interest me like and and . They're a great way to discover good content outside my network; and conversely, a great way to get posts picked up more broadly

jbzfn, to zig
@jbzfn@mastodon.social avatar

🧀 Bounties Damage Open Source Projects
➥ ziglang.org

「 Instead of scouting for a suitable candidate, you’re letting battle royale dynamics pick a winner for you, at the expense of everybody who’s going to lose the competition.

Instead of creating a clear contract where you take on some of the risk, you implicitly put the entirety of the risk on the contestants (eg partial solutions don’t get any payout) 」

https://ziglang.org/news/bounties-damage-open-source-projects/

bortzmeyer, to zig French
@bortzmeyer@mastodon.gougere.fr avatar

Allez hop, encore un langage de programmation à apprendre. Un·e volontaire pour coder un serveur ActivityPub en ? https://linuxfr.org/news/de-zig-et-des-zags

toxi, to ZigLang
@toxi@mastodon.thi.ng avatar

— Creating a basic web app with declarative UI/DOM creation via Zig/WebAssembly and the super extensible https://thi.ng/wasm-api and its https://thi.ng/wasm-api-dom add-on module, both hybrid TypeScript/Zig libraries. See alt text of images for details.

Demo:
https://demo.thi.ng/umbrella/howtothing-010/

Source code:
https://gist.github.com/postspectacular/08098359f75fa703a2cda64b1258a459

Also see the related project template (and its readme and comments) this example is based on:
https://github.com/thi-ng/tpl-umbrella-zig

Also, several more advanced (and interesting) hybrid Zig/TypeScript examples and extensive docs can be found in the https://thi.ng/wasm-api readme...

halfbit_, to cpp

seems like another worth keeping a eye on. I am still hoping for a more sane successor than , and I’m sad that because rust gets all the hype, great languages like don’t get the love they deserve. https://moonbitlang.com/blog/first-announce/

halfbit_,

@ambihelical Languages , #V, all do have varying degrees and flavors of compile time safety checks. E.g. in nim you can catch an out of bounds array access, while rust crashes.

There is a lot I love about rust, but there are serious problems (not: tradeoffs) that would need a complete redesign. It was released way too soon, and should have evolved while being used to rewrite FF.

C++ has been around for 38 years, we can wait a little longer.

brainwagon, to zig
@brainwagon@mastodon.social avatar

Early notes on : ability to cross compile C code seems cool. The notion of using the language as a build system seems cool, but calling Makefiles "esoteric" as compared to build.zig files seems comically out of place. Especially since the structure of std.Build seems to have changed with 0.11, and many examples on the web no longer even work. Zig itself has syntax which seems overly verbose and not at all intuitive to this C programmer.

rbino, to elixir
@rbino@patavium.social avatar

New blog post! This one is about using the magic of Zig's comptime to reduce mechanical noise in the implementation of Elixir/Erlang NIFs

https://rbino.com/posts/wrap-your-nif-with-zig

@elixir

pinpox, to graphics
@pinpox@chaos.social avatar

Can anyone recommend a 2d library for ?

Looking for something like https://github.com/jackdbd/zig-cairo but in maintained, that lets me draw pixels/lines/circles and export an image.

pinpox,
@pinpox@chaos.social avatar

@lhp Just getting back to this. I started to fix the bindings which use deprecated zig methods, but havn't really be able to make it work. Maybe I should start looking for more maintained alternatives?

lhp, to zig
@lhp@mastodon.social avatar

Really want to play with 0.11, but all my zig projects either depend on zig-wayland or are a little to complicated for a quick one-day upgrade 🐈

pwaring, to zig
@pwaring@fosstodon.org avatar

Trying out Zig, mainly for its cross-compilation options, is on my todo list, but in the meantime I think these are some of the most comprehensive and detailed release notes I've ever seen:

https://ziglang.org/download/0.11.0/release-notes.html

bortzmeyer, to zig French
@bortzmeyer@mastodon.gougere.fr avatar

Il y a vraiment des gens qui ont choisi plutôt que Go ou Rust ?

aks, to zig

The more I look into Hare the more I'm convinced it honestly may be the language I've been looking for.

Easy to grasp syntax, namespaces, proper strings, no header files.. It's "boring" and I find that really good.

I think I am joining the club. and of course interest me too, but the first one I'll go with will be Hare when making something new from scratch.

In the end languages are tools and I just want C but with quality of life features. Hare seems to nail that.

kroc, to random
@kroc@mstdn.social avatar

Can anyone explain what this means -- is it saying that anything I compile with this is essentially (because of libraries?)

kroc,
@kroc@mstdn.social avatar

The Ada GPL UXB is something I’m unwilling to poke any further as I can’t get the GNU compiler tool chain to be recognised in VScode for nothing (GNU software and Windows, a match made in hell), only the GNAT tool chain which is GPLv3 only without a commercial licence. I’ve opted to use Lua for now as the simplest language with the smallest cross-platform runtime to distribute (no, Python, isn’t viable). I may look at next

Amirography, to zig

Going through
When it comes to minimal languages, I feel that Zig has much greater potential than Go. But tooling-wise, Go has the edge for now.

Honestly, the consistency and elegance of Zig is blowing my mind.

rollbrettklauen, to Blog German

Hey, everyone 🫶

Was reading a few blog posts today and was wondering, if anyone is interested to share their favourite or

My favs are:

https://blog.orhun.dev by @orhun, mostly about , and a cool series called Bits

https://words.filippo.io by @filippo, about everything and a bit of

I like reading about from time to time on https://awesomekling.github.io

What are yours? :)

(Boost for exposure? :blobcatheartbongo:)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines