Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
170
Zig is a new, independently developed low-level programming language. It’s a modern reimagining of C that attempts to retain all of C’s performance benefits while also taking advantage of improvements in tooling and language design from the last 30 years. Because Zig is designed to replace C, one of the first-class features is that you can call into C libraries from a Zig application. I couldn’t find any simple examples demonstrating Zig’s C interop functionality, so I decided to write my own.
a year ago

Improve your reading experience

Logged in users get linked directly to articles resulting in a better reading experience. Please login for free, it takes less than 1 minute.

More from mtlynch.io

goHardDrive Leaked Personal Data for Thousands of Customers

I recently returned a product to goHardDrive, a merchant that specializes in selling used hard drives. During the return process, I discovered that they were accidentally publishing details about thousands of their customers, including their full names, mailing addresses, email addresses, and order details. The leak When I requested a return from goHardDrive, they assigned me a return merchandise authorization (RMA) number ending in five numeric digits. I’m not publishing my actual RMA number, but you can imagine that it was a number like this:

yesterday 3 votes
My First Impressions of Gleam

I’m looking for a new programming language to learn this year, and Gleam looks like the most fun. It’s an Elixir-like language that supports static typing. I read the language tour, and it made sense to me, but I need to build something before I can judge a programming language well. I’m sharing some notes on my first few hours using Gleam in case they’re helpful to others learning Gleam or to the team developing the language.

a week ago 10 votes
A Simple Example of Calling an Elixir Library from Gleam

I’ve been experimenting a bit with Gleam and Elixir lately as part of my search for a new programming language. One of Gleam’s flagship features is that it can call Elixir code and libraries, but I couldn’t find any examples of how to do that. I wrote a simple example of calling an Elixir library from a Gleam project, based on my beginner’s understanding of the Gleam/Elixir/Erlang ecosystem. Install dependencies For this example, I’m using

3 weeks ago 13 votes
Educational Products: Month 8

Highlights The writing techniques I planned last month helped me publish faster and focus better. I need to find more ways to talk to readers about my book. Goal grades At the start of each month, I declare what I’d like to accomplish. Here’s how I did against those goals: Publish two chapters of my book to pre-order readers Result: Published “You’re Qualified to Write a Blog Post” and “Good vs. Bad Content Marketing” Grade: A I completed these chapters and sent them to pre-order customers.

4 weeks ago 12 votes
Which New Language Should I Learn for Web Development?

One of my goals for the year is to learn a new programming language. It’s been a while since I learned a new language, and I feel like a lot of the languages I know well (Go, Python, C++) are similar to each other, so I want to try getting out of my comfort zone a bit with a language that feels weird to me. Requirements Here’s what I’m looking for:

a month ago 13 votes

More in indiehacker

Vibe Coding Showcase is back. Here are 10 new projects.

If a fund accountant can build video platforms, a designer can ship icon libraries, and a marketer can create language learning apps, what's stopping you?

22 hours ago 3 votes
goHardDrive Leaked Personal Data for Thousands of Customers

I recently returned a product to goHardDrive, a merchant that specializes in selling used hard drives. During the return process, I discovered that they were accidentally publishing details about thousands of their customers, including their full names, mailing addresses, email addresses, and order details. The leak When I requested a return from goHardDrive, they assigned me a return merchandise authorization (RMA) number ending in five numeric digits. I’m not publishing my actual RMA number, but you can imagine that it was a number like this:

yesterday 3 votes
What is a B2B SaaS? How these software companies make money

B2B SaaS is a software business which sells to business customers instead of ordinary consumers. SaaS is delivered over the internet so users do not have to download any software.

2 days ago 3 votes
Vibe Coding Showcase: 12 Incredible Projects Built by Everyday People

From retail managers to fund accountants, how vibe coders are shipping real products using tools like Bolt, Cursor, v0 and Lovable etc.

a week ago 8 votes
My First Impressions of Gleam

I’m looking for a new programming language to learn this year, and Gleam looks like the most fun. It’s an Elixir-like language that supports static typing. I read the language tour, and it made sense to me, but I need to build something before I can judge a programming language well. I’m sharing some notes on my first few hours using Gleam in case they’re helpful to others learning Gleam or to the team developing the language.

a week ago 10 votes