greptilian logo

IRC log for #friendlyjava, 2019-08-06

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
04:45 nanoz joined ##friendlyjava
04:49 Jantz_ joined ##friendlyjava
11:07 Jantz joined ##friendlyjava
22:24 MadGypsie1119 joined ##friendlyjava
22:24 MadGypsie1119 What does it mean to be at source level?
22:36 aditsu MadGypsie1119: what's the context?
22:37 MadGypsie1119 I'm a beginner. I recently learnt that java is platform-independent both at the source and binary level
22:37 MadGypsie1119 Don't understand what that means
22:38 aditsu it means you can use both the source code and compiled code on different platforms
22:41 MadGypsie1119 what does source code referred to
22:42 MadGypsie1119 *refer
22:42 pdurbin To use the source code you have to compile it.
22:42 aditsu programs that people write, like what they type on the keyboard, that's source code
22:43 aditsu it is translated to a binary code for the computer to execute
22:44 pdurbin Well, Java bytecode.
22:45 aditsu yes, in the case of java
22:45 aditsu it's still a binary code
22:46 MadGypsie1119 thank u
22:52 pdurbin But Java bytecode isn't 1's and 0's. It's not machine code.
22:53 aditsu um.. it's quite similar to machine code as far as I know; it has more structure to it, but instructions are still encoded with 1s and 0s aren't they?
22:55 pdurbin I don't know.
22:56 aditsu you can open a class file with a hex editor
22:57 aditsu also see https://en.wikipedia.org/wiki/Java_bytecode_instruction_listings
22:57 aditsu third column has 1s and 0s in all their glory :p
22:59 MadGypsie1119 what exactly is bytecode?
23:00 MadGypsie1119 is it just binary code?
23:00 aditsu it's a special kind of binary code that encodes instructions for the java virtual machine to execute
23:01 aditsu or more generally by some interpreter or virtual machine, but here we're talking about java
23:15 MadGypsie1119 what's the purpose of an extra layer of bytecode interperter?
23:16 aditsu platform independence, mainly
23:44 aditsu joined ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode