Unsafe Zig Is Safer Than Unsafe Rust
This pattern is pretty common if you are interacting with Operating System APIs . Another example .
Topics /
The most popular blog posts about programming languages on Hacker News. 5,634 posts.
This pattern is pretty common if you are interacting with Operating System APIs . Another example .
This is my own collection of hard-earned knowledge about how integers work in C/C++, and how to use them carefully and correctly. In this article, I try to strike a balance between brevity (easing the reader) and completeness (providing absolute correctness and extensive detail).
Longer answer: it depends on what you mean by "equivalent". Pointer arithmetic and array indexing are equivalent. In other aspects, pointers and arrays are different.
We are announcing a new patch release of the Crystal 1.9 series with two bugfixes.
I have a Computer Science degree. I attended a whole course of lectures on compilers (and have a certain fondness for “the red dragon book” as a result). However, I had never actually written a compiler from start to finish until a rainy day last weekend.
The other day I blogged here about our new Railgun software that speeds up the back haul between CloudFlare data centers and our clients' servers. At CloudFlare we're using a number of different languages depending on the task.
In the previous post, I made a case for why programming languages should have a utility library that provides small-but-commonly-needed functions. Today I’m introducing a Raku package that I hope w…
Forth is uncommonly used to teach programming to kids. Scripting languages like Python and visual environments like Scratch are far more popular options. But when I got the opportunity to introduce middle and high school students to programming, I chose the stack-oriented concatenative language from 1970. I was…
Inspirations & experiments, mainly about denotative/functional programming in Haskell
Stack-manipulation operators allow the Forth programmer to do arithmetic interactively or in code contained in Forth definitions (e.g., defined functions).
Short praise about exception handling in Python 3 — Note There's a nice video version of this article. Courtesy of Webucator (they do Python training). One of my pet peeves in Python is about...
deadcode is a new command to help identify functions that cannot be called.
Since the introduction of Swift, speed has been a key selling point. Indeed, it's right in the name of the language. It's said to be faster than dynamic languages like Python or JavaScript, potentially faster than Objective-C, and even claimed to be faster than C for certain cases. But how exactly does it do it?
In the first post of the series we've looked at the CPython VM. We've learned that it works by executing a series of instructions called bytecode....
Good development practices for modern Python
Hi, I'm Peter Bex, a Scheme and free software enthusiast from the Netherlands. See my user page on the CHICKEN wiki or my git server for some of my projects.
Project Loom's mission is to make it easier to write, debug, profile and maintain concurrent applications meeting today's requirements. Threads, provided by Java from its first day, are a natural and convenient concurrency construct (putting aside the separate question of communication among threads) which is being…
In this post we take a deeper look into one of the most popular design patterns in Rust web frameworks, the magical handler function.
A while ago I was working on a Common Lisp library that makes use of the Metaobject Protocol . I ran into a few edge cases around dependencies between classes and it took a while for me to figure out how to solve them, so I wanted to write down what I learned in case anyone else might find it useful. This post is an…
OK, fine maybe they DID teach you this in class. But, you'd be surprised how ...
How Mozilla’s new language dramatically improved our server-side performance
It's not about technology for its own sake. It's about being able to implement your ideas.
The Pragmatic Programmer recommends that we learn at least one new language every year. To be effective, the languages we learn should differ sufficiently from those we already master and ideally introduce us to a new paradigm too. Learning a different programming language affects the way we view code. A new paradigm…
New SBCL versions are usually released at the end of each month: check the Sourceforge File List to see the current version. The new features of all SBCL releases are listed below.