create account

RE: Genie - A Python-like Programming Language that targets C and GLib by develcuy

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @l0k1/genie-a-python-like-programming-language-that-targets-c-and-glib

· @develcuy ·
hey mentor! It looks like you are looking for a fast programming language, yet easy to learn and code. Ever touched Lua & LuaJIT? It is easy to earn, fast as hell and still scripting, also mature enough and with a decent community.

-- @develCuy
👍  ,
properties (23)
authordevelcuy
permlinkre-l0k1-genie-a-python-like-programming-language-that-targets-c-and-glib-20170122t025559125z
categorycomputerlanguages
json_metadata{"tags":["computerlanguages"],"users":["develcuy"],"app":"steemit/0.1"}
created2017-01-22 02:55:57
last_update2017-01-22 02:55:57
depth1
children4
last_payout2017-02-21 10:33:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length245
author_reputation4,853,554,441,622
root_title"Genie - A Python-like Programming Language that targets C and GLib"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,309,848
net_rshares58,288,732,617
author_curate_reward""
vote details (2)
@l0k1 ·
I only know of lua as a language used for scripting extensions for some apps which I can't remember what. But I am using Genie because it is practically the end result of the beginning of a grammar spec I wrote years ago. I even included using a colon to specify the type of a variable. Genie is like a nice mix of Pascal and Basic. "serious" language people sneeze at the many educational languages.... even though they are complete...

The other thing I really like that it compiles to C. Compiling to C makes so much sense, why reinvent the assembly code generator when there already is a very good one?
👍  
properties (23)
authorl0k1
permlinkre-develcuy-re-l0k1-genie-a-python-like-programming-language-that-targets-c-and-glib-20170122t041553150z
categorycomputerlanguages
json_metadata{"tags":["computerlanguages"],"app":"steemit/0.1"}
created2017-01-22 04:16:00
last_update2017-01-22 04:16:00
depth2
children3
last_payout2017-02-21 10:33:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length606
author_reputation94,800,257,230,993
root_title"Genie - A Python-like Programming Language that targets C and GLib"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,310,179
net_rshares2,742,973,592
author_curate_reward""
vote details (1)
@greatwolf · (edited)
I have to agree with @develcuy here.

LuaJIT implements some of the most cutting edge state-of-the-art  JIT tracing techniques out there. I got around to benchmarking it against other scripting languages, like Python, Javascript(Node.js), Ruby in addition to some statically compiled languages like C, C++ and Java. I was surprised by the results, it was beating pretty much all of them except C and C++ -- yes, it was even beating V8 engine in NodeJS!

This is especially impressive when you consider LuaJIT is mostly the work of one man, my hats off to Mike Pall.

If you haven't considered Lua before, I definitely recommend checking LuaJIT. It has a nice C API interface that's *much* easier to work with(compare that to Python's C API). It's not *just* a scripting language, it works quite well as a general purpose language too.
👍  
properties (23)
authorgreatwolf
permlinkre-l0k1-re-develcuy-re-l0k1-genie-a-python-like-programming-language-that-targets-c-and-glib-20170625t015334940z
categorycomputerlanguages
json_metadata{"tags":["computerlanguages"],"users":["develcuy"],"app":"steemit/0.1"}
created2017-06-25 01:53:33
last_update2017-06-25 02:11:57
depth3
children0
last_payout2017-07-02 01:53:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length834
author_reputation230,281,878,155
root_title"Genie - A Python-like Programming Language that targets C and GLib"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id5,984,341
net_rshares1,600,346,345
author_curate_reward""
vote details (1)
@macius ·
Reminded me of http://harmful.cat-v.org/software/c++/linus - I learned quite a few langs in the distant past, but C was always... home :) These days it's mostly perl unfortunately. I wish I had time for a side project...
👍  
properties (23)
authormacius
permlinkre-l0k1-re-develcuy-re-l0k1-genie-a-python-like-programming-language-that-targets-c-and-glib-20170125t103313452z
categorycomputerlanguages
json_metadata{"tags":["computerlanguages"],"links":["http://harmful.cat-v.org/software/c++/linus"],"app":"steemit/0.1"}
created2017-01-25 10:33:12
last_update2017-01-25 10:33:12
depth3
children1
last_payout2017-02-21 10:33:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length220
author_reputation2,079,012,665,109
root_title"Genie - A Python-like Programming Language that targets C and GLib"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,337,920
net_rshares40,747,907,770
author_curate_reward""
vote details (1)
@l0k1 ·
This comment by Linus is particularly hilarious. Choose C to keep C++ programmers off the project! *dun dun **TSS!***

> C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C.

Well, everyone has opinions but I think that a guy who knows kernels inside and out probably knows something about quality and compact code... I have always been in the anti++ camp since back in the day.

I remember when Microsoft released their big thing about the design of NT, I read the whole thing. I didn't know a lot about unix at that point but it seemed overly complicated. 

Just because a lot of people do something doesn't mean it's good, and just because some people have made it work despite the bad design of the tools they are using does not affirm the value of the tools. I mostly have focused on procedural and more recently, functional languages up to now, and I haven't really done a lot of work with OOP.

But if you had told me 25 year ago that someone would make a reusable library to implement object primitives and then write a compiler that translates into the same language the library was written in, I would have immediately said 'well, that's the most efficient way to do it.' OOP languages mostly generate the code that implements objects, meaning by its nature it must be using more memory. Sure, for some specific cases, it can be better to minimise library calls or other branches, and for that, it is a good thing if the language allows you to *not* use objects as well. So far every box is being ticked on the Vala/Genie project in my opinion.

GLib is the foundation of a hell of a lot of software now and it's had enough eyes on it that it performs well and stably. It's been in development also for about 20 years, dating back to the inception of the Gimp, from which spawned all the GNOME stuff.

But yes, back to me organising myself a main project... since I have the luxury of the time and some resources and knowhow. I am working on running a witness!
properties (22)
authorl0k1
permlinkre-macius-re-l0k1-re-develcuy-re-l0k1-genie-a-python-like-programming-language-that-targets-c-and-glib-20170125t115929928z
categorycomputerlanguages
json_metadata{"tags":["computerlanguages"],"app":"steemit/0.1"}
created2017-01-25 11:59:30
last_update2017-01-25 11:59:30
depth4
children0
last_payout2017-02-21 10:33:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,252
author_reputation94,800,257,230,993
root_title"Genie - A Python-like Programming Language that targets C and GLib"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,338,441
net_rshares0