Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
run c++ applications with an interpreter instead of compilin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
elypter
n00b
n00b


Joined: 27 Oct 2017
Posts: 2

PostPosted: Fri Oct 27, 2017 5:24 am    Post subject: run c++ applications with an interpreter instead of compilin Reply with quote

wouldn't it be great if you had the option to just run c++ applications with an interpreter instead of compiling on every update or when you just want to use an application once? there actually exists a cüü interpreter named cling. it is used for rapid development but i had the idea that it could be integrated as an option in emerge so that it could pseudo compile applications to binaries that execute the source with cling. while being slower it could have all the advantages of interpreted languages while using the existing code and infrastructure and you could decide based on your personal use case.

what do you think about it?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9532
Location: beyond the rim

PostPosted: Fri Oct 27, 2017 2:56 pm    Post subject: Reply with quote

Not feasable as a generic option. You'd have to adjust ebuilds on a individual basis to support this as this requires a lot more than just replacing a few compiler calls. Most desktop applications probably just can't be used with it in the first place.

And wether the results would be usable at all (regarding both performance and stability) is another question.
Back to top
View user's profile Send private message
nokilli
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 196

PostPosted: Fri Oct 27, 2017 3:34 pm    Post subject: Reply with quote

cling cat is watching you procrastinate
_________________
Today is the first day of the rest of your Gentoo installation.
Back to top
View user's profile Send private message
R0b0t1
Apprentice
Apprentice


Joined: 05 Jun 2008
Posts: 264

PostPosted: Sun Oct 29, 2017 1:32 am    Post subject: Reply with quote

What the interpreter is doing is not really that much less expensive than a full compilation. It just keeps the results in memory and lets you update them in real time.
Back to top
View user's profile Send private message
elypter
n00b
n00b


Joined: 27 Oct 2017
Posts: 2

PostPosted: Sun Nov 19, 2017 7:58 am    Post subject: Reply with quote

it is less intensive if not that many optimizations are applied but most importanty only the code you use is being interpreted
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Nov 19, 2017 9:50 am    Post subject: Reply with quote

elypter,

A make system only compiles the things you change.
A compiler will be faster
Quote:
if not that many optimizations are applied
too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum