Sickan
|
 |
«
Reply #120 - Posted
2012-11-13 20:18:55 » |
|
I don't see any problem in writing a compiler that compiles some BASIC dialect to Java bytecode, so I guess it's a demand question. Cheers! 
|
|
|
|
actual
|
 |
«
Reply #121 - Posted
2012-11-13 21:06:47 » |
|
I don't see any problem in writing a compiler that compiles some BASIC dialect to Java bytecode, so I guess it's a demand question. Cheers!  Something similar has been done. Baysick is a DSL in Scala(which compiles to Java bytecode) that allows you to write in BASIC (minus a bit of boilerplate at the top and bottom. Below is an example from the page. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| object Lunar extends Baysick { def main(args:Array[String]) = { 10 PRINT "Welcome to Baysick Lunar Lander v0.9" 20 LET ('dist := 100) 30 LET ('v := 1) 40 LET ('fuel := 1000) 50 LET ('mass := 1000)
60 PRINT "You are drifting towards the moon."
70 PRINT "You must decide how much fuel to burn." 80 PRINT "To accelerate enter a positive number" 90 PRINT "To decelerate a negative"
100 PRINT "Distance " % 'dist % "km, " % "Velocity " % 'v % "km/s, " % "Fuel " % 'fuel 110 INPUT 'burn 120 IF ABS('burn) <= 'fuel THEN 150 130 PRINT "You don't have that much fuel"
140 GOTO 100 150 LET ('v := 'v + 'burn * 10 / ('fuel + 'mass)) 160 LET ('fuel := 'fuel - ABS('burn)) 170 LET ('dist := 'dist - 'v) 180 IF 'dist > 0 THEN 100 190 PRINT "You have hit the surface" 200 IF 'v < 3 THEN 240 210 PRINT "Hit surface too fast (" % 'v % ")km/s" 220 PRINT "You Crashed!"
230 GOTO 250 240 PRINT "Well done"
250 END
RUN } } |
|
|
|
|
matheus23
|
 |
«
Reply #122 - Posted
2012-11-13 21:14:07 » |
|
[snip because of length]
I LOVE MACROS!
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Sickan
|
 |
«
Reply #123 - Posted
2012-11-13 21:34:49 » |
|
Oh, the gotos, they are lovely.
|
|
|
|
sproingie
|
 |
«
Reply #124 - Posted
2012-11-13 22:22:49 » |
|
[snip because of length]
I LOVE MACROS! Looks like it predates macros -- it's a straight up old-school scala DSL. Scala macros can't create new syntax anyway, they have to work from already parsed expressions.
|
|
|
|
ReBirth
|
 |
«
Reply #125 - Posted
2012-11-14 01:58:45 » |
|
Oh, the gotos, they are lovely.
Yeah painful scroll. Lovely.
|
|
|
|
philfrei
|
 |
«
Reply #126 - Posted
2012-11-14 03:45:11 » |
|
55 here.  At some point the whole age thing just becomes funny. What can I say, the alternative is what? The quote about passage of time that Riven cited a while back, it is very much like what I recall reading in William James "Principles of Psychology" -- a great, readable, classic text from the beginning of the 20th century. Psychology, especially cognitive psychology, took a huge step backwards when Freud came on the scene shortly after that. Yes, I programmed in FORTH. It was fun. I think there was a chart with the oldest listed as 53. Someone is going to have to revise it. Ah, maybe I didn't fill out my age in the member form and that's why it didn't show up.
|
|
|
|
Nate
|
 |
«
Reply #127 - Posted
2012-11-14 05:22:34 » |
|
BASIC is the best language, ever.
I started with QBasic at 11 years old. Years later, my crowning achievement was a 3Dish fighting game. I made a few other terrible games, but learned a lot.
|
|
|
|
Sickan
|
 |
«
Reply #128 - Posted
2012-11-14 05:57:14 » |
|
Oh, the gotos, they are lovely.
Yeah painful scroll. Lovely. Scrolling up and down sure beats opening new classes every third minute to edit or view a method.
|
|
|
|
ReBirth
|
 |
«
Reply #129 - Posted
2012-11-14 06:13:48 » |
|
If your class's methods have comment, I just hover or F2.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Corvid
Junior Devvie   Medals: 2Projects: 2
/*do not read this code sober*/
|
 |
«
Reply #130 - Posted
2012-11-14 16:31:16 » |
|
Hello, first post here. I'm glad to see I'm not the only one in their thirties! (I just turned 30). I can relate to the OP since I work in a school, and the other day a 13 year old asked me to help him out with his 3D GTA clone. Kind of gave me a shock..
On the subject of BASIC, I started when I was 7 years old on the Spectrum 48k, writing text adventures and at one point I even attempted to make Desert Strike using redrawn font characters and loud beeps for explosions.. it wasn't particularly good.
I really cut my teeth on the Amiga where I learned Amos and then C++, made a few little 2 player competitive games and an RTS. Amos was a great thing for getting people into coding, but it also gave birth to a lot of utter nonsense!
Learned Java at Uni and did a side scrolling shooter for my dissertation. Started working on a few OpenGL games when I left uni, but somehow the game coding interest just died away and I ended up spending my time getting experience of life itself. Got a job. Travelled. Climbed a lot of mountains, met girls, drank a lot of whisky. Then realised I was 30.
I ended up downloading an amiga emulator and playing some old games the other night.. which actually led me here since I fancied taking part in this year's 4K competition. Wonder if it'll rekindle the flame?
|
|
|
|
Roquen
|
 |
«
Reply #131 - Posted
2012-11-14 16:33:49 » |
|
FORTH is awesome.
|
|
|
|
sproingie
|
 |
«
Reply #132 - Posted
2012-11-14 19:20:07 » |
|
FORTH LOVE IF HONK THEN
(but actually I've always liked the PostScript dialect more than ANS)
|
|
|
|
Cero
|
 |
«
Reply #133 - Posted
2012-11-14 22:44:39 » |
|
BASIC is the best language, ever.
Years later, my crowning achievement was a 3Dish fighting game. I made a few other terrible games, but learned a lot. Ah yes I remember you are a Street Fighter player n stuff; I always loved fighters too, but when you are eventually theoretically able to program those, you realize that its like 1000 sprites per character in good 2D fighters and 3d is just different work even street fighter 2 has a lot of sprites So I tried some stickman fighters too. That knowledge just lets me appreciate fighter all the much more, the amount of art and code in those games, fast paced balanced action... its just beautiful - what other game genre requires skilled players to do something at one certain frame.
|
|
|
|
masteryoom
|
 |
«
Reply #134 - Posted
2012-11-29 08:33:53 » |
|
I drink eye drops for breakfast.
 EDIT: Riven, you should really put a laughing emoticon in the forum  .
|
|
|
|
ra4king
|
 |
«
Reply #135 - Posted
2012-11-29 21:28:43 » |
|
I only drink Coke, because I'm cool.  Coca Cola can reduce a man’s sperm count by up to 30%. Heh....at least it's not 100%  So a 29.99999% to 30.0% lower sperm fatality rate when ejaculating then? Every sperm is sacred, you know! Hahahaha I can't believe I didn't notice that Monty Python joke: http://www.youtube.com/v/fUspLVStPbk?version=3&hl=en_US&start=
|
|
|
|
cheatsguy
Junior Devvie   Medals: 3
Gamer turned Pixel Artist turned Programmer
|
 |
«
Reply #136 - Posted
2012-12-06 12:04:30 » |
|
16, but I've been into programming since I was 10 (starting ith some basic Lua) and I've been working with java for a little more than a year. I still have much to be desired to learn though :/
|
Busy between school, work, life, games, programming and general screwing around. If you'd like some pixel art for your game, send me a PM, i'll see what I can do. Current project: http://elementalwarblog.wordpress.com/
|
|
|
BoBear2681
|
 |
«
Reply #137 - Posted
2012-12-06 14:00:20 » |
|
If your class's methods have comment, I just hover or F2.
But that's an IDE feature, not a language feature. Someone could write an IDE-ish app for Basic (no doubt one actually exists) that has similar features for Basic. Hover over a goto for preview of the code there, F3 to navigate there, etc. I do feel that layers upon layers of abstraction, and projects with 50k classes just for the sake of modularization can be considered the Java equivalent of "spaghetti code." Maybe not quite as bad as huge blocks of code with gotos, but similar in nature at least.
|
|
|
|
luisoft
|
 |
«
Reply #138 - Posted
2012-12-06 16:19:23 » |
|
37 here! Started with a very old MSX Computer (Z80 Processor) with BASIC for MSX and also Z80 machine code! Good old times that will never come back again 
|
|
|
|
matheus23
|
 |
«
Reply #139 - Posted
2012-12-06 16:52:45 » |
|
37 here! Started with a very old MSX Computer (Z80 Processor) with BASIC for MSX and also Z80 machine code! Good old times that will never come back again  Either get you an TI-83+ Computer (Z80 CPU) or a gameboy (Z80 as well) 
|
|
|
|
trvcic
Senior Newbie 
|
 |
«
Reply #140 - Posted
2012-12-12 04:51:04 » |
|
I'm 18 and I loved java from the 1st "hello world"! also, why did this tread become about drugs and alcohol? not judging, just curious.
|
while(true) { be awesome; }
|
|
|
Ultroman
|
 |
«
Reply #141 - Posted
2012-12-12 14:27:18 » |
|
I'm 18 and I loved java from the 1st "hello world"! also, why did this tread become about drugs and alcohol? not judging, just curious.
That was my fault. Sorry. I was just pointing out, that I liked the fact that so many young people were concentrating on developing their skills, instead of binge-drinking and snorting crap. Then the guys assured me they were all still doing that...
|
- Jonas
|
|
|
matheus23
|
 |
«
Reply #142 - Posted
2012-12-12 14:58:51 » |
|
I'm 18 and I loved java from the 1st "hello world"! also, why did this tread become about drugs and alcohol? not judging, just curious.
That was my fault. Sorry. I was just pointing out, that I liked the fact that so many young people were concentrating on developing their skills, instead of binge-drinking and snorting crap. Then the guys assured me they were all still doing that... I guess we're not as bad (or cracy? Can't find the word...) as you were. Not at all... If we were, we wouldn't sit here 
|
|
|
|
tyeeeee1
|
 |
«
Reply #143 - Posted
2012-12-13 01:14:27 » |
|
I'm 16, gonna be 17 on the 17th.
|
|
|
|
|