Join us on Discord!
You can help CodeWalrus stay online by donating here.

[HP Prime/PC] Source - It's a programming language.

Started by iconmaster, January 21, 2015, 10:24:59 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Dream of Omnimaga

Given that HP PPL intended to be user-friendly, I would go with the first syntax, since it looks more English-like. But of course, if the second syntax is more common among other languages, then go with that one instead. Glad to see pointers in Source. :D
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

#16
hey i wanted to download it, but there seems to be no working link :(
anyway im really impressed with this language! :D

EDIT: i can download it now, though i have java7 due to the stupid 'medium security' removal, so i can't un it :(
EDIT2: i installed jdk 8u40, so i can run it but jre7 is still my standard runtime :)
EDIT3: out of curiosity, i've been looking at the asm, but i don't get why function a() and b() are both compiled to r?()
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

#17
The Github repo is where the latest code is, I think. Also I didn't know you could install two java versions at once? ??? That would be handy for me because of this.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

you can intsall two at once, b only one can be your default runtime
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Ok, but can you easily change your settings so you can swap between both?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

Well to run java 8 programs i now just use the full java 8 path instead of just "java -jar program.jar"
but i only installed the sdk and not the jre, so it won't run web things (not that theyre really used anymore, except i
sometimes like to lurk on openprocessing)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


iconmaster

#21
I fixed the drone.io to give you the old Source. Currently, I'm working on the new Source compiler (you can see it on the "v2" branch on GitHub). Source 2 is even less done than Source 1, so yeah.

Quote from: Cumred_Snektron on March 27, 2015, 10:23:32 AM
EDIT3: out of curiosity, i've been looking at the asm, but i don't get why function a() and b() are both compiled to r?()

That's the HPPL obfuscator at work! The ?s are high-codepage Unicode characters. a and b compiled to functions beginning with an r, but ending with two different characters. You should be seeing characters other than ?s; that's your text viewer not seeing the Unicode encoding properly.

Quote from: DJ Omnimaga on March 28, 2015, 04:27:29 PM
Ok, but can you easily change your settings so you can swap between both?

Yes! I, myself, have something to alter my %JAVA_HOME% when I need to use Java 7.

Snektron

Quote from: iconmaster on March 28, 2015, 07:03:06 PM
I fixed the drone.io to give you the old Source. Currently, I'm working on the new Source compiler (you can see it on the "v2" branch on GitHub). Source 2 is even less done than Source 1, so yeah.

Quote from: Cumred_Snektron on March 27, 2015, 10:23:32 AM
EDIT3: out of curiosity, i've been looking at the asm, but i don't get why function a() and b() are both compiled to r?()

That's the HPPL obfuscator at work! The ?s are high-codepage Unicode characters. a and b compiled to functions beginning with an r, but ending with two different characters. You should be seeing characters other than ?s; that's your text viewer not seeing the Unicode encoding properly.

When i view it in hex it still says '3f' though
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Quote from: iconmaster on March 28, 2015, 07:03:06 PM

Quote from: DJ Omnimaga on March 28, 2015, 04:27:29 PM
Ok, but can you easily change your settings so you can swap between both?

Yes! I, myself, have something to alter my %JAVA_HOME% when I need to use Java 7.
Cool. I might have to Google it, unless it's not something common (in which case, would you mind sharing?)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

%JAVA_HOME% points to the java compiler you use with the "java" console command
i've just noticed i didn't set it up properly too, i don't even have the variable
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Yeah, I just need to find out where to set that stuff up. :P Not a big hurry, though, but this will definitively become one if I ever decide to use Source.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal