r/programming • • Oct 21 '17

Using Java 9 Modularization to Ship Zero-Dependency Native Apps

https://steveperkins.com/using-java-9-modularization-to-ship-zero-dependency-native-apps#.Wes5IMWbUWE.reddit
310 Upvotes

109 comments sorted by

View all comments

Show parent comments

2

u/CyclonusRIP Oct 22 '17

Ok. Now suppose I write a program in C++. It's got a UI with two buttons. If you click one button it does one thing and if I click another button it does something else? Is that a native program?

2

u/demmian Oct 22 '17

Alright, I am curious, where is your argument going?

2

u/CyclonusRIP Oct 22 '17

Events passed down to your program from the operating system are just data structures being passed to your program. You are conditionally executing code based on those data structures, so really I'm just asking the same question about the same program again. Interpreting events from the operating system vs interpreting a scripting language or bytecode isn't really inherently different. It's really a matter of degree rather than two completely different things. To a certain extent any non-trivial program is an interpreter of some sort.

2

u/zanotam Oct 22 '17

So, basically, a Lispy code as data and data as code interpretation? That makes sense and really summarizes the 'feel' I was getting for whether things were 'native' or not was disagreeing with the general consensus ITT I think.