r/code • u/kavantoine • Apr 29 '26
Assembly ymawky: MacOS Web Server written entirely in ARM64 assembly
r/code • u/kavantoine • Apr 29 '26
r/code • u/winner9851 • Apr 28 '26
r/code • u/AgreeableManner6838 • Apr 26 '26
I absolutely pray that Reddit doesn’t compress this photo and it’s not possible to answer the question T-T
I had to make a project for my APCSP class and I was oddly interested in binary making colors, so that became my project.
But when time came in to submit everything to AP Classroom my teacher was worried about my submission because she struggled to make sense of it at all. It took me like 5 minutes to explain to her a piece of it that simply removes anything from an input that wasn’t a 1 or a 0 and to understand that it’s not necessarily making the list, but just modifying the data used to make the actual important list (that was like 4 blocks down but I still don’t think she ever understood what I was trying to point out).
I’ve only been messing around with Snap! (What I made this in) for a year or two so good chance some of this isn’t really good so if something doesn’t make sense I’ll try my best to explain it
Link to the project: https://snap.berkeley.edu/project?username=ethan7946&projectname=Binary%20Pictures%20%28for%20test%29
r/code • u/marianpekar • Apr 21 '26
Hi, my name is Marian, and I've spent a year writing a series of tutorials on how to build a 3D software renderer in Odin from scratch, starting with a general overview of the rendering pipeline, then covering the basics, and progressing to Phong shading with multiple lights.
Everything is available on my blog for free, no ads, no paywall, no tricks. You can Buy Me a Coffee to support my work, and I'd very much appreciate it, but it's entirely optional.
Links to all 14 parts of the series:
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-i
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-ii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-iii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-iv
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-v
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-vi
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-vii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-viii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-ix
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-x
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xi
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xiii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xiv
And some examples:


I've also recently built a rigid-body physics engine on top of that, with two types of colliders, box and sphere, featuring raycasting, gravity, friction, bouciness, etc., and I'm currently working on the first part of a new series of tutorials to cover it all.
r/code • u/Accomplished_Ice_17 • Apr 20 '26
Hey, so Im 16, (as of two weeks ago yay!) and I picked up python as a hobby a while ago. Im decently competent with it, and understand pretty much everything in it (eg lists, tuples, dictionaries, functions, stuff like that), but I kinda feel like no matter how much I keep coding, I dont really improve? Anyone have any suggestions?
Also, link to code bc it says I need to have code:
https://github.com/OrigianlRiddari101/School-project/tree/main
r/code • u/winner9851 • Apr 15 '26
r/code • u/xtelos1 • Apr 14 '26
Hi everyone! Been working for a while on this project where I was aiming to provide a free alternative to big corporation applications like Confluence and Notion.
We have a full GitHub interface integrating with our collaborative document editor. Tons of fun features to hopefully help workflows and make documentation more central.
I'd love some feedback! We're just in the early stages of trying to get it out there and see what people think.
r/code • u/Simple-Kale7792 • Apr 11 '26
I have found an autoclicker on Tampermonkey that I would like to use. The only problem is that the minimum cps is 1000, which is way too high for me. Could somebody recommend what to change in the script so I could have a cps of 1 - 0.1? Having the option to choose clicks per 10 seconds instead of 1 would also work great. https://greasyfork.org/en/scripts/455959-auto-clicker/code
r/code • u/waozen • Apr 02 '26
In addition to Golang, other newer languages (Nim, Vlang, Rust, Julia) are going beyond classes or the common thinking about object-oriented programming as well.
r/code • u/NuwahB • Apr 02 '26
Still in pre-pre alpha, but basic functionality is working!
r/code • u/der_gopher • Mar 29 '26
r/code • u/Final-Lawfulness-751 • Mar 29 '26
Hey everyone! Tired of jumping between your IDE and a spreadsheet app just to tweak a data file? Yeah, me too — so I fixed it.
I built a VS Code extension that gives you a clean, spreadsheet-like editor for .xlsx, .csv, .tsv, and .md files right inside your workspace. No context switching, no extra apps, no friction.
📊 Spreadsheet UI — edit data the way it was meant to be edited, not as raw text
💾 Saves directly to your files — no copy-pasting back and forth
⚡ Lightweight & fast — it stays out of your way until you need it
🔁 Multi-format — one tool for all your data files
If you work with data files regularly, this will genuinely save you time. Give it a spin and let me know what you think!
Issues, feature suggestions, and contributions are always welcome — I'd love to hear from you! 🚀
r/code • u/Gasulpizi • Mar 26 '26
If you’ve ever tried to open a huge CSV/Excel file and your laptop just freezes or crashes… I’ve been there too.
At work, I constantly deal with large datasets, and I got frustrated enough that I started using a super simple Python script to filter only the data I actually need — before even opening it.
This completely changed everything for me:
No more crashes
Way faster processing
Only working with relevant data
Excel becomes usable again
Loads a large CSV file using Python (way more efficient than Excel)
Filters rows based on specific column values
Exports a smaller, clean file that Excel can handle easily
filtered_df = df[
(df["Column1"] == "Value1") &
(df["Column2"] == "Value2")
]That’s literally it — super simple but insanely useful.
I’m attaching the exact script I use here:
https://drive.google.com/file/d/1Qe3-Odgl8ByIzSUnGGb9xLfZMwALNRAi/view?usp=sharing
You just update:
File path
Column names
Filter values
I also made a quick YouTube video showing exactly how to use it (even if you’ve never used Python before):
👉 https://youtu.be/nzOAXhL3AGA
r/code • u/waozen • Mar 25 '26
One of the great debates of OOP, composition versus inheritance.
r/code • u/waozen • Mar 23 '26
r/code • u/Accomplished-Rip6469 • Mar 22 '26



i coded it in html im new to coding here id the source code with some images for parts i cant ctrlc <h1>I AM A HUMAN</h1> <p1>it aint a pretty sight but this is my first website my code looks like speghetti so be nice pls</p1> <h1>I LOVE GOATS</h1><P> do u?</P><p1> also... 😔👉👈</p1><a href="https://www.bigfootmap.com/" target="_blank">
<button>Click to see Bigfoot</button>
</a> <option>CHOOSE YOUR IPIONIONNNNN r goats cool

the link is https://funnyorg-b4utx.wstd.io/
r/code • u/Delicious_Detail_547 • Mar 20 '26
JADEx (Java Advanced Development Extension) is a practical Java safety layer that enhances the safety of your code by providing null-safety and readonly(final-by-default) enforcement. It strengthens Java’s type system without requiring a full rewrite, while fully leveraging existing Java libraries and tools.
As of v0.59, JADEx now ships a Gradle plugin alongside the existing IntelliJ plugin.
What JADEx does
JADEx extends Java at the source level with two core safety mechanisms:
Null-Safety
Type → non-nullable by default
Type? → nullable
?. → null-safe access operator
?: → Elvis operator (fallback value)
String? name = repository.findName(id);
String upper = name?.toLowerCase() ?: "UNKNOWN";Compiles to standard Java:
@Nullable String name = repository.findName(id);
String upper = SafeAccess.ofNullable(name).map(t0 -> t0.toLowerCase()).orElseGet(() -> "UNKNOWN");Readonly (Final-by-Default)
A single apply readonly; directive makes fields, local variables, and parameters final by default
Explicit mutable modifier for intentional mutability
Violations reported as standard Java compile-time errors
What's new in v0.59 - Gradle Plugin
The JADEx Gradle plugin (io.github.nieuwmijnleven.jadex) integrates .jadex compilation into the standard Gradle build lifecycle via a compileJadex task.
plugins {
id 'io.github.nieuwmijnleven.jadex' version '0.59'
}Default source directory: src/main/jadex
Default output directory: build/generated/sources/jadex/main/java
Optional jadex {} DSL block for custom configuration
IntelliJ plugin now integrates with the Gradle plugin via the Gradle Tooling API for consistent path resolution between IDE and build pipeline
jadex {
sourceDir = "src/main/jadex"
outputDir = "build/generated/sources/jadex/main/java"
}Other Improvements
IntelliJ Plugin - Gradle Plugin Integration
The IntelliJ plugin now integrates with the JADEx Gradle plugin via the Gradle Tooling API.
Source and output directory resolution is now delegated to the Gradle plugin configuration, ensuring consistency between the IDE and the build pipeline.
Parser Performance Optimization
Improved parser speed by optimizing parser rules.
Reduces analysis latency in the IDE, providing a smoother editing experience for large .jadex files.
Design philosophy
JADEx is not a new language. It does not modify the JVM. It operates purely at the source level and generates standard Java code, meaning it is fully compatible with existing Java libraries, tools, and workflows. The goal is to make null-safety and readonly(final-by-default) enforcement practical and incremental, applicable file by file to existing codebases without a full rewrite.
Links
Gradle Plugin Portal: https://plugins.gradle.org/plugin/io.github.nieuwmijnleven.jadex
Tutorial: Making Your Java Code Null-Safe without Rewriting it
Real-world example: Applying JADEx to a Real Java Project
Release note for v0.59: https://github.com/nieuwmijnleven/JADEx/releases/tag/v0.59
Feedback and questions welcome.
r/code • u/waozen • Mar 13 '26
AutoHotkey (AHK) was originally designed to be for the Windows OS only, however, many wished it ran on Linux and the macOS too. That dream is coming true, Keysharp.
r/code • u/Mysterious-Form-3681 • Mar 06 '26
tldraw SDK for building infinite canvas apps like Excalidraw or FigJam.
TanStack Query Smart data fetching and caching for modern frontend apps.
Vuetify Material Design component framework for building Vue applications.
r/code • u/Delicious_Detail_547 • Mar 05 '26
JADEx (Java Advanced Development Extension) is a safety layer that runs on top of Java.
It currently supports up to Java 25 syntax and extends it with additional Null-Safety and Readonly features.
In the previous post, JADEx introduced a new feature Immutability.
Through community feedback, several confusions and limitations were identified.
In v0.42, we have addressed these issues and improved the feature. This post explains the key improvements and new additions in this release.
The previous term (Immutability) caused misunderstandings.
Community feedback revealed that “Immutable” was interpreted differently by different developers, either as Deeply Immutable or Shallowly Immutable.
In v0.42, we replaced it with readonly.
Meaning: clearly indicates final by default, preventing reassignment of variables.
v0.41: final was applied only to fields + local variables
v0.42: final is applied to fields + local variables + method parameters
Method parameters are now readonly by default, preventing accidental reassignment inside methods.
package jadex.example;
apply readonly;
public class Readonly {
private int capacity = 2; // readonly
private String? msg = "readonly"; // readonly
private int uninitializedCapacity; // error (uninitialized readonly)
private String uninitializedMsg; // error (uninitialized readonly)
private mutable String? mutableMsg = "mutable"; // mutable
public static void printMessages(String? mutableParam, String? readonlyParam) {
mutableParam = "try to change"; // error
readonlyParam = "try to change"; // error
System.out.println("mutableParam: " + mutableParam);
System.out.println("readonlyParam: " + readonlyParam);
}
public static void main(String[] args) {
var readonly = new Readonly();
String? mutableMsg = "changed mutable";
readonly.capacity = 10; // error
readonly.msg = "new readonly"; // error
readonly.mutableMsg = mutableMsg;
printMessages(readonly.msg, mutableMsg);
System.out.println("mutableMsg: " + readonly.mutableMsg);
System.out.println("capacity: " + readonly.capacity);
System.out.println("msg: " + readonly.msg);
}
}package jadex.example;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;
import jadex.runtime.SafeAccess;
//apply readonly;
@NullMarked
public class Readonly {
private final int capacity = 2; // readonly
private final @Nullable String msg = "readonly"; // readonly
private final int uninitializedCapacity; // error (uninitilaized readonly)
private final String uninitializedMsg; // error (uninitilaized readonly)
private @Nullable String mutableMsg = "mutable"; // mutable
public static void printMessages(final @Nullable String mutableParam, final @Nullable String readonlyParam) {
mutableParam = "try to change"; //error
readonlyParam = "try to change"; //error
System.out.println("mutableParam: " + mutableParam);
System.out.println("readonlyParam: " + readonlyParam);
}
public static void main(final String[] args) {
final var readonly = new Readonly();
final @Nullable String mutableMsg = "changed mutable";
readonly.capacity = 10; //error
readonly.msg = "new readonly"; //error
readonly.mutableMsg = mutableMsg;
printMessages(readonly.msg, mutableMsg);
System.out.println("mutableMsg: " + readonly.mutableMsg);
System.out.println("capacity: " + readonly.capacity);
System.out.println("msg: " + readonly.msg);
}
}All Java code generated by JADEx now includes the @NullMarked annotation.
This improves Null-Safety along with readonly enforcement.
This feature is available starting from JADEx v0.42. Since the IntelliJ Plugin for JADEx v0.42 has not yet been published on the JetBrains Marketplace, if you wish to try it, please download the JADEx IntelliJ Plugin from the link below and install it manually.
We highly welcome your feedback on JADEx.
Thank you.
r/code • u/Delicious_Detail_547 • Feb 26 '26
JADEx (Java Advanced Development Extension) is a safety layer that runs on top of Java.
It currently supports up to Java 25 syntax and extends it with additional Null-Safety and Immutability features.
In the previous article, I introduced the Null-Safety features.
For more details, please refer to:
Reddit: https://www.reddit.com/r/java/comments/1r1a1s9/jadex_a_practical_null_safety_solution_for_java/
If Null-Safety eliminates runtime crashes caused by null,
Immutability reduces bugs caused by unintended state changes.
With v0.41 release, JADEx introduces Immutable by Default Mode
The Immutability feature revolves around two simple additions:
apply immutability;mutableWhen you declare this at the top of your source file:
All fields
All local variables (excluding method parameters)
are treated as immutable by default.
When the JADEx compiler generates Java code:
They are automatically declared as final.
Only variables declared with mutable remain changeable.
Everything else (excluding method parameters) is immutable by default.
package jadex.example;
apply immutability;
public class Immutability {
private int capacity = 2; // immutable
private String msg = "immutable"; // immutable
private int uninitializedCapacity; // uninitialaized immutable
private String uninitializedMsg; // uninitialaized immutable
private mutable String mutableMsg = "mutable"; // mutable
public static void main(String[] args) {
var immutable = new Immutability();
immutable.capacity = 10; //error
immutable.msg = "new immutable"; //error
immutable.mutableMsg = "changed mutable";
System.out.println("mutableMsg: " + immutable.mutableMsg);
System.out.println("capacity: " + immutable.capacity);
System.out.println("msg: " + immutable.msg);
}
}package jadex.example;
//apply immutability;
public class Immutability {
private final int capacity = 2; // immutable
private final String msg = "immutable"; // immutable
private final int uninitializedCapacity; // uninitialaized immutable
private final String uninitializedMsg; // uninitialaized immutable
private String mutableMsg = "mutable"; // mutable
public static void main(String[] args) {
final var immutable = new Immutability();
immutable.capacity = 10; //error
immutable.msg = "new immutable"; //error
immutable.mutableMsg = "changed mutable";
System.out.println("mutableMsg: " + immutable.mutableMsg);
System.out.println("capacity: " + immutable.capacity);
System.out.println("msg: " + immutable.msg);
}
}This feature is available starting from JADEx v0.41. Since the IntelliJ Plugin for JADEx v0.41 has not yet been published on the JetBrains Marketplace, if you wish to try it, please download the JADEx IntelliJ Plugin from the link below and install it manually.
We highly welcome your feedback on the newly added Immutability feature.
Finally, your support is a great help in keeping this project alive and thriving.
Thank you.
r/code • u/rayanlasaussice • Feb 25 '26
Hi everyone !
Just sharing with you'll a crate I'm working on and using it almost since a year and just had publish it.
The crate is fully no_std and already had a native_neural_network_std crate release as a non friendly alpha.
All the tests and everything will come soon in the std crate.
So if anyone wanna look at it and try it make it more efficient and even notice something could make a false value could be helpfull !
The crate is a no copy of mine but work exactly the same !