View previous topic :: View next topic |
Author |
Message |
elypter n00b
Joined: 27 Oct 2017 Posts: 2
|
Posted: Fri Oct 27, 2017 5:24 am Post subject: run c++ applications with an interpreter instead of compilin |
|
|
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 |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9532 Location: beyond the rim
|
Posted: Fri Oct 27, 2017 2:56 pm Post subject: |
|
|
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 |
|
|
nokilli Apprentice
Joined: 25 Feb 2004 Posts: 196
|
Posted: Fri Oct 27, 2017 3:34 pm Post subject: |
|
|
cling cat is watching you procrastinate _________________ Today is the first day of the rest of your Gentoo installation. |
|
Back to top |
|
|
R0b0t1 Apprentice
Joined: 05 Jun 2008 Posts: 264
|
Posted: Sun Oct 29, 2017 1:32 am Post subject: |
|
|
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 |
|
|
elypter n00b
Joined: 27 Oct 2017 Posts: 2
|
Posted: Sun Nov 19, 2017 7:58 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Nov 19, 2017 9:50 am Post subject: |
|
|
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 |
|
|
|