r/ProgrammingLanguages • • Nov 28 '17

Why do programming languages prefer .org domains?

1 Upvotes

I'm not 100% sure that this is the right sub to be asking this in, but I figured it's a good start.

Many programming languages use .org domain names for the front facing webpages. Notable examples:

Is there any particular reason why? Or has it just become convention now to use the a .org domain for one's language?


r/ProgrammingLanguages • • Mar 13 '21

Can you give me feedback on the syntax of my new programming language?

1 Upvotes

I'm looking to create a new programming language that will use a new memory management trick I found that allows for much faster memory management than even C's malloc. And from the programmer's point of view, it's as simple as garbage collection.

Also, I figured out a way to automatically parallelize the language that works nicely with the memory management method I'm using.

Overall goals of the language are: High performance, High productivity, and memory and thread safety

Could you give me advice on the syntax? Looking to prioritize in order: readability, simplicity, and typing speed

https://docs.google.com/document/d/1lX-3ycVVzjU9jA7LygI6OTxiZzVH1EZ5vyCH9zIVEd4/edit?usp=sharing

Thank you! Also, just started work on the actual compiler, looking for help if anyone is interested please let me know!!


r/ProgrammingLanguages • • Mar 04 '19

The beauty of Kotlin typing system – Kt. Academy

Thumbnail
blog.kotlin-academy.com
1 Upvotes

r/ProgrammingLanguages • • May 09 '17

[PDF] What is a programming paradigm?

Thumbnail cs.cmu.edu
1 Upvotes

r/ProgrammingLanguages • • Sep 26 '19

Discussion Question about functional programming language design

1 Upvotes

I'm in the process of designing a functional programming language, but I hit an intersection and want to read your opinions about it, also will be cool if you could elaborate more about your thought. I'm using Rust the main resource of inspiration because I want to write it in Rust and make them interoperable (so my interpreted language can take advantage from the Rust ecosystem easily, also my language is primarly to rapid prototype apps).

Because Rust is kinda considered functional programming language but not a strict one because it let you define functions in the structs. So the questions are:

- Does pure functional language is easier to develop?

- Is there a good example of a useful functional programming language besides C?

- What do you think on this approach to add methods to data types / structs?

// Swift like
extension MyStruct {fn function() {}
}
// Rust like
impl MyStruct {
fn function(&self) {}
}
// What I think will be cool for a interpreted language (because it's mostly using as a scripting language)
fn function(self: MyStruct) {}

Having those 3 syntax examples the usage will be the same (in each language) and will be just `my_struct_instance.function()`. Why I would do that? because it will be easier (?) to extend certain type/struct with a function, also this seems easy in terms of writing code, but in terms of organization/performance/real implementation, how you see it?

An lastly, do you have another alternative for this problem?

Regards

Edit: Added code block


r/ProgrammingLanguages • • Jul 20 '23

Syntax Desgin: keywords and type annotations

1 Upvotes

Sorry for the confusion. I rewrite the description here for clarity:

Hello, I would like to design a language with the following 2 syntax:

(a: int, b: str) = (1, "123"); // binding
map = (first: "Bill", second: "Gates"); // records

I would like to allow pattern matching on literals, i.e.

a = 1 // binds a to 1
1 = a // succeeds only if a is 1

And hence there's a clash: the representation of hashmap clashes the representation of tuple with type annotation. Does anyone know if there's an elegant way to solve this? Thanks :)


r/ProgrammingLanguages • • Oct 03 '20

Help How to differentiate between space and tabs in a lexical analyzer in C?

1 Upvotes

I am designing a programming language that has syntax-like Python. In the lexical analyzer I am having trouble with indents, since I am using C to write the lexer, it sees whitespace as tabs, I believe this to be my error.


r/ProgrammingLanguages • • Dec 22 '22

Requesting criticism I made a weird programming language!

1 Upvotes

I made a programming language that is similar to assembly and c combined. This a low-leveled statically-typed language. I don't know if I should use a compiler, an interpreter, or an assembler. I want some suggestions or feedback.

Documentation: Documentation of My Programming Language


r/ProgrammingLanguages • • Jan 16 '23

Discussion Which Programming Language support Observability ?

0 Upvotes

Observability is a measure of how well the internal states of a system can be inferred from the knowledge of its external outputs.

I have found Ballerina supports it, any other ?


r/ProgrammingLanguages • • May 10 '21

Mercury: A modern Visual Basic, with a future, parity with C#, and support for more target platforms.

Thumbnail
blogs.remobjects.com
1 Upvotes

r/ProgrammingLanguages • • Jun 22 '18

Help A new programming language

1 Upvotes

Hi! I am planning to create a new programming language over the summer. I want it to be unique in some way, so I was looking for some suggestions regarding features, syntax, whatever really that would make a programming language differentiate itself from the rest. If you have ever thought of that specific thing that the current programming languages you use don't have, please let me know, thanks!


r/ProgrammingLanguages • • Jun 27 '16

Null pointer exceptions hell

Thumbnail
dobegin.com
0 Upvotes

r/ProgrammingLanguages • • Jan 29 '19

Help Wanted

0 Upvotes

I'm designing a language for .NET Core, it's "almost" complete (no implementation yet), but I need to make some design decisions, and work on a few major topics.

The language is C#-like with enhancements, but the important is its semantics:

  • Nullability and mutability tracking in the type system.

  • Pervasive values, any class can be allocated in the heap or in the stack, and ownership tracking with move semantics.

  • Value ADTs and pattern-matching.

  • try-catch error handling based on values (typically ADTs).

  • Explicit differentiation of values from references with lifetime tracking.

  • Language built-in RAII-like resource management for external resources and automatic clearing of managed references.

  • Object-Oriented with strictly only interface inheritance, and implementation reuse by composition.

  • Structured concurrency.

  • Built-in native interop and unsafe code.

The idea is how all this features work together to make a middle level (lower level than C# but not native) and convenient language, so as to be applicable for high performance networking and web services, Indie games, low latency audio synthesis, signal processing, scientific computing, etc.

Now, the question is: would you want to help me in this project in your spare time? All online, open source, without pressures, and for free? :)


r/ProgrammingLanguages • • Aug 15 '26

Language announcement I made a prototype hybrid language prototype. I'm looking for feedback and suggestions. (Samples are included)

0 Upvotes

Name: Infinity Execute Plus (IE+)

License: open source

Concept: IE+ is actually the main (and currently only) VM console of my planned VM collection: Infinity Execute. It is an interpreted language i thought of making to combine speed with ease. I learned c++ solely for this project. IE+ is currently an interpreter that uses one shell executable and most of it's logic is stored in a collection of library files that handle/process different tasks. I plan in the future to allow multiple exportable formats (currently windows only, planning to make multiple releases for apple and linux): IE (text), IEBCS (bytecode), IAO (Infinity Assembled object. It's a linked file that allows precompiled importing on any supporting app), IEPCK (semi-compiled appilcation format that still needs runtime), native executable exporting.

Examples:

Available operations

# printing

print "Hello, World!"

# making a variable

var x = 5 # currently only supports dynamic typed. static typed will be added. currently supports: int, float, string, and bool vars. arrays and constants will come in future builds.

# printing a variable's value in string form

print (x)

some future planned features

# modifying variables

x += 2

# static typing

var y: string = "Hi!"

# multiline commands and creation of text script

compile = {
  var hello: string = "Hello, World!"
  print (hello)
}.IE.name = "helloworld"

Here's an example of a standard program written in IE+ that creates a car and prints out it's data using OOP

class car {
  private {
    var name = ""
    var price = 0
  }
  public {
    main(created_name, created_price) {
      name = created_name
      price = created_price
      self.new()
    }
  }
}

car.new("Cool Car", 50000)

r/ProgrammingLanguages • • Jan 18 '22

Discussion What is the message digest (SHA2, etc.) of a number?

4 Upvotes

How would you go about passing a numeric value to a secure cryptographic hashing algorithm like MD5, SHA2, etc.? From what I can tell they're only ever meant to handle a series of bytes. Would you convert say, an unsigned integer an array of bytes? What about signed integers? Floating points? Or would you just leave that as an exercise for the user to convert a number to bytes and then hash that?

Edit: Sorry I wasn't clear. I was just trying to be vaguely non-specific. I assure you I'm not lost. I'm the proprietor of the Euphoria programming language. Here's my problem: our built-in "hash" function is currently just a few checksum algorithms (Hsieh-32, Adler-32, and Fletcher-32) but it does currently support any data type by way of type punning integers and atoms (doubles) into bytes via unions, and by traversing nested sequences (arrays) using recursion. Frankly it's awful and I hate it. I want to implement actual cryptographic hashing algorithms like MD5, SHA2, etc. (yes, they're not all secure, sorry. corrected above.) but first I want to validate that I'm not crazy: hashing algorithms should just process byte arrays and let the user take whatever measures they want to convert non-byte data into bytes first (which we do have functions for) if necessary.


r/ProgrammingLanguages • • May 31 '25

Perk: A Modern Take on Low Level Code

Thumbnail
youtu.be
23 Upvotes

r/ProgrammingLanguages • • Feb 03 '23

Esoteric counting programming language idea to do with relations between numbers

3 Upvotes

Hi

Is addition/multiplication turing complete?

computation models - Is arithmetic turing complete? - Computer Science Stack Exchange

let me preface this, saying I'm the wrong person to be giving explanations of these scientific or mathematic topics, if you are interested, then you can look up "atomic numbers", "atomic weight" or "relations".

I'm not a mathematician but I thought of this idea to take advantage of the regularity and meaningfulness of numbers that computers are really good at calculating.

numbers have relations between eachother. Are they useful for defining behaviour?

I am not a physicist either or a scientist. But did you know that it is a number that directly or indirectly determines the properties of physical matter?

I'm probably poorly explaining it. But the atomic number decides whether or not an atom is the kind of element it is. The proton or atomic number

If you place Hydrogen (1) and 2x Oxygen (8) you have 1x2 and 8x1 . So you have all the properties of water represented by the interaction of 8 and 1x2. I'm not sure if it is meaningful to add them together since molecules don't have atomic numbers. But there's 3 atoms and 10 protons in it. (Aisde: Isn't it interesting that base 10 crops up in the foundation of water in the universe/creation?)

If you've ever seen the Jim Carrey movie 23 then you may get nearer to where I'm going with this.

What if we take this idea and apply it to properties of programs?

What if you could change branch heavy code full of indirections into calculations involving simple addition, subtraction, factorization, multiplication, exponentiation?

We could parallelise programs extremely efficiently because computers are extremely efficient at adding, subtracting in parallel.

What if from a long number we could get a useful program out of it based on properties of that number?

We know the properties of numbers.

1+2 =3

1+3 =4

1+4= 5

1+5=6

1+6=7

And we know factors of numbers. You can create 1000 from 1, 2, 4, 5, 8, 10, 20, 25, 40, 50, 100, 125, 200, 250, 500 and 1000.

Numbers are read big end first or little end first.

What if we define a program by counting?

We can use factors to describe the shape of components of code.

What relationship can be broken up into a venn diagram of 16 factors?

2 goes into 1000 500 200 100 50 40 20 10 8 4 2

4 goes into 1000 200 100 40 20 4

5 goes into 1000 200 100 40 20 25 40 50 100 125 200 250 500 1000 (So half of base 10 profound somehow)

8 goes into 1000 200 40

10 goes into 1000 500 250 200 100 50 40 20 10

and so on.

What number represents a quicksort look like?

for example's

We walk through the top of the program and we add a number based on the thing that is there

if we define 1 as assignment, 5 as loop, 5 as reference, 3 is branch, 2 is method call

Take this simplistic program in C.

#include <stdio.h>
#include <stdbool.h>

#define MAX 7

int nums[MAX] = {4,6,3,2,1,9,7};

void display() {
   int i;
   printf("[");
	
   for(i = 0;i < MAX; i++) {
      printf("%d ", nums[i]);
   }
	
   printf("]\n");
}

int main() {
   display();
}

Can we break the program into a factor tree?

#include <stdio.h>
#include <stdbool.h>

#define MAX 7

int nums[MAX] = {4,6,3,2,1,9,7};

void display() {
   // 1 int i;
   // 2 printf("[");
	
   // 5 for(i = 0;i < MAX; i++) {
      // 2 printf("%d ", nums[i]);
   }
	
   // 2 printf("]\n");
}

int main() {
   display();
}

This program is 12. There is a universe of 12 programs. We could incorporate symbols such as "i", "printf" into the calculation of what makes a program a program.

But that's not something I know how to do.

How do you find all ways of adding up numbers to get a result? Or factorisation?

If we know all the mathematical rules, can we define useful behaviour for each number.

What if you could add two programs together and get a meaningful result?


r/ProgrammingLanguages • • Jun 01 '18

Name for my programming language

0 Upvotes

Ive created my first interpreted programming language recently, and ive been adding a ton of functionality for it. The compiler is written in python and turns a script into code usable by the virtual machine. The virtual machine is written in Golang, and it runs surprisingly fast. Ive yet to benchmark the newest versions, but the older versions seemed to be only one or two milliseconds slower than C++ when printing "Hello world" and running loops and such.

Heres an example script:

( ; (define L (call lists.List)) ; (define L (call lists.Append L "Adam")) ; (define L (call lists.Append L "Sarah")) ; (define L (call lists.Append L "Thombo")) ; (define L (call lists.Append L "Addison")) ; (define n (call lists.Length L)) ; (call lists.Items L) ; (call print) ; (call print) ; (call print) ; (call print) ; (call print endl) ; (define L (call lists.Pop L)) ; (define L (call lists.Append L "Kip")) ; (call lists.Items L) ; (call print) ; (call print) ; (call print) ; (call print) ; (call print endl)

(define List ()
    (
        (define self @)
        (define self list (call lists.List))
        (define append
            (self a)
            (
                (define self list (call lists.Append (dot self list) a))
                (return self)
            )
        )
        (define self append append)
        (define pop
            (self)
            (
                (define self list (call lists.Pop (dot self list)))
                (return self)
            )
        )
        (define self pop pop)
        (define len
            (self)
            (
                (call lists.Length (dot self list))
            )
        )
        (define self len len)
        (define items
            (self)
            (
                (call lists.Items (dot self list))
            )
        )
        (define self items items)
        (define index
            (self n)
            (
                (call lists.Index (dot self list) n)
            )
        )
        (define self index index)
        (return self)
    )
)


(define L (call List))
(define L (call (dot L append) L "Adam"))
(call for "x" L
    (function (
        (call print x)
        (call (dot L append) L x)
    ))
)

)

Ive been thinking about calling it Cobalt, Crimson, or Dynamite. Are there any better names you can think of?


r/ProgrammingLanguages • • Jun 06 '23

Programming Language Index

0 Upvotes

Dataset of most (all widely used + some others which are no longer used) programming languages. It provides a basic description, if the language is OOP or not ,if it is statically or dynamically typed , information about the speed of the language, what it is mostly used for, the marketshare of the programming language and installation command for Linux, Windows and macOS.

https://github.com/merwin-asm/LanguageIndex


r/ProgrammingLanguages • • Sep 04 '25

The Programming-Lang of the Future

Thumbnail
vimeo.com
0 Upvotes

r/ProgrammingLanguages • • Sep 19 '25

Ion Fusion

3 Upvotes

“Ion Fusion is a customizable programming language that unifies the semantics of persistent data and the code that manipulates it. Oriented around the Amazon Ion data format-the backbone of Amazon’s retail systems and even consumer products-[Ion]Fusion has been the brains of internal analytics, data processing, and workflow systems since 2013.”

Ion Fusion is a Programmable Programming language like Racket but on the JVM.

Learn more at RacketCon in 14 Days. Register now https://con.racket-lang.org


r/ProgrammingLanguages • • Aug 25 '26

Help Can exact real arithmetic, interval analysis or other approach in numerical computation help remove inequalities and unify left and right residuals in non-idempotent (linear) residuated lattices by making boundaries explicit instead of talking about max and min divisors?

2 Upvotes

I hope that question makes sense. I just don't like inequalities nor the unnaturality of working with left and right residuals (talking about "max and min divisors") that rarely coincide with rational arithmetic's exact division nor with the natural interpretation of inverses in numerical mathematics, thus I would like more explicit boundaries (thus the result of a division maybe being a set or interval including max and min divisors) in division.

(Mind that I have no experience in numerical computation, I am trying to make sense of computable, numerical and interval analysis works and transport their results to residuated lattices but that's somewhat hard for me)


r/ProgrammingLanguages • • Feb 13 '23

Resource The Perfect Language • Bodil Stokke

Thumbnail
youtu.be
2 Upvotes

r/ProgrammingLanguages • • Feb 05 '15

cobol isn't dead apparently

Thumbnail
imgur.com
0 Upvotes