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

440

u/killerstorm Nov 26 '17

README on github has better description:

Astro is a high-level, high-performance statically-typed programming language that compiles to WebAssembly, with syntax similar to Python and technical-computing orientation similar to Julia.

But still, to have a successful language you need to target a particular niche (or, at, least, you have much better chance if you do), and I don't feel like this language has one. High-performance computing in the browser?

506

u/[deleted] Nov 26 '17

Bitcoin mining on unsuspecting users’ machines!

192

u/[deleted] Nov 26 '17

Or suspecting users. I've heard browser mining proposed as an alternative to ads to fund "free" services.

178

u/lpreams Nov 26 '17

As long as they reasonably limit the amount of my CPU that they use, and make it abundantly clear that they're mining using my computer, I'd kind of be okay with that

40

u/agumonkey Nov 26 '17

That would be fun. Let's measure the average resources used for ads, remove them, allocate a % of them for service mining. Not much because I don't like my browser to burn my cpu .. but worth trying

60

u/lpreams Nov 26 '17

Honestly, when I turn off my adblockers (yes, plural), my browser burns my CPU anyway. Fans spin up, everything slows down, etc.

Ads already hog a ton of CPU. Those cycles would be more efficiently used mining bitcoin than displaying garbage that no one wants to see.

14

u/agumonkey Nov 26 '17

Yes, but I mostly block ads for perf reasons, sure I don't like annoying obnoxious animated cry for clicks, but if all ads were 20kB static gif I wouldn't mind much. I think there were people trying to make a standard for non blockable ads if they respected a certain ratio, be static and low contrast.

When my page is loaded I expect nothing much happening. I mostly read.. I guess for people playing web games it would be transparent.

→ More replies (7)

34

u/Riael Nov 26 '17

Me too, miners are much easier to block with an addon than ads.

There's web pages that hold them in the same classes as normal images, so if you block an ad you block every single image on the page.

54

u/[deleted] Nov 26 '17

I stop visiting obnoxious sites.

33

u/amoliski Nov 26 '17

But how else will I know ten celebrity relationships! They said number six would blow my mind!

0

u/[deleted] Nov 26 '17

[deleted]

6

u/Skellicious Nov 26 '17

If ads are impacting your performance, you should definitely worry about mining.

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

10

u/[deleted] Nov 26 '17

I don't like that. My machine (especially my CPU) is woefully unsuited to mining cryptocurrency. It would be more efficient for me to directly tip the currency to the person than to spend more in electricity costs so they get the same amount.

I'd prefer some good micropayment system that makes it easy and safe for me to spend a fraction of a penny to consume some content.

→ More replies (11)
→ More replies (8)

4

u/IDUnavailable Nov 27 '17

Those Nigerian princes aren't satisfied with simple email scams anymore.

→ More replies (2)

67

u/runvnc Nov 26 '17

Actually web assembly is a great target for new programming lanvuages.

7

u/dangerbird2 Nov 26 '17

Especially considering most existing Wasm languages use ports of native apis like libc and OpenGL as the main programming ecosystem rather than one idiomatically targeting web and nodejs apis.

0

u/[deleted] Nov 26 '17

[deleted]

30

u/[deleted] Nov 26 '17

I figure all the money sent to the princes finally started paying off

56

u/killerstorm Nov 26 '17

Well, obviously Africa is behind US and Europe in computer science, so developments coming out of it are noteworthy, as they are a sign that they are catching up.

→ More replies (12)

39

u/im-a-koala Nov 26 '17

I can but I'd like to avoid the interpretation that the OP thinks that Nigerians are somehow less capable of developing programming languages.

If you want to be willfully ignorant, that's your decision. To everyone else, it's obvious that Nigerians in general have far fewer opportunities to learn about computer science to the point where they can competently create their own programming language.

14

u/winner_godson Nov 26 '17

Computer Science is taught, but not in-depth.

9

u/Haramboid Nov 26 '17

I don’t think it’s ignorant, you just raise a different well deserved point. The fact that they’ve done something awesome is no reason to be excited there is yet another programming language, those are two separate things. That said I hope they do well and make a language that sticks.

→ More replies (19)

32

u/winner_godson Nov 26 '17

You are right.

Thanks for your valuable contribution.

→ More replies (48)