Should small Rust structs be passed by-copy or by-borrow? (2019)
Benchmarking Rust to determine if small structs should be passed by-copy or by-value.
The latest blog posts to take off on Hacker News. 256 posts.
Benchmarking Rust to determine if small structs should be passed by-copy or by-value.
Phoenix 1.7 is dropping Phoenix.View, but it's for a good reason! Controllers and LiveViews will now render function components. And the aim is to collocate templates next to the controller that renders them!
16 years and counting...
Introducing a new programming language.
Since making a sudden leap from computer science to academic medicine about seven years ago, I haven’t programmed as much.
Sometimes a pure Python script can't just deliver the performance we need. When that's the case we have to resort to writing our logic in a "fast" compiled language like C or Rust and expose the function with through a Python module. This way we get the best of both worlds. Today I focus on how to use Rust for writing…
The yearly benchmarking Ruby post
Just my website. Some Elixir, some Ruby, some more exotic languages and general thoughts on tech.
Two new language frontends have been added to GCC : Modula-2 and Rust . I think this is great news on both accounts: having a Wirth language in GCC fills my childhood heart with joy (though I do wish GNU Pascal can one day be revived and mainlined, as Pascal was the first non- BASIC language I learned). And Rust…
Dmitri's blog about programming, Clojure, and software development
Today, I’m releasing deflect , an implementation of reflection for Rust. Deflect can be used to recover the concrete types of trait objects, inspect the internal state of async generators, pretty-print arbitrary data, and much more.
Disclaimer: prepare for hair-splitting and nitpicking
Go 1.20, which is expected to be released in February 2023, comes with a small change that can possibly improve error handling in applications which heavily use …
The upcomming standard C23 has a lot of additions to the C library clause. Most of them are small, some of them are big but optional.
A new top-level syntax for programming languages is proposed to show advantages of this method. New syntax is arguably as simple, but more consistent, better preserves visual structure and solves some issues in code formatting.
A blog about Java
A post about all the things I find good about Julia.
Master them in 20 minutes. Use them every day.
I write a lot of reductions: loops that combine every element from a collection in some way. For example, summing a vector of integers:
In which ChatGPT and I invent a fictional language spoken by slime-people
No matter how many blog posts and tutorials I read about lenses, it seems like there's no replacement for just using them to get an intuition. So here are some exercises I came up with. While they shouldn't be all that difficult, they build up from some basic knowledge about lenses up to the more advanced usages of…
So, I’ve been working on a programming language in my spare time for over a year now. I’ll save you the details but it’s meant to be a minimal, easy-to-learn language for beginners. This year for the Advent of Code, I set myself a challenge; complete every day’s challenge using only my programming language.
PHP, as the result of a spectacular error of judgement, appears to be written in US English. How do we developers ensure the traditions of the British Empire continue to be upheld, even in the digital age?
They have potential to be more than "no static types", but that hasn't happened.
Happy with my recent breakthrough in understanding C integer divisions after weeks of struggle, I was minding my own business having fun writing integer arithmetic code. Life was good, when suddenly… zsh: segmentation fault (core dumped) .
Dmitri's blog about programming, Clojure, and software development
The code formatting and typography is frequent, controversial but probably unavoidable topic among programmers. This document contains some representative and possibly, relevant examples of the Lisp code.
I’ve encountered Object-Oriented Programming when I was learning Python (which is my first language). I’ve struggled with it because the paradigm is not as o...
Rust is awesome, for certain things. But think twice before picking it up for a startup that needs to move fast.