interpreted-language

Fast interpreted language for memory constrained microcontroller

☆樱花仙子☆ 提交于 2019-12-13 13:42:12
问题 I'm looking for a fast interpreted language for a microcontroller. The requirements are: should be fast (not crucial but would be nice) should be light on data memory (small overhead <8KB, excludes program variable space) preferably would be small in program size and the language would be compact preferably, human readable (for example, BASIC) Thanks! 回答1: Some AVR interpreters: http://www.cqham.ru/tbcgroup/index_eng.htm http://www.jcwolfram.de/projekte/avr/chipbasic2/main.php http://www

Why in interpreted languages the # usually introduces a comment?

南楼画角 提交于 2019-12-12 18:09:34
问题 Why in interpreted languages the # normally introduces a comment? This question was asked in an exam on Shell Programming but I don't find any hint on why it's the #. Any ideas? 回答1: make uses the #-comment construct; and sh, one the first shells, uses the same #-comment. The writers of later shells -- csh, ksh, bash, jsh, and more -- understood that it would be a burden on users if each were to have its own comment convention, particularly since all of these shell scripts can sort-of run

Is it possible to make a Java executable?

流过昼夜 提交于 2019-12-10 14:57:35
问题 To be clear, by executable I do not mean literal bytes ready for the processor. For example a bash script, which is interpreted and not executable, becomes executable when a shebang is added to the top that specifies the script should be run by /bin/bash or /bin/sh or whatever program will be interpreting it. I was wondering if it's possible to do with Java, which is not technically a scripting language but is definitely not executable. It seems like Java would be hard because the user doesn

Speed Comparisons - Procedural vs. OO in interpreted languages

不打扰是莪最后的温柔 提交于 2019-12-10 00:48:18
问题 In interpreted programming languages, such as PHP and JavaScript, what are the repercussions of going with an Object Oriented approach over a Procedural approach? Specifically what I am looking for is a checklist of things to consider when creating a web application and choosing between Procedural and Object Oriented approaches, to optimize not only for speed, but maintainability as well. Cited research and test cases would be helpful as well if you know of any articles exploring this further

Simple Interpreted Language Design & Implementation [closed]

喜你入骨 提交于 2019-12-10 00:10:46
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I need some resources for implementing a simple virtual machine and interpreted language. Something that is pratical is most useful. I have read the Virtual Machine Implementation book and found that it is quite old and doesn't represent the vms I see today. Also if someone know

Is Bash an interpreted language?

冷暖自知 提交于 2019-12-09 08:58:51
问题 From what I've read so far, bash seems to fit the defintion of an interpreted language: it is not compiled into a lower format every statement ends up calling a subroutine / set of subroutines already translated into machine code (i.e. echo foo calls a precompiled executable) the interpreter itself, bash , has already been compiled However, I could not find a reference to bash on Wikipedia's page for interpreted languages, or by extensive searches on Google. I've also found a page on

What converts vbscript to machine code?

自闭症网瘾萝莉.ら 提交于 2019-12-08 00:51:37
问题 Compiled languages like C# and java, have just in time compilers, that convert them (from byte code) into machine code (0s and 1s). How does an interpreted language like VBScript get converted into machine code? Is it done by the operating system? 回答1: They don't necessarily get converted to machine code (and often don't). The interpreter for that program runs the appropriate actions according to what the program requires. Some interpreters might generate machine code (using JIT compilers),

Speed Comparisons - Procedural vs. OO in interpreted languages

人盡茶涼 提交于 2019-12-04 23:59:45
In interpreted programming languages, such as PHP and JavaScript, what are the repercussions of going with an Object Oriented approach over a Procedural approach? Specifically what I am looking for is a checklist of things to consider when creating a web application and choosing between Procedural and Object Oriented approaches, to optimize not only for speed, but maintainability as well. Cited research and test cases would be helpful as well if you know of any articles exploring this further. Bottom line: how big (if any) is the performance hit really, when going with OO vs. Procedural in an

Interpreted vs. Compiled Languages for Web Sites (PHP, ASP, Perl, Python, etc.)

大城市里の小女人 提交于 2019-12-04 12:25:28
问题 I build database-driven web sites. Previously I have used Perl or PHP with MySQL. Now I am starting a big new project, and I want to do it in the way that will result in the most responsive possible site . I have seen several pages here where questions about how to optimize PHP are criticized with various versions of "it's not worth going to great lengths to optimize PHP since it's an interpreted language and it won't make that much difference". I have also heard various discussions

Can Javascript be considered a interpreted language when using Google Chrome (V8)?

北城以北 提交于 2019-12-04 03:22:44
问题 I was reading this excellent article on V8, Google's Javascript engine: https://developers.google.com/v8/design#mach_code. At one point, they say that Javascript is compiled directly into machine language, without any bytecode or an interpreter. To quote: V8 compiles JavaScript source code directly into machine code when it is first executed. There are no intermediate byte codes, no interpreter. So, why is Javascript still listed along with the "scripting" and "interpreted" languages, when it