0

optimistic or pessimistic compiler?
 in  r/Compilers •  10d ago

Those are obviously grammar and syntax errors, which are caught. Why do people insist on the “most vexing parse” when reading what someone said? It’s like me telling you the oven only goes to 450°F, and you say well mine does, my family’s oven does, my neighbors oven does, but we don’t use plastic cooking pans cause they’ll melt. No way, really? Effectively reducing what i said to its most incorrect interpretation.

Here’s an example, say I assign a u64 ptr address to a u32 ptr without casting the value. This is an error in a lot of languages. Not in mine because I have a reason to do that sometimes.

Note to OP: be prepared for people to do what matthieum does to things you say.

2

Russia reportedly planned mass-casualty sabotage attack in Poland to be blamed on Ukraine
 in  r/worldnews •  10d ago

“Breaking news” is starting to sound more and more like a tool to break the will of those watching.

4

optimistic or pessimistic compiler?
 in  r/Compilers •  10d ago

I prefer the optimistic compiler, and built my compiler around the principle that the programmer is intelligent and knows what they’re doing. It is assumed you know what you’re doing at all times. I don’t want my compiler holding my hand or having such strict language rules that I spend more time satisfying it than myself.

r/lowlevel • • 16d ago

v2.2.1 is ready!

Thumbnail reddit.com
0 Upvotes

Tons of improvements have recently hit the deck, ready to be checked out and tinkered with! We are now fully self hosted and no longer require LLVM or Python post bootstrap.

Before we get to those upgrades though, a quick note, the language was renamed to Ideka due to discoverability issues with the name Flux.

First up, we now have full support for both x86_64 and ARM64.

Secondly, we have a brand new thread-safe version of the standard heap allocator!

We’ve fixed a codegen bug that was breaking SHA384, as well as expanded the cryptography library significantly. This upgrade was followed by the addition of a full native TLS v1.3 implementation as well.

Third, Discord bots, anyone? Yes, Discord.IDK has arrived. While still in beta, the library allows you to do most basic things save for interactions and a handful of other features.

And last but not least, SQLite is nearing completion and will be released within the next 6-8 hours.

We hope you enjoy all the new changes!

Get the compiler at GitHub

r/Compilers • • 16d ago

v2.2.1 is ready!

Thumbnail reddit.com
1 Upvotes

Tons of improvements have recently hit the deck, ready to be checked out and tinkered with! We are now fully self hosted and no longer require LLVM or Python post bootstrap.

Before we get to those upgrades though, a quick note, the language was renamed to Ideka due to discoverability issues with the name Flux.

First up, we now have full support for both x86_64 and ARM64.

Secondly, we have a brand new thread-safe version of the standard heap allocator!

We’ve fixed a codegen bug that was breaking SHA384, as well as expanded the cryptography library significantly. This upgrade was followed by the addition of a full native TLS v1.3 implementation as well.

Third, Discord bots, anyone? Yes, Discord.IDK has arrived. While still in beta, the library allows you to do most basic things save for interactions and a handful of other features.

And last but not least, SQLite is nearing completion and will be released within the next 6-8 hours.

We hope you enjoy all the new changes!

Get the compiler at GitHub

u/FluxProgrammingLang • • 16d ago

v2.2.1 is ready!

2 Upvotes

Tons of improvements have recently hit the deck, ready to be checked out and tinkered with! We are now fully self hosted and no longer require LLVM or Python post bootstrap.

Before we get to those upgrades though, a quick note, the language was renamed to Ideka due to discoverability issues with the name Flux.

First up, we now have full support for both x86_64 and ARM64.

Secondly, we have a brand new thread-safe version of the standard heap allocator!

We’ve fixed a codegen bug that was breaking SHA384, as well as expanded the cryptography library significantly. This upgrade was followed by the addition of a full native TLS v1.3 implementation as well.

Third, Discord bots, anyone? Yes, Discord.IDK has arrived. While still in beta, the library allows you to do most basic things save for interactions and a handful of other features.

And last but not least, SQLite is nearing completion and will be released within the next 6-8 hours.

We hope you enjoy all the new changes!

Get the compiler at GitHub

1

How to Attract Contributors on a Compiler Project
 in  r/Compilers •  Oct 23 '26

I’m in the same boat. I’ve been working on my language for about 2 years now. To be fair it’s only been 1 year of having programs that compile, and about half a year of having a somewhat decent-sized stdlib. What I’ve found is a lot has to do with documentation and tooling and how easy it is to get started with the language.

I know the feeling of doing to all by yourself. Unfortunately it will just take a while.

1

Bootstrap time has arrived!
 in  r/Compilers •  Oct 20 '26

Strictly speaking, yes, Flux is self-hosting. The compiler can compile itself.

1

Bootstrap time has arrived!
 in  r/Compilers •  Oct 20 '26

Yeah I learned to make many backups to avoid bricking the compiler 😅

1

Bootstrap time has arrived!
 in  r/Compilers •  Oct 20 '26

It’s not fully self hosted as LLVM is still the backend.

The borrow checker is an optional pass. It was not required to exist to write the compiler itself.

1

Bootstrap time has arrived!
 in  r/Compilers •  Oct 20 '26

Thank you 🙏

1

Bootstrap time has arrived!
 in  r/Compilers •  Oct 19 '26

I did not realize this about fxc. This shouldn’t be an issue right? If so I’m more than willing to change the name.

1

Bootstrap time has arrived!
 in  r/Compilers •  Oct 19 '26

Yes I just noticed my “shocked tooling” typo 😅

1

Bootstrap time has arrived!
 in  r/Compilers •  Oct 19 '26

r/Compilers • • Oct 19 '26

Bootstrap time has arrived!

Post image
11 Upvotes

The Flux compiler is now written in Flux.

This means the Python version of the compiler is now officially retired.

There’s still a long way to go till all components are translated and implemented, but progress is being made daily.

The package manager will also be capable of publishing soon as well.

Features such as the FVM and comptime will be held off until a significant portion of our own x86-64 backend is completed.

The borrow checker is next on the line for translation, and will also come with additional improvements.

We would love to hear some feedback about what you’d like to see added to the ecosystem next! Do you think the stdlib should be expanded, or shocked existing tooling be the focus?

u/FluxProgrammingLang • • Oct 19 '26

Bootstrap time has arrived!

Post image
2 Upvotes

The Flux compiler is now written in Flux.

This means the Python version of the compiler is now officially retired.

There’s still a long way to go till all components are translated and implemented, but progress is being made daily.

Features such as the FVM and comptime will be held off until a significant portion of our own x86-64 backend is completed.

The borrow checker is next on the line for translation, and will also come with additional improvements.

2

Flux: the new systems language compiler is now being polished, gaining a smoother UX with improved and helpful errors for parsing, type checking, and other stages of compilation.
 in  r/ProgrammingLanguages •  Apr 25 '26

We’re working on improving it. While there’s no official committee and never will be, we hear you and we’re putting time into a more refined version of the spec.

3

Flux: the new systems language compiler is now being polished, gaining a smoother UX with improved and helpful errors for parsing, type checking, and other stages of compilation.
 in  r/ProgrammingLanguages •  Apr 25 '26

For example, bit slices:

#import "standard.fx";

using standard::io::console;

def main() -> int
{
    byte x = 55;

    x[0``7] = x[7``0]; // Reverse the bits

    println(int(x)); // 236

    return 0;
};

Taking bit slices from structs: Bit slicing structs can cross member boundaries, because structs members are packed tightly in memory.

#import "standard.fx";

using standard::io::console;

struct xx { int a, b; };

def main() -> int
{
    data{4} as u4;
    xx yy = {5,10};
    u4 a = yy[59``63]; // 10 because 0b1010

    print((int)a);

    return 0;
};

Bit slices of bit slices:

#import "standard.fx";

using standard::io::console;

struct xx { int a, b; };

def main() -> int
{
    data{4} as u4;
    data{2} as u2;
    xx yy = {5,10};
    u4 a = yy[59``63]; // 10 because 0b1010
    u2 b = a[0``1];

    print((int)b); // 2, because 0b10

    return 0;
};

For example in C,

void  _fhf_write_u32_at(byte* p, u32 v)
{
    p[0] = (byte)(v         && (u32)0xFF);
    p[1] = (byte)((v >>  8) && (u32)0xFF);
    p[2] = (byte)((v >> 16) && (u32)0xFF);
    p[3] = (byte)((v >> 24) && (u32)0xFF);
};

void _fhf_write_u64_at(byte* p, u64 v)
{
    p[0] = (byte)(v         && (u64)0xFF);
    p[1] = (byte)((v >>  8) && (u64)0xFF);
    p[2] = (byte)((v >> 16) && (u64)0xFF);
    p[3] = (byte)((v >> 24) && (u64)0xFF);
    p[4] = (byte)((v >> 32) && (u64)0xFF);
    p[5] = (byte)((v >> 40) && (u64)0xFF);
    p[6] = (byte)((v >> 48) && (u64)0xFF);
    p[7] = (byte)((v >> 56) && (u64)0xFF);
};

turn into one liners in Flux:

def _fhf_write_u32_at(byte* p, u32 v) -> void
{
    p[0..3] = (byte[4])v;
};

def _fhf_write_u64_at(byte* p, u64 v) -> void
{
    p[0..7] = (byte[8])v;
};

r/ProgrammingLanguages • • Apr 24 '26

Flux: the new systems language compiler is now being polished, gaining a smoother UX with improved and helpful errors for parsing, type checking, and other stages of compilation.

11 Upvotes

Per AutoModerator's request I hereby confirm that this project did not use an LLM as part of the development process. https://github.com/kvthweatt/Flux

Recent updates include the addition of higher order types via templated structs, the ability to template operators, expressional macros, and function contracts which can also be applied to operators.

Here's a program showing what templated functions and struct, a macro, contracts, and an operator overload being used together looks like:

#import "standard.fx";

using standard::io::console;

struct myStru<T>
{
    T a, b;
};

def foo<T, U>(T a, U b) -> U
{
    return a.a * b;
};

def bar(myStru<int> a, int b) -> int
{
    return foo(a, 3);
};

macro macNZ(x)
{
    x != 0
};

contract ctNonZero(a,b)
{
    assert(macNZ(a), "a must be nonzero");
    assert(macNZ(b), "b must be nonzero");
};

contract ctGreaterThanZero(a,b)
{
    assert(a > 0, "a must be greater than zero");
    assert(b > 0, "b must be greater than zero");
};

operator<T, K> (T t, K k)[+] -> int : ctNonZero(a,b), ctGreaterThanZero(a,b)
{
    return t + k;
};

def main() -> int
{
    myStru<int> ms = {10,20};

    int x = foo(ms, 3);

    i32 y = bar(ms, 3);

    println(x + y);

    return 0;
};

The package manager FPM will be getting some upgrades in the next week or so with the ability to publish packages, as well as a step-by-step package creation wizard.

r/Compilers • • Apr 24 '26

Flux: the new systems language compiler is now being polished, gaining a smoother UX with improved and helpful errors for parsing, type checking, and other stages of compilation.

23 Upvotes

Recent updates include the addition of higher order types via templated structs, the ability to template operators, expressional macros, and function contracts which can also be applied to operators.

Here's a program showing what templated functions and struct, a macro, contracts, and an operator overload being used together looks like:

#import "standard.fx";

using standard::io::console;

struct myStru<T>
{
    T a, b;
};

def foo<T, U>(T a, U b) -> U
{
    return a.a * b;
};

def bar(myStru<int> a, int b) -> int
{
    return foo(a, 3);
};

macro macNZ(x)
{
    x != 0
};

contract ctNonZero(a,b)
{
    assert(macNZ(a), "a must be nonzero");
    assert(macNZ(b), "b must be nonzero");
};

contract ctGreaterThanZero(a,b)
{
    assert(a > 0, "a must be greater than zero");
    assert(b > 0, "b must be greater than zero");
};

operator<T, K> (T t, K k)[+] -> int : ctNonZero(c, d), ctGreaterThanZero(e, f)
{
    return t + k;
};

def main() -> int
{
    myStru<int> ms = {10,20};

    int x = foo(ms, 3);

    i32 y = bar(ms, 3);

    println(x + y);

    return 0;
};

The package manager FPM will be getting some upgrades in the next week or so with the ability to publish packages, as well as a step-by-step package creation wizard.

You can get Flux on github at https://github.com/kvthweatt/Flux

1

Recent Updates
 in  r/Compilers •  Apr 23 '26

Yes, type of value, thanks for pointing that out. We’ll fix it

0

Recent Updates
 in  r/compsci •  Apr 21 '26

The standard library has expanded and had existing pieces improved, and now includes:

  • a high efficiency JSON parser using the standard arena allocator
  • a dotenv library written by Flux’s second contributor ever, thanks to reinitd on GitHub
  • a cryptography library covering MD5, SHA 256 & 384 (512 inbound soon), x25519, AES 128 & GCM
  • a discrete and fast Fourier transformation library
  • a function detouring & trampolining library
  • a dynamic array and hash map added to the collections library
  • a ray tracing library
  • a soft and hard body physics library
  • major improvements to the standard heap allocator

Keywords added to the language:

  • defer
  • deprecate
  • jump
  • goto & label

There is now also a minimal package manager available and actively being improved, with the ability to publish packages coming soon.

Upgrades to the compiler:

  • bit slicing of any type or value
  • ability to take the address of all literal types
  • ability to give function names with arbitrary bytes, allowing the embedding of machine code in the symbol table for obfuscation
  • ability to use f-strings as function names to dynamically generate function names at compile time
  • added the not null !? boolean postfix unary operator, can be used on pointers or values
  • added the address assign @= operator, used like ptr @= var
  • ownership and moving are now fully working as intended, providing good errors with correction feedback so you know exactly what to fix.

Fixes to the compiler:

  • if(ptr) now emitting correct IR
  • all locations boolean checking for null pointer also fixed
  • fixed singular if expressions with no else clause, print(“hi”) if (x < 5); working

1

Recent Updates
 in  r/Compilers •  Apr 21 '26

The standard library has expanded and had existing pieces improved, and now includes:

  • a high efficiency JSON parser using the standard arena allocator
  • a dotenv library written by Flux’s second contributor ever, thanks to reinitd on GitHub
  • a cryptography library covering MD5, SHA 256 & 384 (512 inbound soon), x25519, AES 128 & GCM
  • a discrete and fast Fourier transformation library
  • a function detouring & trampolining library
  • a dynamic array and hash map added to the collections library
  • a ray tracing library
  • a soft and hard body physics library
  • major improvements to the standard heap allocator

Keywords added to the language:

  • defer
  • deprecate
  • jump
  • goto & label

There is now also a minimal package manager available and actively being improved, with the ability to publish packages coming soon.

Upgrades to the compiler:

  • bit slicing of any type of value
  • ability to take the address of all literal types
  • ability to give function names with arbitrary bytes, allowing the embedding of machine code in the symbol table for obfuscation
  • ability to use f-strings as function names to dynamically generate function names at compile time
  • added the not null !? boolean postfix unary operator, can be used on pointers or values
  • added the address assign @= operator, used like ptr @= var
  • ownership and moving are now fully working as intended, providing good errors with correction feedback so you know exactly what to fix.

Fixes to the compiler:

  • if(ptr) now emitting correct IR
  • all locations boolean checking for null pointer also fixed
  • fixed singular if expressions with no else clause, print(“hi”) if (x < 5); working

1

[ Removed by moderator ]
 in  r/computerscience •  Apr 21 '26

The standard library has expanded and had existing pieces improved, and now includes:

  • a high efficiency JSON parser using the standard arena allocator
  • a dotenv library written by Flux’s second contributor ever, thanks to reinitd on GitHub
  • a cryptography library covering MD5, SHA 256 & 384 (512 inbound soon), x25519, AES 128 & GCM
  • a discrete and fast Fourier transformation library
  • a function detouring & trampolining library
  • a dynamic array and hash map added to the collections library
  • a ray tracing library
  • a soft and hard body physics library
  • major improvements to the standard heap allocator

Keywords added to the language:

  • defer
  • deprecate
  • jump
  • goto & label

There is now also a minimal package manager available and actively being improved, with the ability to publish packages coming soon.

Upgrades to the compiler:

  • bit slicing of any type or value
  • ability to take the address of all literal types
  • ability to give function names with arbitrary bytes, allowing the embedding of machine code in the symbol table for obfuscation
  • ability to use f-strings as function names to dynamically generate function names at compile time
  • added the not null !? boolean postfix unary operator, can be used on pointers or values
  • added the address assign @= operator, used like ptr @= var
  • ownership and moving are now fully working as intended, providing good errors with correction feedback so you know exactly what to fix.

Fixes to the compiler:

  • if(ptr) now emitting correct IR
  • all locations boolean checking for null pointer also fixed
  • fixed singular if expressions with no else clause, print(“hi”) if (x < 5); working

r/compsci • • Apr 21 '26

Recent Updates

Thumbnail github.com
0 Upvotes

r/Compilers • • Apr 21 '26

Recent Updates

Thumbnail github.com
1 Upvotes

r/FluxProgrammingLang • • Apr 21 '26

Flux Core Recent Updates

Thumbnail
github.com
1 Upvotes

The standard library has expanded and had existing pieces improved, and now includes:

  • a high efficiency JSON parser using the standard arena allocator
  • a dotenv library written by Flux’s second contributor ever, thanks to reinitd on GitHub
  • a cryptography library covering MD5, SHA 256 & 384 (512 inbound soon), x25519, AES 128 & GCM
  • a discrete and fast Fourier transformation library
  • a function detouring & trampolining library
  • a dynamic array and hash map added to the collections library
  • a ray tracing library
  • a soft and hard body physics library
  • major improvements to the standard heap allocator

Keywords added to the language:

  • defer
  • deprecate
  • jump
  • goto & label

There is now also a minimal package manager available and actively being improved, with the ability to publish packages coming soon.

Upgrades to the compiler:

  • bit slicing of any type or value
  • ability to take the address of all literal types
  • ability to give function names with arbitrary bytes, allowing the embedding of machine code in the symbol table for obfuscation
  • ability to use f-strings as function names to dynamically generate function names at compile time
  • added the not null !? boolean postfix unary operator, can be used on pointers or values
  • added the address assign @= operator, used like ptr @= var
  • ownership and moving are now fully working as intended, providing good errors with correction feedback so you know exactly what to fix.

Fixes to the compiler:

  • if(ptr) now emitting correct IR
  • all locations boolean checking for null pointer also fixed
  • fixed singular if expressions with no else clause, print(“hi”) if (x < 5); working

1

We’ve got some nice goodies!
 in  r/ProgrammingLanguages •  Mar 30 '26

That’s very good performance for a self made language. You should be proud.

-1

C or rust?
 in  r/osdev •  Mar 28 '26

Flux!

1

Lots of new goodies!
 in  r/ProgrammingLanguages •  Mar 22 '26

It’s not inherently by request. Any compiler that does TCO has a flag for it, so do LLC and Clang which are used in Flux currently as we’re still pre-bootstrap. This strictly recursive function is guaranteed to be a tail. If you turn on TCO, this type of function is guaranteed to be optimized.

0

Lots of new goodies!
 in  r/Compilers •  Mar 22 '26

r/Compilers • • Mar 22 '26

Lots of new goodies!

3 Upvotes

r/ProgrammingLanguages • • Mar 22 '26

Lots of new goodies!

0 Upvotes

r/FluxProgrammingLang • • Mar 22 '26

Flux Core Lots of new goodies!

3 Upvotes

Updates and changes:

  • Added singleton initialization with the signinit keyword
  • Added double keyword, natural 64 bit decimal
  • Added long and ulong, natural 64 bit integers
  • Added noreturn keyword for termination functions
  • Added defer keyword, LIFO execution
  • Added goto and label keywords for old school control flow
  • Implemented the recursion arrow <~ to force tail call optimization of a function
  • Fixed bugs related to scoping
  • Added big integer and arbitrary precision decimal libraries
  • Added a runtime function patch detour library with hot-patching over TCP examples, one using HMAC to verify the server signature

In progress:

  • Removing ‘red’ prefix from all libraries now that the entire language is implemented and is now considered full spec

The videos demonstrate Flux doing fluid physics in OpenGL with shaders, a multithreaded Mandelbrot viewer using pertubation theory and arbitrary precision decimals via big integer math, and the last demonstrates infinite recursion with zero stack frame growth.

1

Want to learn Flux?
 in  r/learnprogramming •  Mar 11 '26

Sounds great! Please do let us know if you run into any compiler errors 🙏

r/learnprogramming • • Mar 05 '26

Topic Want to learn Flux?

0 Upvotes

Flux is a new systems programming language designed for readability and power.

https://github.com/FluxSysLang/Flux

If you’re interested in learning a new language, give Flux a try and share your questions here, we’re looking forward to helping.

1

Why doesn't everyone write their own compiler from scratch?
 in  r/Compilers •  Feb 22 '26

We will, we’re getting there.

r/Compilers • • Feb 22 '26

2D and 3D graphing libraries, now available!

8 Upvotes

r/FluxProgrammingLang • • Feb 22 '26

Flux Core 2D and 3D graphing libraries, now available!

5 Upvotes

Hope you’re strapped in, Flux is moving faster and faster by the week! Almost all compiler bugs have been worked out to the point we are able to consistently and reliably compile Flux code, allowing for the expansion of the standard library.

We’re also pleased to announce the arrival of our standard heap allocator, and that our working demo collection is expanding quite nicely.

There’s a known issue with Linux binaries currently, they segfault on exit, and that will be resolved soon.

We could really use a hand with testers! There’s lots of cool stuff coming!

1

We’ve got some nice goodies!
 in  r/ProgrammingLanguages •  Feb 21 '26

Alright I guess we just won’t post anymore. No one is interested.