Live data from Hacker News

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

ide.onelang.io

41–50 of 69 posts

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

#41

Earlier quoted context omitted.

Do you have an example on how to use Haxe for a cross platform API client? Eg. Develop once, use in 12 different programming languages? The first requirement seems to be a go ( https://api.haxe.org/haxe/Http.html ) but i'm not sure of other variables for implementing this Other sources: - https://github.com/tbrosman/haxe-rest-client - https://github.com/tnwinc/rehx

Not sure if it helps, but have a look at Swagger/OpenAPI if you haven't already.

Good call, installed it in the past for trying the exact same thing :)

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

#43

It seems like a really strange choice for the "source" language to be JS - a language without any real static typing capability (even with TS). The most limited & basic kinds of static analysis are technically possible, but why not just start with an entirely static language and translate from that to dynamic languages? Would seem much simpler...

> It seems like a really strange choice for the "source" language to be JS

I can't speak for the author, but I can think of several reasons I might choose JS:

1. Almost everyone working on the web knows it, so not knowing the source language won't be a roadblock right away.

2. Precisely because of the issues you mentioned, JS is a lot easier to translate with perfect (or close to perfect) fidelity. If the source were something like Haskell, every translation would be very lossy.

3. JS has no boilerplate, like setting up a class or something. You can just type statements.

4. OneLang itself is written in TS, which means working with JS as the source might be easier than, say, C#.

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

#45
Opening the site on my 3GB RAM laptop froze it - could you please not pile web frameworks atop one another? Being able to translate between languages in all cases is intrinsically impossible because of the halting problem; that this works is a testament to how restrictive and bland the Von Neumann language paradigm is, seeing as these languages aren't terribly different and all have ridiculously long specs. The closest you could get to doing this for most languages would be to specify sets of composable, first-class macros in a purpose-written Lisp (almost certainly a Scheme derivative) and write FFIs to port in standard libraries around the core languages made from macros.

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

#48

Earlier quoted context omitted.

Wow, sounds real mature.

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 logic once and then expose to multiple environments.

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

#49

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…

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 from the team regularly show up, are polite and nice and are open to arguments in spite of all the negativity they surely face. I think it is easy to become bitter, suspicious, and unfriendly when faced with social pressure, but they seem to continuously find the arguments in even not so polite comments and patiently give good insights and own arguments.

Post reply on HN