Live data from Hacker News

OneLang – A tool to help writing code in multiple languages at the same time

ide.onelang.io

51–60 of 69 posts

Re: OneLang – A tool to help writing code in multiple languages at the same time

#51
Programming language translation has to be on the horizon. The cost of switching is currently too high.

I got into a project years ago with this ambition using an AST and allowing each language to provide their own translation for each syntax element or block of code.

It also had the unique benefit of being able to take larger blocks like a function and allowing the translator to provide a full function in some native programming language so that a login or Fibonacci function could have multiple translations in the same language allowing the translation to evolve and adapt to use the most efficient one as new translations were introduced.

Re: OneLang – A tool to help writing code in multiple languages at the same time

#52
post #4

If anybody is looking for something stable for years, have a look at haxe [1] [1] https://haxe.org

Can I ask how Haxe is connected to Flash?

For some reason, the first time I looked at Haxe I got the impression that Haxe is an open-source Flash / Flash successor. (Mostly, I think, because Flash keeps getting mentioned with projects associated with Haxe, like OpenFL and Flambe, and several times in the Haxe Wikipedia article).

Clearly Haxe isn't "just" an open Flash, but how is Haxe related to Flash?

Re: OneLang – A tool to help writing code in multiple languages at the same time

#53
Hey I'm curious about your journey than the final result. I only skimmed through the code, so I don't understand everything, but it seems that the list of things it will identify is in the "yaml" files. Did you write out all of them or was there a pre-existing database somewhere?

Re: OneLang – A tool to help writing code in multiple languages at the same time

#54
post #4

If anybody is looking for something stable for years, have a look at haxe [1] [1] https://haxe.org

Can I ask how Haxe is connected to Flash? For some reason, the first time I looked at Haxe I got the impression that Haxe is an open-source Flash / Flash successor. (Mostly, I think, because Flash keeps getting mentioned with projects associated with Haxe, like OpenFL and Flambe, and several times in the Haxe Wikipedia article). Clearly Haxe isn't "just" an open Flash, but how is Haxe related to Flash?

Haxe can compile to Flash, which is such a distinguishing feature that people actually use it to write Flash applets:

https://haxe.org/manual/target-flash-getting-started.html

If you have ever tried to write Flash applets the old-fashioned way, it feels more like a scriptable paint program.

Re: OneLang – A tool to help writing code in multiple languages at the same time

#55
post #49

Earlier quoted context omitted.

indeed, I like your project. Negativity of the community can be discouraging. I stopped a project of mine because of a combination of the negativity and from the reality of having to hiring and train people to use my language. Here is _some_ of the negativity I got: https://www.reddit.com/r/programming/comments/6ori0/kira_is_... What excites me about your project is the possibility to write core math or business logi…

My experience is that there is a lot of toxicity on the internet, but also outside of it. I'm disappointed by how toxic, money-obsessed, and ignorant many people are. On the internet, all that is concentrated and delivered straight to your face. I would recommend presenting projects first in person to people before putting them on the internet for debate. Imagine how it must be for the people behind Rust. Yet, people…

I intend to write about this, and this is a reason I am keeping some of my personal projects less open source and invite very few people in that I can mentor.

I think it is a shame that the default tends to be negative comments rather than constructive, but I also recognized that giving into toxic emotions is easy.

Re: OneLang – A tool to help writing code in multiple languages at the same time

#56
post #32

Earlier quoted context omitted.

What are the 12 languages? I already tried: node perl python ruby bash tcsh From the code it is obvious that DOS and php are on the list, but I don't happen to have them. What are the others?

I'm counting different editions of POSIX-compliant shell languages (e.g. ksh93, zsh, bash, [t]csh) as different, as well as massively different editions of DOS (freeDOS, MSDOS). Hence the approximating tilde on "~12". Reasonable minds may consider there to be many fewer, or many more, compatible interpreters. EDIT: There also appear to be multiple compatible JavaScript interpreters--browser V8 (though not Node, oddly…

You should add Whitespace [0] to that :)

[0] https://en.wikipedia.org/wiki/Whitespace_(programming_langua...

Re: OneLang – A tool to help writing code in multiple languages at the same time

#57

It's fun but breaks very quickly. One simple line such as "console.log(Math.random(10));" will fail. Amusing anyhow. Also: please make it python 3. It's been 13 years...

2008 to 2018 is 10 years last I checked.

Alright, my aim is very off. But even 5 years would be enough don't you think ?

Re: OneLang – A tool to help writing code in multiple languages at the same time

#59

Earlier quoted context omitted.

At least I am not lying... ;)

indeed, I like your project. Negativity of the community can be discouraging. I stopped a project of mine because of a combination of the negativity and from the reality of having to hiring and train people to use my language. Here is _some_ of the negativity I got: https://www.reddit.com/r/programming/comments/6ori0/kira_is_... What excites me about your project is the possibility to write core math or business logi…

/r/programming is one of the most pedantic forum I have ever seen but I also see it as a place where programmers flee and shelter from the non-technical bullshit and vent a bit.

If you submit anything there, be prepared for harsh criticism. There is some real value in there, but encouragement and cheerings won't come from there.

Post reply on HN