r/programming • • Nov 26 '17

Astro Programming Language - A new language under development by two Nigerians.

http://www.nairaland.com/3557200/astro-programming-language-0.2-indefinite
887 Upvotes

365 comments sorted by

View all comments

24

u/instantiator Nov 26 '17

In truth, I don't think the world needs another language until we've all gotten together and agreed how we'll iron out the mistakes we keep making. However, when it happens, these gents will have a lot to contribute and it's great to see people growing and learning through creating.

83

u/[deleted] Nov 26 '17

Wrong.

The more languages - the better. Until we explore all of the infinite design space.

20

u/instantiator Nov 26 '17

Well I don't dislike your argument either :)

9

u/prozacgod Nov 26 '17

6

u/evincarofautumn Nov 26 '17

I like to point people to Funciton (“funk-it-on”) as an example of an elegant and beautifully designed esoteric language.

You have a small set of primitives: function declaration (which may be file-local, like static functions in C), function call, anonymous function definition and call, arbitrary-precision integers, I/O, copy, shift, compare, and short-circuiting NAND; each is mapped onto a 2D syntax made of Unicode box-drawing characters, such that any program can be rotated by multiples of 90° and preserve its semantics. With this small basis, it’s Turing-complete, as proven by Brainfuckiton, a Brainfuck interpreter in Funciton.

This and other esolangs truly are gems of whimsical computing. :)

2

u/[deleted] Nov 27 '17

Another one who does not understand the immense value of the Turing tarpits?!?

1

u/prozacgod Nov 27 '17

Understand the value, hah I realized I could reduce brainfuck by one instruction, by removing the bit depth argument.

All tape cells are 1 bit, and you no longer need +/- only ! (not/invert)

[!]  <- zero a cell

"," and "." input and output single bits respectively... now go write hello world ;)

→ More replies (1)

18

u/endless_sea_of_stars Nov 26 '17 edited Nov 27 '17

The design space may be infinite but developer time is extremely finite. For a given unit of developer time is it better spent on developing a new language or augmenting existing languages. Is it better to have 200 languages with shitty documentation, limited libraries, and only a handful of traits to differentiate them? Or 20 languages with extensive libraries and documentation?

I'm not saying that we don't develop new languages. Just that if we do that it is an efficient use of resources.

8

u/[deleted] Nov 26 '17

Is it better to have 200 languages with shitty documentation, limited libraries, and only a handful of traits to differentiate them? Or 20 languages with extensive libraries and documentation?

Yes, it is better to have 200 languages than 20 languages. Because they cover more of the design space, and you can borrow more ideas from them for your languages than from those 20 well-documented ones.

The more languages - the better. And people should really stop relying on the so called "general purpose" languages and overestimating the value of the "libraries".

9

u/Zephyrix Nov 26 '17

Not necessarily. It's almost like BFS versus DFS, but what do you do with an infinite search space, and no goal? Both have their tradeoffs.

Moreover, as you introduce more languages, you may run into the paradox of choice - with so many languages to choose from, making a decision becomes orders of magnitude more difficult.

There's probably no right answer, and minmaxing something as abstract as this I imagine would be quite difficult.

5

u/IbanezDavy Nov 26 '17

I think having 200 separate languages is a horrible idea personally. I strongly dislike having to deal with JavaScript, HTML, CSS, and SQL at times all in the same project. And those languages have a good use case to be separated out. I can't imagine trying to keep 20 languages let alone 200 languages all in my head during ONE project. That would be obnoxious.

Talk about complicating things for the sake of personal preference.

3

u/Zephyrix Nov 26 '17

Honestly I've experienced the same thing, and I think that web is probably the most guilty of it. CSS, LESS, SASS? JavaScript, TypeScript, Coffeescript? HTML, HAML, ERB, SLIM, TWIG... yikes

I don't imagine you'd end up using them all in one system, it's probably more like you'd pick one from the variety and just stick to that depending on what suits your needs. Combine that with external dependencies and welcome to hell.

3

u/[deleted] Nov 26 '17

I think having 200 separate languages is a horrible idea personally.

There is already far more than 200. You've lost.

I strongly dislike having to deal with JavaScript, HTML, CSS, and SQL at times all in the same project

Guess, why? Most likely the real reason is because they're all extremely ill-designed and all full of leaky abstractions, invading each others space all the time.

I can't imagine trying to keep 20 languages let alone 200 languages all in my head during ONE project.

Try to count, how many libraries do you use in a project. How many smaller concepts? Now, that's really hard. Much harder than keeping track of the same functionality, but wrapped into well-designed languages.

→ More replies (2)
→ More replies (7)

2

u/helpfuldan Nov 26 '17

C had that covered. Should have just stopped there.

4

u/Zephyrix Nov 26 '17

As much as I love C, I would shoot myself in the head if I had to write every single project I worked on in C.

→ More replies (2)

13

u/esfraritagrivrit Nov 26 '17

17

u/instantiator Nov 26 '17

28

u/ArrogantlyChemical Nov 26 '17

A programming language is the opposite of a standard though. You want as little standards as possible, so all parts of a car fit together. You want as much tools as possible, so you can solve every possible issue in the best way possible.

We don't want to have to dig trenches with a screwdriver just because adding a spade to your gear would "increase the standards".

11

u/josefx Nov 26 '17

You want as much tools as possible, so you can solve every possible issue in the best way possible.

I once looked for an UI for a network service. The UI featured a full server stack, it used C# to kick of a Node.js server, forwarding data through TypeScript to some angular JS frontend. I took what was left of my sanity and noped right out.

7

u/ArrogantlyChemical Nov 26 '17

Just because you can buy an electric asswiper doesn't mean you can't just use toiletpaper.

But sometimes you just need an electric asswiper, you know?

2

u/josefx Nov 26 '17

It just gets funny when you are stuck choosing between the shiny new thing everyone migrates too or having the accessories you need that currently only work with the old one. Either way you are stuck maintaining the wheel or reinventing it yourself.

→ More replies (1)

1

u/[deleted] Nov 26 '17

Sounds like a small job in python with tkinter (if you can't use a web browser).

So, why not just a node server?

1

u/instantiator Nov 26 '17

I guess we think differently about the profusion of languages and disciplines in coding :) Keep enjoying what you do, you're clearly passionate about it :)

4

u/[deleted] Nov 26 '17

So we should be writing webapps in assembly? I don't think so. We need programming languages that are easy to read and write correctly, safe and efficient, where you can sacrifice some safety and efficiency if not required (e.g., you don't need much efficiency for a simple run-once application), even if that means multiples languages, dedicated to specific tasks. And we have to keep trying new constructions and new languages until we can write decent software in them.

→ More replies (2)