Live data from Hacker News

Ask HN: Have you created a programming language and why?

news.ycombinator.com

81–90 of 247 posts

Re: Ask HN: Have you created a programming language and why?

#81
Inspired by Algorithmic Information Theory, the theory of shortest programs, I set out to create the simplest possible computational model with binary input and output.

The Binary Lambda Calculus is described in [1],[2] and further inspired this IOCCC winner [3].

[1] http://tromp.github.io/cl/Binary_lambda_calculus.html [2] http://tromp.github.io/cl/cl.html [3] http://www.ioccc.org/2012/tromp/hint.html

Re: Ask HN: Have you created a programming language and why?

#82
I play language designer in my free time, I have like ten languages buried in folders with thousands of abandoned projects.

My recent endeavour was a language with only five constructs that would mimic mathematics in the way we program:

    = assign
    $ print
    @ loop
    ? condition ! else
    # definition/function
So print hello world would be like:

    $ 'Hello world'
Every single program in the whole universe can be easily translated to Uno: Universal Notation.

I thought developing a browser extension to allow Uno being run from the address bar for quick calculations would be an interesting project.

Re: Ask HN: Have you created a programming language and why?

#83
I wrote a language called T for Bell Northern Research, not knowing there was already another T language based on Scheme. The language was used for black box testing testing of terminal interfaces, and so needed good string handling.

One aspect of the language was that Unix regular expressions were a built-in type, and so were associate arrays. These two features worked together in a cool way:

  x['hi there'] = 5
  x['hello'] = 2

  # regular expressions are enclosed in `backquotes`
  x[`hell.`] == [2]
  x[`h.*`] == [5, 2]

Re: Ask HN: Have you created a programming language and why?

#84
Created https://github.com/shanhuio/smlvm

A C like language with golang like syntax. Pure Go language implementation.

https://shanhu.io/smlvm - shows the dependency structure of the project.

https://github.com/shanhuio/smlhome - example code that we wrote in the language.

Re: Ask HN: Have you created a programming language and why?

#85
post #55

When I was in college, I was addicted to Starcraft II. Luckily, I primarily played 4v4s so the brainpower necessary to win wasn't nearly as high as 1v1s (which left far less room to meme, so I didn't enjoy them nearly as much). However, while playing game after game in the evenings, I was always frustrated that I was using the inputs and outputs of my body so inefficiently. Starcraft tied up my eyes and my hands, but…

This is really interesting. How are you able to multitask so well? I can't hardly listen to a podcast and code at the same time, let alone play a game.

As the other response mentioned, at that point gaming was pretty habitual (and way more "thoughtless" than when I first started). I'd start up a game with a general plan and adjust mildly as needed, but in 4v4s it's basically 10-15 minutes of rushing an economy (which is pretty rote after a while) into massing up your army (which is pretty must just reflex APM of "select all barracks, queue up another marine/marauder in each; select all factories, queue up a few tanks/thors; select all starports, queue up a few medivacs/ravens") and then filling any empty space with random drops and harassment. I think there's a _lot_ more thought that goes into 1v1s since you're in a two-sided equilibrium and can't start losing much, but in 4v4s there's so much room for comebacks and throwing (and/or teams working together or not) that it doesn't matter nearly as much.

I couldn't listen to a podcast and code at the same time either, probably. If I'm listening to a podcast, I'm mentally trying to process it. If I'm coding, I'm mentally trying to plan/process what I've done. Any mental processing from one takes away from the other.

Podcasts, though, don't require any use of your hands. I actually feel guilty _just_ listening to podcasts (or similar) unless I'm also doing something like painting or paperwork that requires hands but not brainpower. I recognize it's kind of irrational, but it just feels like a waste of time and potential when I'm (probably) not going to live forever.

I think it's just a matter of recognizing what your potential inputs (seeing, hearing, touch, processing) and outputs (hands, voice, mental "caches" like outlines that you can context switch back into later) are and choosing activities to multitask that take advantage of the maximum amount of each without overlapping.

Re: Ask HN: Have you created a programming language and why?

#86
Several, one for driving the film printer in the Image Processing Lab - it allowed me to create a program for printing jobs and then re-use that program rather than to manually run all the steps. One for compiling graphics operations into the minimal RISC code of an Intel graphics chip. One for programming robotics behaviors in mobile robots, a variation on TUTOR for writing some automated student testing software.

But 'creating a language' is just a tool in the programmer's tool box that allows a set of capabilities to be strung together in different ways automatically. That has been a useful tool ever since Jacquard used it to program his looms.

Re: Ask HN: Have you created a programming language and why?

#87

Yes, CoffeeScript, in 2009. Despite being a modest, fun experiment in stripping JavaScript down to a minimal skin, and without any corporate backing, it wound up catching on a little bit. Thanks to the hard work of Geoffrey Booth and Simon Lydell, among others, there's a new "V2" version that includes many ES6 and 7 features that's almost ready to go: http://coffeescript.org/v2/ CoffeeScript was designed extremely co…

What are your personal opinions on the future of Coffeescript? It's still being used for Atom, but I've noticed colleagues are finally getting used to ES6 and similar languages and switching to them. I'm still stuck on Coffeescript though for all of my frontend projects. It's too closely aligned to my utopia of a language to try to find anything else (which would surely have a smaller following anyway).

Re: Ask HN: Have you created a programming language and why?

#88

Yes, CoffeeScript, in 2009. Despite being a modest, fun experiment in stripping JavaScript down to a minimal skin, and without any corporate backing, it wound up catching on a little bit. Thanks to the hard work of Geoffrey Booth and Simon Lydell, among others, there's a new "V2" version that includes many ES6 and 7 features that's almost ready to go: http://coffeescript.org/v2/ CoffeeScript was designed extremely co…

Just wanted to say thank you for CoffeeScript. Despite its somewhat ambiguous syntax it really was a better version of JavaScript, and it would be fair to say it really mainstreamed the idea of JS as a target language. Many of the ideas in CS made it all the way to ES6. Many other ideas didn't make it to ES6 because CS fleshed out issues that quite possibly would have been missed otherwise.

It was a huge net positive for web development. 2009-2011 were really heady times - a whole programming community emerged from a deep, dark cave with new tools and a new optimism for the web.

Re: Ask HN: Have you created a programming language and why?

#89

When I was in college, I was addicted to Starcraft II. Luckily, I primarily played 4v4s so the brainpower necessary to win wasn't nearly as high as 1v1s (which left far less room to meme, so I didn't enjoy them nearly as much). However, while playing game after game in the evenings, I was always frustrated that I was using the inputs and outputs of my body so inefficiently. Starcraft tied up my eyes and my hands, but…

This is really cool. You should think about doing a startup around this, especially given the new tech ecosystem with AR/VR and good voice recognition.

I would love to be able to code, using a headset+phone combo, while wandering around in a park.

Re: Ask HN: Have you created a programming language and why?

#90
post #22

In college I did a project where I created a visual programming language. I thought it would make the program easier to read, but in hindsight it's pretty clear that these systems would be too cumbersome to use except when teaching basic programming concepts. Professionally, no, but I've taken the approach of "I'm writing a compiler" when ingesting someone else's xml schema. It's very useful when you need to identify…

Graphical languages are quite common in the industrial controls space, ladder logic in particular. Horrendously cumbersome to you or me, but usable by controls engineers and factory technicians.

https://en.wikipedia.org/wiki/Ladder_logic

Post reply on HN