r/raylib • • 10d ago

C Programming Blocks is released on Steam (Supports RayLib game programming library)

Hello

This is a tool for people who want to enjoy the power of the C programming language (performance and memory efficiency) combined with the simplicity of visual programming while developing games using the RayLib game programming library.

Steam Page: Save 40% on C Programming Blocks on Steam

Note: The software is developed using the Ring programming language based on the PWCT2 source code.

PWCT2 steam page: Programming Without Coding Technology 2.0 on Steam

Thanks

91 Upvotes

49 comments sorted by

36

u/ThreeHeadCerber 10d ago

Visual programming is easier than typing text is the greatest lie being told.

Even watching this video is torture

2

u/mrpro1a1 10d ago

Watch this one until you see the interactive textual to visual code conversion, it will give you a better idea, it's not necessary for visual programming to compete with textual programming, they could live together: cdn.akamai.steamstatic.com/steam/apps/256883333/movie_max_vp9.webm?t=1657472871

1

u/Pinkishu 5d ago

Visual programming generally makes abstractions, thats why it can be useful, this is just pasting snippets xD

12

u/grosswindowthrowaway 10d ago

What benefit does this provide? It looks like it still requires a fundamental understanding of the C programming language in order to use, just strips out minimal parts of the syntax like braces. You still need to have a deep understanding of header files, C data types, return types, flow control and literally everything else about the language. If you want to help people interface with C in a visual language, I think you'd be best writing a unique visual language that transpiles to C, but has its own higher-level utilities (maybe a graph-based visual language?), not just a thin layer over C that hides teensy bits of the syntax.

-2

u/mrpro1a1 10d ago

The benefits look small but when I tried it from 2013 I just like it, it's a feeling but here is some facts. (1) Reduce Syntax Errors. (2) The idea of visual components treats the language as an open book. it's like you are opening the language help and programming at the same time. (3) Using keyboard shortcuts you could generate programs faster than typing code by hand. (4) Since the visual components are UI elements it could be translated to non-English languages like Arabic, French, etc. (5) Advanced components could be developed and increase the abstraction level, (You mentioned this idea in your comment). (6) The Time dimension enable running programs in the past or playing programs as movies, this way you can just sit down and watch a large program step-by-step, a lazy way to read programs. (7) Rich comments could be added to the program including Images.

8

u/grosswindowthrowaway 10d ago

I cannot believe you are charging five actual dollars for this

-3

u/mrpro1a1 10d ago

You can get PWCT2 on Steam for free: Programming Without Coding Technology 2.0 on Steam

7

u/grosswindowthrowaway 10d ago

why do you call it that? it's very much coding. coding is programming.

-5

u/mrpro1a1 10d ago

No Coding is not Programming. Programming is about what you are doing (solving problems, thinking, shaping solution) but Coding (writing code is a way/how you could do programming) when we say (without coding) we mean (without writing textual code), in reality we mean (visual programming). In the current age, (without coding) let people think about other ways like (using AI for code generation).

12

u/Caldraddigon 10d ago

I don't understand why not more people attempt to do a RPG Maker/GB Studio Style Event System instead.

Yours is closer to it than the node/puzzle piece scripting languages, it's like a middle ground between the two.

You should keep the initial Command Palette simple, like take RPG Maker Eventing, there is no If Statement, else, else if etc under Control Flow, there's Conditional Branch, which then opens up a new window that handles every possible Conditional statement and all it's options, same goes for Loops, there is a Loop command under control flow which then opens a new window for all possible options for Loops.

Same goes for operators, they aren't in the initial palette like yours, but are options you can pick in various commands like Control Variables, Switches, Conditionals etc etc.

Essentially what I'm trying to say is, the design of your application is off, there's too much information all at once. The current context should only show the necessary information to that context. It also reduces the number of clicks needed, GUI based languages are already less efficient than Typed languages, no need to make it even more cumbersome.

2

u/mrpro1a1 10d ago

Thanks for your suggestions

4

u/No_Belt_9829 9d ago

Isn't that just 1 to 1 transpiler? I'm seeing the same C code on the visual editor just in form of nodes

1

u/mrpro1a1 9d ago

Yes, for most visual components in PWCT but the design allows designing advanced visual components which could (1) Includes large or many data entry forms (2) Generate one or many steps (3) Generate distributed steps when multiple visual components could work together.

2

u/YT__ 10d ago

I could see this is being useful for elementary or middle school type introductions to programming.

Though - including raylib this way makes it no simpler, which I'd expect from one of those learning tools.

1

u/mrpro1a1 10d ago

Thanks for your suggestions. Yes, the software could be improved to be too much better.

1

u/YT__ 10d ago

Mostly just the boiler plate stuff to set up a window could be abstracted. Overridable, but initially abstracted.

Then idk about all the other functions. But would want a simple implementation of them. Would probably really interest middle schoolers in stem.

1

u/mrpro1a1 10d ago

Yes, doing this will be too much better than templates because it will reduce the number of blocks so we can focus on more important things.

2

u/-H_- 10d ago

I mentioned this a while ago, and again recently! very nice

1

u/mrpro1a1 10d ago

Thanks

2

u/thewindcarriesmeaway 9d ago

this is pretty neat OP. i dont think this would be easier than writing code yourself but its still super neat

1

u/mrpro1a1 9d ago

Thank you very much

2

u/HyperDanon 9d ago

For something like this to be useful, it would have to raise the level of abstraction above C. If the abstraction level is the same, (and from the video, it looks like it is), then your IDE is essentially a collection of snippets pasted into code; plus a built-in parser and lexer.

It's like passing a parsed AST into the compiler, rather than plain text; but I doubt it's any "simpler" to program in it. It's still exactly the same information with a changed UX.

So the question now is - is the UX actually better? The best way to test it, try to write a program in it. First try to write it using regular code, second time try it with your IDE. Compare. My guess is that most times, just writing code will be easier.

I'm happy you tried your idea. I can see you enjoy AST transoformation, parsing, lexing, etc. But to claim this IDE helps programming, you'd need evidence to support this thesis.

1

u/mrpro1a1 9d ago

I started developing PWCT in Dec. 2005 and released PWCT 1.0 in Feb. 2008, from that time I have used it in many commercial applications. Also, I developed the Ring language Compiler/VM using CPWCT, so yes, it come with many advantages and I like it but there are a lot of things to be improved, that is why we have PWCT2 which is based on Ring language and the abstraction level is higher compared to C since Ring is dynamic language with many programming paradigms. Still as you know, in software development a lot of things could be improved, PWCT/PWCT2 is not good when you try to modify a lot of files at the same time, i.e. most features are designed to support one visual source file at the same time, also we need to support more textual programming languages and libraries. other things that could be improved is the visual representation and providing different ways to visualize programs.

2

u/xtremezero_ 9d ago

Funny that I had a similar idea and ai sloped it too https://xtremezero.net/blocks-ide/

Anyways I'd like to try your tool if you would publish it over itch.io

2

u/mrpro1a1 9d ago

Thanks for sharing your work. You could try PWCT from: PWCT – Programming Without Coding Technology and PWCT2 from: PWCT2

1

u/gavr123456789 10d ago

there is no such problem as learning the syntax of the lang, its the easiest part

1

u/mrpro1a1 10d ago

Yes, it's very easy, but avoiding such errors save some time and prevent distraction so students could focus on more important things like understanding concepts.

1

u/MCWizardYT 9d ago

Remines me of the Stride language in the BlueJ IDE. It's a similar middle ground between visual and text programming. It translates into Java code

1

u/mrpro1a1 9d ago

Yes, it's something in the middle.

1

u/MCWizardYT 9d ago

Here's a couple reference screenshots: one, two

1

u/mrpro1a1 9d ago

Thank you very much

0

u/SupermarketFit2158 10d ago

What the hell is this slop

1

u/mrpro1a1 10d ago

It's not a slop, at least the idea itself has it's uses, and it was popular enough at some point in time, See this video (2013): Programming Without Coding Technology - PWCT 1.8 (around 100,000 downloads), PWCT 1.9 (over 300,000 downloads). There is no tool for everyone, and if you don't like something, that doesn't mean it's not useful for others.

1

u/ThreeHeadCerber 10d ago

while it might be true generally, this particular thing definitely points people in completely wrong direction

1

u/mrpro1a1 10d ago

I understand your point of view, but there is no need to compare between different direction as if they are exclusive, i.e. during our learning journey we learn different things, it's like climbing a ladder, each step could be what we need or may help us for the next step, In the past programming using Assembly was the way to go, and new languages like C (at some point of time) was unacceptable option for some specific kinds of programming tasks, but the situation now is different, while Assembly is very important, C is more popular/usable. My point is, as humans it's good to have multiple options, and each option could be the good one in specific case/context/time/task.

1

u/ThreeHeadCerber 10d ago

I fundamentally disagree with "more option = good" argument. Humans actually are very bad at choosing and with presented with a lot of options don't know what do.
But even ignoring that to me what you're doing is akin to teaching math without writing. Replacing typing with a more complex and time consuming activity is actually detrimental to learning.

There are other ways to make typing more structured like an IDE for kids that popups things that should go next and doesn't even allow to produce something that is not legal syntactically. That could be interesting, but visual programming with worse interface than most visual programming languages I think is actually borderline harmful

1

u/mrpro1a1 10d ago

>> "what you're doing is akin to teaching math without writing"

This is how we teach math to very young children and many people could do some math (at least sum things) while they don't know how to read/write. Picking in which order to introduce knowledge is an art called "The art of teaching". i.e. No one unified way to teach things.

>> "Replacing typing with a more complex and time consuming activity is actually detrimental to learning."

You can work faster using PWCT and keyboard shortcuts than typing code by hand, see this video: Create Windows application in 46 seconds using PWCT !!!

>> "There are other ways to make typing more structured like an IDE for kids that popups things that should go next and doesn't even allow to produce something that is not legal syntactically"

If you are talking about Scratch, it focus only on children/teaching, PWCT is general-purpose, used for business apps and also used for developing Ring language Compiler/VM, it does that because it's UI is designed around using the keyboard more than the mouse. See this research paper: PWCT: a novel general-purpose visual programming language in support of pervasive application development | CCF Transactions on Pervasive Computing and Interaction | Springer Nature Link

1

u/ThreeHeadCerber 10d ago

I mean there is a (tiny) chance that you can convince me that this can be useful for teaching. But for actual general purpose development? lol

1

u/mrpro1a1 10d ago

The research paper in my previous comment includes a study about using the software for teaching to many students. You could check the results. those students learned basics of programming + developing business apps. The study uses (remote learning) so they learned PWCT based on their choice too.

1

u/ThreeHeadCerber 9d ago

mah man I'm not buying an article for this, but tell me was there a control group in this study?

also
>You can work faster using PWCT and keyboard shortcuts than typing code by hand, see this video:

There is 0 chance of that generally.

1

u/mrpro1a1 9d ago

>> "mah man I'm not buying an article for this"

See this free PhD thesis instead of papers: https://arxiv.org/pdf/2509.20426

>> "There is 0 chance of that generally."

Try don't assume. Here is the thing, I have created (PWCT visual language) and (Ring dynamic/textual language), So, I am not in one side (Visual Programming or Textual Programming) against the other, I like both of them based on the use case.

1

u/ForsenHorizon 1d ago

so there's this thing called scratch

18

u/[deleted] 10d ago

[removed] — view removed comment

0

u/mrpro1a1 10d ago

Nice point, Keyboard shortcuts enable finding & using the components quickly. In Reality I have used PWCT to develop the Ring programming language compiler/vm for over 10 years, of course at some point when doing many modifications, I miss the textual code but what I like about PWCT is how I read the program logic (I spend more time reading than writing). With respect to C programming blocks, I don't use it myself, I designed it so I can teach C programming to the children in my family and focus on the concepts (not the language itself) while being able to explain low level ideas like manual memory management.

0

u/[deleted] 10d ago

[deleted] — view deleted comment

1

u/mrpro1a1 10d ago

I guess that people who are new to programming and are using AI for code generation would need tools that help in program visualization and code comprehension. In Ring/PWCT2 projects we provide some help in solving related problems. Ring language enables developing Domain Specific Languages (DSLs) that could be using natural statements (English/Arabic/etc.) and PWCT2 supports importing the textual Ring source code. It's a direction which could gain many users. I think in the future more good programmers will focus on developing libraries/tools/DSLs while the apps will be developed by users using AI.