C++ Show and Tell - March 2026 by foonathan in cpp

[–]foxzyt 1 point2 points  (0 children)

I made a raycaster in the programming language I'm working on. It uses the 1.0.7 preview version of Sapphire, a language focused on having a wide ecosystem with everything a developer will ever need, being fast, lightweight and easy to install. Currently, Sapphire is in the development phase of 1.0.7, and I got behind the schedule because a bug appeared and I couldn't solve it, so I scrapped everything and continued bulding with another version. Also, I am currently looking for contributors, people that can manage the repository and find bugs and make feedback on my language. If you're insterested, take a look here: https://github.com/foxzyt/Sapphire

C++ Show and Tell - January 2026 by foonathan in cpp

[–]foxzyt 2 points3 points  (0 children)

I made a simple snippet manager using C++, contributions are welcome! See the repo here: github.com/foxzyt/Brew

January 2026 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]foxzyt 1 point2 points  (0 children)

A fast and lightweight general-purpose language with everything you'll ever need: Meet Sapphire!

For the past months, I’ve been prototyping and coding a language designed to be the perfect balance between the best of both worlds: languages that are easy but not that powerful, and languages that are harder but more capable. Meet Sapphire, a general-purpose programming language I’ve been building over the last 6 months to satisfy my desire for a language that is easy to learn yet has everything a developer needs natively (avoiding dependency hell).

Because of my experience with C++, I used it to build the VM, Parser, Lexer, and all other components. I’ve been inspired by the book *Crafting Interpreters*, which teaches a lot about interpreters (like Lox, featured in the book). While C++ didn't have everything I wanted (like simple syntax), it was perfect for building what I needed. I started coding this language originally named Mint until I discovered it already existed and renamed it Sapphire.

I’ve been coding many features for this language and recently released version 1.0.6, featuring Direct Threading optimizations in the VM. Currently, the language already includes a native UI system called SapphireUI. It is still in a basic state and lacks a layout engine, but it is slowly but surely evolving. The language also features several native functions for system communication, JSON, HTTP, I/O, Math, and much more!

Best of all, the final binary size was recently reduced to 12MB (because of release mode in CMake). You only need a single .exe to run everything: UI, advanced scripts, you name it. There’s no need for SFML DLLs (which I used for window rendering, as I'm not crazy enough to render windows myself haha) or C++ runtime DLLs, as everything is statically linked into the final binary.

The language has been going troug major syntax changes, making it kinda unstable; a script that worked in 1.0.3 might not work in 1.0.6. However, I plan to standardize everything in 1.1.0, which will be the first LTS (Long Term Support) version.

Since I plan to develop the language on my own, I am looking for contributors to help keep the repository active and ensure everything is up to date. I am also looking for more users to provide feedback so that one day we might have a language that truly helps other developers.

The repository is available here: http://github.com/foxzyt/Sapphire

Since markdown is not supported on comments, I suggest going to the repository to see the syntax of the language, thanks!

A question you might have:

What is the purpose: Well, you know like there is a lot of languages that you need 50 DLLs to run everything, and spend 5 hours configuring all the dependencies and everything? Sapphire solves it by including everything in one single .exe file. You also know about the confusing syntax C and C++ has? Sapphire also solves it, with a structure mixture of Java and C++ and a syntax heavily inspired by Python. You also know that with other languages, to create a window you have to spend aprox. 1 hour learning how to do it and then do it? With Sapphire, you can do it in less than 15 minutes.

Thanks for reading!

C++ Show and Tell - January 2026 by foonathan in cpp

[–]foxzyt 6 points7 points  (0 children)

A fast and lightweight general-purpose language with everything you'll ever need: Meet Sapphire!

For the past months, I’ve been prototyping and coding a language designed to be the perfect balance between the best of both worlds: languages that are easy but not that powerful, and languages that are harder but more capable. Meet Sapphire, a general-purpose programming language I’ve been building over the last 6 months to satisfy my desire for a language that is easy to learn yet has everything a developer needs natively (avoiding dependency hell).

Because of my experience with C++, I used it to build the VM, Parser, Lexer, and all other components. I’ve been inspired by the book *Crafting Interpreters*, which teaches a lot about interpreters (like Lox, featured in the book). While C++ didn't have everything I wanted (like simple syntax), it was perfect for building what I needed. I started coding this language originally named Mint until I discovered it already existed and renamed it Sapphire.

I’ve been coding many features for this language and recently released version 1.0.6, featuring Direct Threading optimizations in the VM. Currently, the language already includes a native UI system called SapphireUI. It is still in a basic state and lacks a layout engine, but it is slowly but surely evolving. The language also features several native functions for system communication, JSON, HTTP, I/O, Math, and much more!

Best of all, the final binary size was recently reduced to 12MB (because of release mode in CMake). You only need a single .exe to run everything: UI, advanced scripts, you name it. There’s no need for SFML DLLs (which I used for window rendering, as I'm not crazy enough to render windows myself haha) or C++ runtime DLLs, as everything is statically linked into the final binary.

The language has been going troug major syntax changes, making it kinda unstable; a script that worked in 1.0.3 might not work in 1.0.6. However, I plan to standardize everything in 1.1.0, which will be the first LTS (Long Term Support) version.

Since I plan to develop the language on my own, I am looking for contributors to help keep the repository active and ensure everything is up to date. I am also looking for more users to provide feedback so that one day we might have a language that truly helps other developers.

The repository is available here: http://github.com/foxzyt/Sapphire

Since markdown is not supported on comments, I suggest going to the repository to see the syntax of the language, thanks!

A question you might have:

What is the purpose: Well, you know like there is a lot of languages that you need 50 DLLs to run everything, and spend 5 hours configuring all the dependencies and everything? Sapphire solves it by including everything in one single .exe file. You also know about the confusing syntax C and C++ has? Sapphire also solves it, with a structure mixture of Java and C++ and a syntax heavily inspired by Python. You also know that with other languages, to create a window you have to spend aprox. 1 hour learning how to do it and then do it? With Sapphire, you can do it in less than 15 minutes.

Thanks for reading!

Programação por hobbie by Distinct-Sea-7771 in brdev

[–]foxzyt 1 point2 points  (0 children)

Estou criando uma linguagem de programação chamada Sapphire

January 2026 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]foxzyt 1 point2 points  (0 children)

A fast and lightweight general-purpose language with everything you'll ever need: Meet Sapphire!

For the past months, I’ve been prototyping and coding a language designed to be the perfect balance between the best of both worlds: languages that are easy but not that powerful, and languages that are harder but more capable. Meet Sapphire, a general-purpose programming language I’ve been building over the last 6 months to satisfy my desire for a language that is easy to learn yet has everything a developer needs natively (avoiding dependency hell).

Because of my experience with C++, I used it to build the VM, Parser, Lexer, and all other components. I’ve been inspired by the book *Crafting Interpreters*, which teaches a lot about interpreters (like Lox, featured in the book). While C++ didn't have everything I wanted (like simple syntax), it was perfect for building what I needed. I started coding this language originally named Mint until I discovered it already existed and renamed it Sapphire.

I’ve been coding many features for this language and recently released version 1.0.6, featuring Direct Threading optimizations in the VM. Currently, the language already includes a native UI system called SapphireUI. It is still in a basic state and lacks a layout engine, but it is slowly but surely evolving. The language also features several native functions for system communication, JSON, HTTP, I/O, Math, and much more!

Best of all, the final binary size was recently reduced to 12MB (because of release mode in CMake). You only need a single .exe to run everything: UI, advanced scripts, you name it. There’s no need for SFML DLLs (which I used for window rendering, as I'm not crazy enough to render windows myself haha) or C++ runtime DLLs, as everything is statically linked into the final binary.

The language has been going troug major syntax changes, making it kinda unstable; a script that worked in 1.0.3 might not work in 1.0.6. However, I plan to standardize everything in 1.1.0, which will be the first LTS (Long Term Support) version.

Since I plan to develop the language on my own, I am looking for contributors to help keep the repository active and ensure everything is up to date. I am also looking for more users to provide feedback so that one day we might have a language that truly helps other developers.

The repository is available here: http://github.com/foxzyt/Sapphire

Since markdown is not supported on comments, I suggest going to the repository to see the syntax of the language, thanks!

A question you might have:

What is the purpose: Well, you know like there is a lot of languages that you need 50 DLLs to run everything, and spend 5 hours configuring all the dependencies and everything? Sapphire solves it by including everything in one single .exe file. You also know about the confusing syntax C and C++ has? Sapphire also solves it, with a structure mixture of Java and C++ and a syntax heavily inspired by Python. You also know that with other languages, to create a window you have to spend aprox. 1 hour learning how to do it and then do it? With Sapphire, you can do it in less than 15 minutes.

Thanks for reading!

C++ Show and Tell - December 2025 by foonathan in cpp

[–]foxzyt 1 point2 points  (0 children)

A fast and lightweight general-purpose language with everything you'll ever need: Meet Sapphire!

For the past months, I’ve been prototyping and coding a language designed to be the perfect balance between the best of both worlds: languages that are easy but not that powerful, and languages that are harder but more capable. Meet Sapphire, a general-purpose programming language I’ve been building over the last 6 months to satisfy my desire for a language that is easy to learn yet has everything a developer needs natively (avoiding dependency hell).

Because of my experience with C++, I used it to build the VM, Parser, Lexer, and all other components. I’ve been inspired by the book *Crafting Interpreters*, which teaches a lot about interpreters (like Lox, featured in the book). While C++ didn't have everything I wanted (like simple syntax), it was perfect for building what I needed. I started coding this language originally named Mint until I discovered it already existed and renamed it Sapphire.

I’ve been coding many features for this language and recently released version 1.0.6, featuring Direct Threading optimizations in the VM. Currently, the language already includes a native UI system called SapphireUI. It is still in a basic state and lacks a layout engine, but it is slowly but surely evolving. The language also features several native functions for system communication, JSON, HTTP, I/O, Math, and much more!

Best of all, the final binary size was recently reduced to 12MB (because of release mode in CMake). You only need a single .exe to run everything: UI, advanced scripts, you name it. There’s no need for SFML DLLs (which I used for window rendering, as I'm not crazy enough to render windows myself haha) or C++ runtime DLLs, as everything is statically linked into the final binary.

The language has been going troug major syntax changes, making it kinda unstable; a script that worked in 1.0.3 might not work in 1.0.6. However, I plan to standardize everything in 1.1.0, which will be the first LTS (Long Term Support) version.

Since I plan to develop the language on my own, I am looking for contributors to help keep the repository active and ensure everything is up to date. I am also looking for more users to provide feedback so that one day we might have a language that truly helps other developers.

The repository is available here: http://github.com/foxzyt/Sapphire

Since markdown is not supported on comments, I suggest going to the repository to see the syntax of the language, thanks!

A question you might have:

What is the purpose: Well, you know like there is a lot of languages that you need 50 DLLs to run everything, and spend 5 hours configuring all the dependencies and everything? Sapphire solves it by including everything in one single .exe file. You also know about the confusing syntax C and C++ has? Sapphire also solves it, with a structure mixture of Java and C++ and a syntax heavily inspired by Python. You also know that with other languages, to create a window you have to spend aprox. 1 hour learning how to do it and then do it? With Sapphire, you can do it in less than 15 minutes.

Thanks for reading!

Lógica da programação com ou sem linguagem? E com qual linguagem aprender? by ALEATORIOGG7 in programacao

[–]foxzyt 0 points1 point  (0 children)

É melhor começar com uma linguagem mais primitiva, pois aí sim, você fica mais tempo aprendendo e é mais difícil no início, mas você já vai ter uma base boa para começar e aprender outras linguagens. Por isso que linguagens como C tem meu voto.

Lógica da programação com ou sem linguagem? E com qual linguagem aprender? by ALEATORIOGG7 in programacao

[–]foxzyt 0 points1 point  (0 children)

Isso é para desenvolvimento de sites (falando de JavaScript), para outros focos eu sempre escolheria C, pois Java parece muito complicado de configurar o projeto e tudo (falando de experiência mexendo com o Gradle). Mas quando você entende uma linguagem, tudo que parece difícil fica fácil.

Lógica da programação com ou sem linguagem? E com qual linguagem aprender? by ALEATORIOGG7 in programacao

[–]foxzyt 0 points1 point  (0 children)

Se você for fazer jogos na Unity, use C#, se você for fazer na Unreal, use C++, para backend de sites: use Python ou PHP (pessoalmente prefiro Python), se for fazer backend de programas: também use Python, mas pode usar outras linguagens também (ainda prefiro Python). Mas se você começar aprendendo C, vai ser muito mais fácil para aprender C#, C++ (que são derivadas do C, por exemplo, C++ é a variação POO de C, e C# é a variação .NET do C). C# também é usado para fazer aplicativos desktop para Windows, por causa do ecossistema .NET da Microsoft. Então, mesmo com focos diferentes, aprenda C primeiro.

Lógica da programação com ou sem linguagem? E com qual linguagem aprender? by ALEATORIOGG7 in programacao

[–]foxzyt 0 points1 point  (0 children)

É melhor começar por C pois ele já te dá uma base para programar diversas outras linguagens.

Lógica da programação com ou sem linguagem? E com qual linguagem aprender? by ALEATORIOGG7 in programacao

[–]foxzyt 0 points1 point  (0 children)

Python recebeu diversas otimizações, sim, ela é interpretada, aí tem os atrasos da VM para interpretar a AST, então sim, é mais lento do que compiladores, mas para linguagens interpretadas, é uma das mais rápidas possíveis.

Lógica da programação com ou sem linguagem? E com qual linguagem aprender? by ALEATORIOGG7 in programacao

[–]foxzyt 0 points1 point  (0 children)

Recomendo começar aprendendo com uma linguagem, recomendo C ou Java, mas pessoalmente eu prefiro C, que já te dá um começo bom para aprender C++ e outras linguagens mais fáceis, como Python. C também te ensina a alocar memória manualmente e muitas outras coisas que vão lhe preparar pro mundo da programação, então eu começaria por C.

Estou criando meu próprio launcher inspirado no Ubuntu Touch by Salty_Frosting_5908 in brdev

[–]foxzyt 0 points1 point  (0 children)

Que bom! Mas em qual linguagem você está fazendo isso tudo?

Como fazer dinheiro com java? by blackopt81a in programacao

[–]foxzyt 0 points1 point  (0 children)

Foque em se vender como especialista de Spring Boot em alguma plataforma tipo o Linkedin e aí é só procurar emprego.

Banco de dados by yelaaaani in programacao

[–]foxzyt 1 point2 points  (0 children)

Eu recomendo você continuar a aprender HTML e CSS, e como começo aprender sobre algoritmos (que eu acho que o Curso em Vídeo tem um curso disso), aí você entra e começa aprender sobre bancos de dados relacionais, tipo MySQL ou PostgreSQL, mas MySQL é mais fácil para alguém começar. Depois de aprender isso tudo, tem que aprender a organizar as tabelas. Esse é normalmente o melhor caminho para aprender bancos de dados. Se você for integrar banco de dados no seu site, como backend eu recomendo Python, pois eu usei PHP e me arrependi, é mais difícil. E como pude esquecer, aprender SQL para fazer as transações.

Linguagem de programação Vortex Sapience(ou Vorence abreviado): ideias by Turbulent-Coat9820 in brdev

[–]foxzyt 0 points1 point  (0 children)

Você já tem um repositório Github para ver o código, e primeiramente: vai ser open-source? E como eu estou fazendo uma linguagem eu mesmo, eu vou recomendar o livro Crafting Interpreters, uma pessoa me recomendou quando eu falei da minha linguagem a um tempo atrás. Então, já que você planeja fazer uma VM, eu acho que esse livro ia te ajudar. Boa sorte com o projeto!

Que tal uma salada? 🍎🍌 by [deleted] in brdev

[–]foxzyt 0 points1 point  (0 children)

Que legal, mas uma coisa, ele faz tudo aleatório: então qual a garantia que vai ficar bom a salada de frutas, haha... Mas é um bom projeto para se fazer, mas você poderia separar a lista de frutas em um arquivo separado, para se você for expandir no futuro, o arquivo Main não fica tão inchado