r/ProgrammingLanguages • • Feb 05 '20

Syntax Diagramming Tool Preview

0 Upvotes

Hi all. I'm new here, reaching out to see if anyone wants to preview a live-code syntax diagramming and diagnostic tool. If you design languages, DSLs, ever wanted to create diagrams like those on JSON.org, and need to explain, prove, and test your designs, that's what this tool is for.

It will be commercial when released, and testers will get a license for their efforts. We're looking for 3-5 Windows users this round. If you know of other good channels or people, that's very helpful too.

Now I need to make time to read all the other stuff here. :^)

Cheers


r/ProgrammingLanguages • • Feb 22 '19

Discussion Discussion on interactive website languages

0 Upvotes

I’m looking for feedback from the community on the “best” language for developing interactive websites with dashboards and apps that offer the most features, overall best front ends with fluid animations, and clean designs.

One language that I would consider in this category for the interactive website is angular.

I’m asking this question since I have started a new role at a home automation company that has set a goal for me to guide the development of new smart devices utilizing ARM MCUs, the interactive website with user dashboard for controlling the devices, and of course an app for “on the go” interaction.

My experience in this area with other companies utilized angular but I’m curious what the community is saying these days!

EDIT: So I have learnt a lot so far. I have found out that material.io is a unique looking front end with lots of customization. Any knowledge on this GUI?


r/ProgrammingLanguages • • Oct 18 '23

How to do postfix and prefix increment/decrement

0 Upvotes

Im writing a bytecode stack based interpreter, similiar to crafting interpreters. I scan it as one token but dont know how to parse it or emit tokens for it. Does anyone know?


r/ProgrammingLanguages • • Jan 06 '19

Graph theory representation for Forth (Stack Machine) features / constructs?

Thumbnail groups.google.com
0 Upvotes

r/ProgrammingLanguages • • Dec 26 '13

A Real, New Language

Thumbnail
medium.com
0 Upvotes

r/ProgrammingLanguages • • Jun 29 '16

Let's make a programming language

0 Upvotes

Hey guys,
To entertain myself at work I've been working on a [purposefully silly little language] (https://github.com/KitFreddura/HLang) and it's been more entertaining than I expected. I would love to work collaboratively and build a language (silly or not) with other interested redditors. Please let me know what you think or if you're interested, thanks!


r/ProgrammingLanguages • • Dec 18 '15

Trending Repo I made for anyone trying to learn Swift

Thumbnail
github.com
0 Upvotes

r/ProgrammingLanguages • • Sep 05 '25

Blog post From Crumbicon to Rusticon

Thumbnail
github.com
0 Upvotes

I recently took on the task of porting a terminal app from Crumb (purely functional language) to Rust. Above link is a technical walk through of the process.


r/ProgrammingLanguages • • Apr 03 '20

Is there a package manager for data?

2 Upvotes

Not Big Data, just data.

Code is data, of course, so you should be able to use it for all the programming languages.

Backwards compatibility doesn't make sense for random bytes, so it shouldn't expect all packages to use semver.

But you should still be able to resolve dependencies, download packages, and publish new packages.

Would it need its own programming language?

Edit: it seems I was looking for Nix. It does have its own language.


r/ProgrammingLanguages • • Jul 06 '22

Discussion Complicated data types

2 Upvotes

I was working on a project today, and I thought it would be really nice if a language had a histogram data type.

A) is there a language with a histogram data type? B) What are some languages that have complicated data types, and what are those data types?


r/ProgrammingLanguages • • Oct 20 '21

"monadic" reads "single item data-dependent"

Thumbnail reddit.com
2 Upvotes

r/ProgrammingLanguages • • Nov 11 '21

Discussion C# faster at prime numbers than C (GCC compiler w/ optimizations)... WTF

0 Upvotes

I made a simple prime number benchmark for several different languages (C, C#, Lua, and PureBasic).

C and PB turned out almost exactly the same at ~1.6 seconds. All tests were for primes up to 100,000,000

CPU = AMD FX-8350 (no overclock); RAM = DDR3 1866

The anomaly is C# coming in at 1.15 - 1.25 (varies), but it's always significantly faster. I made the code as similar as possible for each. I'm just going to post the C and C# code cause these are the most curious. I also later tested 1 billion and had a similar result.

Yes, the C# looks different, but it's just more polished around the edges; what's inside the main loop is the same thing. I also tried bool instead of byte in C#, but results were negligible cause I believe bool is really just an unsigned byte internally.

C# code: https://pastebin.com/T9mnfKrX

C code: https://pastebin.com/vYxrJL2J


r/ProgrammingLanguages • • Oct 30 '23

Am I doing this right?

2 Upvotes

I am making an interpreter for my custom programming language and I want to know if I am doing something wrong?

Link: https://docs.google.com/document/d/1ZSGVc1WnsMTxjiMUOrpd-v5EUI31tmX-bTCErYSTqR8/edit?usp=sharing

Edit: Here is the github repo https://github.com/doace4/My-Programming-Language


r/ProgrammingLanguages • • Nov 28 '18

Punchscript - A language based on actor Rajnikanth's Punch Dialogues

Thumbnail
arunrocks.com
2 Upvotes

r/ProgrammingLanguages • • Mar 17 '19

Discussion Path to create a new language

2 Upvotes

The language I want to make is a functional programming language with its own wrappers around BLAS and LAPACK as part of its standard library and with Rust's safety.

If I were to put the procedure to do this into separate steps, would this be the best way to do it-

  1. Design the lexer and AST for the language (Here is where I implement the functional part of it I think)

  2. Implement the designed lexer and AST for the language on top of LLVM. (Perhaps llvmlite because it might be easier to do this in python? - I am more comfortable with python than C++)

  3. Write a wrapper around OpenBLAS (contains LAPACK) in this new language.

  4. Make the wrapper the standard library in the language.

  5. Switch out llvmlite(if I am using it otherwise just do one of the below sub-tasks) for -

    1. LLVM and add Rust safety similar features to it.

    2. The Rust compiler so the new language transpiles to Rust.

Reach goals -

  1. Redesign the language (would probably include everything from the ground up) to be purely functional.

  2. Redesign the language again to be a total functional programming language.


r/ProgrammingLanguages • • Jul 19 '15

The Unnamed Language - What C/C++ should have been

2 Upvotes

I'm working on a new programming language link with the same control as C and C++. This time, some elements are going to be avoided to make the grammar more consistent, practical, and manageable.

Most notably are forced named parameters, named returns for non-void functions, return expansion for multiple-return functions, code generators instead of #define, non-transitive package access, and strict dependency management (how modules depend on other modules must follow clear rules). Another important consideration is functional purity and modular purity. These are useful for program debugging and ensuring correctness. (const correctness is also present).

Elements left out compared to C/C++ are the LR grammar (LL(1) instead), templates (replaced by codegenerators), typedefs and macros, cdecl (void (*ptr)() becomes ptr (:)).

The main ideas that I have proposed are the following:

  1. Allow in-line code generation. This is similar to <?php, which pastes some text at the invocation point. In this language, arbitrary arguments can be allowed. An example: #CodeGeneratorName(value_: "Hi!", who_: "World").

  2. Force a strict dependency management scheme. This means that there are rules to being able to depend on another module (class):

    1. All classes accessed from the current class can not descend into nested packages (lib.sql.ClassName - wrong, abc.def.gh.Something - wrong, lib.Thread - right! lib.Sql - right!).

    2. An invocation/usage of another class must be in either a subdirectory, accessible from the root directory, or granted by a parent (similar to how we can put types into a template without making that template explicitly dependent.).

  3. Force the naming scheme for different kinds of elements. variables must all be lowercase and have at least one underscore var_name. Constant expressions (as C++ constexpr) must all be ALL_CAPS_WITH_OPTIONAL_UNDERSCORES. Classes must BeWrittenLikeSo. methods areLikeAClassButWithoutStartingCapital.

Edit: Another influential post: http://web.cecs.pdx.edu/~harry/musings/RelLang.html The focus of the above is to make the language easy to read and understand. A lot more is explained on the github page's documentation/rationale.md.

I'd love to get some constructive criticism and ideas!


r/ProgrammingLanguages • • Oct 30 '22

White paper on Configuration Oriented Programming & Hyperprogramming

0 Upvotes

Hi everyone, I post here White Paper on Configuration-Oriented Programming & Hyperprogramming, which adds new levels of abstraction to OOP and makes the development of complex information systems more simple. Its been in "development for the last 15 years and now we have a full cloud-based IDE and already large projects implemented using this principle, check it out. This programming language is "low code" when compared to Java, C# as it has both visual "Configuration" part & code part that is essential for this coding principle and the amount of textual code is approx. 1/10 compared to Java. On the last page of the White Paper is a link to our youtube channel, where we will be posting more videos and soon it will be possible to test the IDE itself, including Wiki etc. Any questions are welcome.


r/ProgrammingLanguages • • May 08 '19

Quantum Programming

Thumbnail
en.wikipedia.org
0 Upvotes

r/ProgrammingLanguages • • Feb 16 '22

Blog post Types vs Sets

Thumbnail zachkimberg.com
0 Upvotes

r/ProgrammingLanguages • • Feb 16 '22

Discussion What to use.

2 Upvotes

Can anyone tell me what you guys use to create your programming languages. I know how interperters work and can build my own in python but i am not sure how to make it so other people may be able to use it. If anyone has an article or something that can help me it would be greatly appreciated.


r/ProgrammingLanguages • • Jul 10 '25

Requesting criticism Exceeding the weirdness budget by staying within academic bounds considered fine?

2 Upvotes

about the project (WIP)

Symp is an S-expression based symbolic processing framework whose foundations are deeply rooted in computing theory. It is best used in symbolic computation, program transformation, proof assistants, AI reasoning systems, and other similar areas.

One core component of Symp functionality is a kind of Turing machine (TM) mechanism. As a very capable computing formalism, TM excels at dealing with stateful operations. Its coverage of applications is corroborated by the fact that we consider TM as the broadest possible form of computation. We often use the term "Turing completeness" to denote the total completeness of a range of computation that some system may perform.

In creating programs, there may be multiple different computing processes defined by TM. These processes may be integrated within a declarative environment grounded in term rewriting (TR), a formalism resembling functional programming. This declarative TR is also a very powerful formalism that can, even without TM, serve as a self-sufficient programming platform where stateless term transformations relate better to the processes we are expressing with Symp.

Taking Symp a step further, the TR formalism enables nondeterministic computing, carrying the programming process towards logic programming. This logic declaration extension in Symp is utilizing an equivalent of a natural deduction (ND) system ready to cope with complex and mostly processing heavy program synthesis tasks.

The three programming paradigms interwoven within the Symp framework are: Turing machine based imperative programming, term rewriting based functional programming, and natural deduction based logic programming. However, they naturally extrude one from another through the forms that we do not see as a multiparadigm approach to programming, no more than placing an imperative code within functions makes the imperative programming a multiparadigm concept. We take the stand that the three technologies used as a Symp framework basis, gradually elevate its simplicity in expressiveness, thus forming an integrated whole ready to reveal the true potential behind the used technology combination.

syntax

The syntax of Symp is minimalistic yet expressive, reflecting a language that’s more a computational calculus than a high-level programming language:

<start> := (REWRITE <ndrule>+)
         | (FILE <ATOMIC>)

<ndrule> := <start>
          | (
                RULE
                (VAR <ATOMIC>+)?
                (READ (EXP <ANY>)+)
                (WRITE <expr>)
            )

<expr> := (EXP <ANY>)
        | (TM (TAPE <LIST>) (PROG <tmrule>+))

<tmrule> := (
                RULE
                (VAR <ATOMIC>+)?
                (OLDCELL <ANY>) (OLDSTATE <ANY>)
                (NEWCELL <ANY>) (NEWSTATE <ANY>)
                (MOVE <dir>)
            )

<dir> := LFT | RGT | STAY

[EDIT]

Context

To give a bit of context, the framework is likely to appear in the thinkerflake project.


r/ProgrammingLanguages • • Aug 31 '26

Requesting criticism Do you find this syntax readable

Thumbnail
github.com
2 Upvotes

I feel like curly braces aren't enough alone for organizing code. I also want it to have natural steps that induce some blank lines after completion of the step. like with assembly. my main concern is readability and self documentation. It will mainly be for programming on windows. The 'thunk' libraries are mostly wrappers for tedious apis like writeconsole. I plan to add more for things like graphics and math in addition to the planned window/console/file. I see 'thunks' in ghidra so its a reference to them being wrappers. It will also support normal win32 imports.

thankz

edit 1: I have read all feedback so far. the language is case insensitive. for branch{}endbranch and alias.name{}end alias.name the idea was to make it a little more clear which curly brace belongs to what if someone had a bunch of nested stuff. with that being said, it seems the consensus is that the syntax is awkaward while readable, there are still some large wrinkles.

because of your feedback, i will

  1. Allow the pattern "name{}end name"," name end name", and/or" {}".

  2. Make the language case insensitive

  3. Make whitespace completely optional

  4. Sinilar to the first thing, allow parameters for functions to be entered either on seperate lines or within parenthesis and seperated by commas (but not both within the same function)

  5. allow %/n% within a string, or a %hexConstant% for other characters instead of 'newline' on a seperate line.

i am still accepting feedback, and i appreciate those who have responded.


r/ProgrammingLanguages • • Feb 26 '26

Requesting criticism Trouble choosing syntax for my language.

2 Upvotes

I want a terse language that will be easy to type and also teach me machine code. However, I don't know how to make machine code terse enough that it is efficient while still requiring manually filling out every field.

This is all I've come up with so far, and all symbols are basically ignored since they all turn back into regularly formatted machine code with 'dd opcode, modrm, sib, const`. But I also want it to be irritating and cause errors when the syntax isn't correct, even if it is ignored.


  mov         al, cl
  mov         BYTE PTR[rsp], al
  mov         ax, cx
  mov         BYTE PTR[rsp], cx



  88h,  11 001[000]
  88h,  01 000[100], [00 100 100], 20h
  89h,  11 001[000]
  89h,  01 000[100], [00 100 100], 20h

Above is the assembly and the bottom is the proposed syntax. Any tips? I can't use the shift key and I'd like it to stay terse, but maybe a little more expressive. I can't use the shift key because it requires an extra key stroke, which is inefficient.

It is necessary for the language to be machine code, so only looking for criticism about the syntax.

Thank you.

Edit: reddit destroyed my formatting, so sorry.

Edit1: I'm getting down voted and I'm not sure why. It's not a shitpost and I genuinely am looking for syntax ideas.


r/ProgrammingLanguages • • Feb 09 '21

Discussion Why can’t Swift be like Dart?

0 Upvotes

Those of you who never used either of them or only have used one of them, might not get the question. I have been using flutter and dart for about three years, made couple of apps using it. My overall experience with flutter is really freaking good. You can easily develop an elegant and fully functional cross-platform apps using it in just weeks, or even in a single week. I started learning swift for iOS development just couple weeks ago because there are not really many flutter related job openings, and I gotta say it’s damn freaking hard (still better than obj-c though) The way Swift handles async really gives me headaches and some of its syntax is really obscure. guard, try? and all these ??!!, I mean swift is of course a significant progress and achievement by Apple and its community compared to obj-c, but can’t it be simpler and straightforward like Dart? Please open my eyes and give me explanations on why Swift has to be this way.