Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 64 65 [66] 67 68 ... 796

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 903579 times)

DrPoo

  • Bay Watcher
  • In Russia Putin strikes meteor
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #975 on: January 27, 2012, 03:31:11 pm »

Hey guys, i have tried to learn many languages, but the only ones i really catched onto were QBASIC and DreamMaker, now i want to move onto a serious language.
Suggest me a language that dosent require you to fill half of your system with random crap and retarded programs by microsoft(I.E C++) and isnt slow(I.E Python) and dosent have some retarded syntax that makes you puke, wich takes 2 hours to write a hello world in(I.E Java)

I really want to get into C++, but i dont want to waste another half weekend trying to set up some dumb IDE, and i dont want to do useless pointless crap just to have a library set up.

Recommend me any language, but give good reason, a fast one please.

Sorry guys but i am a diva when im frustrated, and right now im frustrated at EVERYTHING
Logged
Would the owner of an ounce of dignity please contact the mall security?

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: if self.isCoder(): post() #Programming Thread
« Reply #976 on: January 27, 2012, 03:42:35 pm »

Only visual studio requires "retarded windows programs" for C++. You can download gcc for windows from several places, such as http://nuwen.net/.

As for Java's problemgivingme, well nothing I've done in awhile. Programs like Minecraft do seem to give me universally lower FPS on Linux than Windows with the same PC, but that may be other factors.

When I was trying to use read from files stored in a fake simulation of a fat file system and combining bytes with bitwise operators it gave me trouble because of how Java treats everything as signed -_- But that was easy to fix and is just Java's general retardation (it's lack of unsigned values annoys me so).

I just tried to create 8 threads with a simplistic test on windows and it worked fine, cba to restart the laptop to try linux so I'll do that later. It may have been an older version of the JRE causing the problems since I did this test awhile ago xD
« Last Edit: January 27, 2012, 04:37:58 pm by MorleyDev »
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #977 on: January 27, 2012, 03:46:30 pm »

DrPoo - um...C++ is probably the fastest but is hard to learn.  You can use Eclipse, Netbeans, code::blocks, etc...I write C++ in a text editor and compile it on the command line.  You have to put in actual effort to learn a more powerful programming language.  All interpreted languages are somewhat slow because they have to be interpreting on the spot.  Compiled languages tend to be faster.  There are tradeoffs with all languages.

MorleyDev - I checked.  Java uses at least both of my dual cores when multithreading and I imagine it will use everything available to it.  I haven't tried the fake filesystem, but I'll look and see if that's just naturally slow...  Minecraft may be something with the JVM.  Try the official Sun/Oracle JRE instead of the OpenJRE.
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #978 on: January 27, 2012, 03:48:48 pm »

Hey guys, i have tried to learn many languages, but the only ones i really catched onto were QBASIC and DreamMaker, now i want to move onto a serious language.
Suggest me a language that dosent require you to fill half of your system with random crap and retarded programs by microsoft(I.E C++) and isnt slow(I.E Python) and dosent have some retarded syntax that makes you puke, wich takes 2 hours to write a hello world in(I.E Java)

I really want to get into C++, but i dont want to waste another half weekend trying to set up some dumb IDE, and i dont want to do useless pointless crap just to have a library set up.

Recommend me any language, but give good reason, a fast one please.

Sorry guys but i am a diva when im frustrated, and right now im frustrated at EVERYTHING

Java in eclipse. I know you said it makes you puke, but a hello world command line program takes about 2 minutes, not 2 hours.

C++ in eclipse.

MorleyDev: yea, I hate that java has no unsigned numbers. You can tell they were planned for by some of the image manipulation libraries, but they just never got put in.
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #979 on: January 27, 2012, 04:08:51 pm »

Hey guys, i have tried to learn many languages, but the only ones i really catched onto were QBASIC and DreamMaker, now i want to move onto a serious language.
Suggest me a language that dosent require you to fill half of your system with random crap and retarded programs by microsoft(I.E C++) and isnt slow(I.E Python) and dosent have some retarded syntax that makes you puke, wich takes 2 hours to write a hello world in(I.E Java)

I really want to get into C++, but i dont want to waste another half weekend trying to set up some dumb IDE, and i dont want to do useless pointless crap just to have a library set up.

Recommend me any language, but give good reason, a fast one please.

Sorry guys but i am a diva when im frustrated, and right now im frustrated at EVERYTHING
How about a Forth? Simple, elegant, slick syntax, FAST, generally doesn't need bulky stuff, runs just about anywhere and completely impossible to understand for the uninitiated. Retro seems to be pretty mature, though it runs on a VM, so for optimal speed you'll need to get the C file and compile it (and if that doesn't cut it and you're on linux there's also an assembly version available)
« Last Edit: January 27, 2012, 04:24:28 pm by Virex »
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #980 on: January 27, 2012, 04:09:26 pm »

Yeah, not having unsigned numbers in Java is annoying.  I implemented them in a class myself once.  The class literally just translated values and displayed them as Strings...stupid, but it worked...

I also forgot to mention that if you want to make Java do something that it simply can't, you can potentially implement it with a JNI.  JNIs, among other things, allow you link in C/C++/Assembly/etc code in Java.  In general, it's a means of getting the JVM to interact with things outside of itself.
Logged

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: if self.isCoder(): post() #Programming Thread
« Reply #981 on: January 27, 2012, 04:18:58 pm »

Simulating it with a class is actually quite clever...very hackish though. The really annoying thing is the reason for the "no unsigned" thing, since it's what I consider endemic of my problems with Java as a whole: In trying to stop letting the programmer make a mistake, it takes away some very useful and powerful tools. To me these features don't so much feel absent as they do painfully carved out.

Still, I've been meaning to try my hand at coding for the Android for more than just hello world, though the fact that my Android phone is the cheapest one I could find does limit what I can play around with xD

The JNI and NDK are interesting. You can do some cool things, like port Doom to Android without rewriting the entire game from the ground up, but damned if it isn't ugly...
« Last Edit: January 27, 2012, 04:25:28 pm by MorleyDev »
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #982 on: January 27, 2012, 04:25:50 pm »

That simulate it with a class is actually quite clever...would be even cleverer if Java has operator overloading but oh well xD...although I have to wonder at the performance of such a class...

The really annoying thing is the reason for the "no unsigned" thing, since it's what I consider endemic of my problems with Java as a whole: In trying to stop letting the programmer make a mistake, it takes away some very useful and powerful tools. To me these features don't so much feel absent as they do painfully carved out.

I agree entirely.  I really like Java.  My number one reason for using other things, usually C++, is that I want to do something that Java just won't let me in it's effort to "help" me.  I hate when Java (or any other language) assume that I'm an idiot and won't let me do something.  Many of these errors really should be warnings or features.
Logged

DrPoo

  • Bay Watcher
  • In Russia Putin strikes meteor
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #983 on: January 27, 2012, 04:28:10 pm »

Hey guys, i have tried to learn many languages, but the only ones i really catched onto were QBASIC and DreamMaker, now i want to move onto a serious language.
Suggest me a language that dosent require you to fill half of your system with random crap and retarded programs by microsoft(I.E C++) and isnt slow(I.E Python) and dosent have some retarded syntax that makes you puke, wich takes 2 hours to write a hello world in(I.E Java)

I really want to get into C++, but i dont want to waste another half weekend trying to set up some dumb IDE, and i dont want to do useless pointless crap just to have a library set up.

Recommend me any language, but give good reason, a fast one please.

Sorry guys but i am a diva when im frustrated, and right now im frustrated at EVERYTHING
How about a Forth? Simple, elegant, slick syntax, FAST, generally doesn't need bulky stuff, runs just about anywhere and completely impossible to understand for the uninitiated. Retro seems to be pretty mature, though it runs on a VM, so for optimal speed you'll need to get the C file and compile it (and if that doesn't cut it and you're on linux there's also an assembly version available)

Its so low level that if the program farted the very bits would smell it.
It looks like some esoteric language.. ah gives me flashback of trying to do a simple mathematical evaluation in Brainfuck.
Logged
Would the owner of an ounce of dignity please contact the mall security?

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #984 on: January 27, 2012, 04:33:51 pm »

Hey guys, i have tried to learn many languages, but the only ones i really catched onto were QBASIC and DreamMaker, now i want to move onto a serious language.
Suggest me a language that dosent require you to fill half of your system with random crap and retarded programs by microsoft(I.E C++) and isnt slow(I.E Python) and dosent have some retarded syntax that makes you puke, wich takes 2 hours to write a hello world in(I.E Java)

I really want to get into C++, but i dont want to waste another half weekend trying to set up some dumb IDE, and i dont want to do useless pointless crap just to have a library set up.

Recommend me any language, but give good reason, a fast one please.

Sorry guys but i am a diva when im frustrated, and right now im frustrated at EVERYTHING
How about a Forth? Simple, elegant, slick syntax, FAST, generally doesn't need bulky stuff, runs just about anywhere and completely impossible to understand for the uninitiated. Retro seems to be pretty mature, though it runs on a VM, so for optimal speed you'll need to get the C file and compile it (and if that doesn't cut it and you're on linux there's also an assembly version available)

Its so low level that if the program farted the very bits would smell it.
It looks like some esoteric language.. ah gives me flashback of trying to do a simple mathematical evaluation in Brainfuck.
Hmm, if that looks too esoteric for you, maybe HLA is better? It's also probably even easier to set up, all you need is the assembler and notepad. Being an assembler it's guaranteed to be fast, small and simple, but it comes with a large set of libraries that you can use to make life easier for you.

An alternative would be Fortran. Emacs comes standard with a fortran mode and IIRC, notepad++ has syntax highlighting for it. You can get a Fortran compiler with MinGW which can be invoked from the command line. The Fortran compiler is larger than most assemblers though and it's bound to be slower, so this may not suit your needs. It is however popular for highly demanding programs because it's optimized for floating point calculations.
« Last Edit: January 27, 2012, 04:41:01 pm by Virex »
Logged

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: if self.isCoder(): post() #Programming Thread
« Reply #985 on: January 27, 2012, 04:35:02 pm »

I did discover something when playing around with bytes. It turns out that if you do:

Code: [Select]
byte b = -123;
int i = b & 0xFF;

i will have the value of 133. This is how you force Java to ignore any casts when going between signed types ^^
Logged

DrPoo

  • Bay Watcher
  • In Russia Putin strikes meteor
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #986 on: January 27, 2012, 04:37:01 pm »

Hey guys, i have tried to learn many languages, but the only ones i really catched onto were QBASIC and DreamMaker, now i want to move onto a serious language.
Suggest me a language that dosent require you to fill half of your system with random crap and retarded programs by microsoft(I.E C++) and isnt slow(I.E Python) and dosent have some retarded syntax that makes you puke, wich takes 2 hours to write a hello world in(I.E Java)

I really want to get into C++, but i dont want to waste another half weekend trying to set up some dumb IDE, and i dont want to do useless pointless crap just to have a library set up.

Recommend me any language, but give good reason, a fast one please.

Sorry guys but i am a diva when im frustrated, and right now im frustrated at EVERYTHING
How about a Forth? Simple, elegant, slick syntax, FAST, generally doesn't need bulky stuff, runs just about anywhere and completely impossible to understand for the uninitiated. Retro seems to be pretty mature, though it runs on a VM, so for optimal speed you'll need to get the C file and compile it (and if that doesn't cut it and you're on linux there's also an assembly version available)

Its so low level that if the program farted the very bits would smell it.
It looks like some esoteric language.. ah gives me flashback of trying to do a simple mathematical evaluation in Brainfuck.
Hmm, if that looks too esoteric for you, maybe HLA is better? It's also probably even easier to set up, all you need is the assembler and notepad.

An alternative would be Fortran. Emacs comes standard with a fortran mode and IIRC, notepad++ has syntax highlighting for it.

Wonderful, assembly, i understand that better :D
But that would mean i would have to spend a week jjust coding a graphics engine..
Wait this sounds cool infact.. im gonna use this shit man!

FUCK YEAH
« Last Edit: January 27, 2012, 04:38:35 pm by DrPoo »
Logged
Would the owner of an ounce of dignity please contact the mall security?

RedKing

  • Bay Watcher
  • hoo hoo motherfucker
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #987 on: January 27, 2012, 04:48:20 pm »

hmmmm....I think I'm going to ease my way into things by grabbing the PDK for webOS, and spend some time just trying to port existing open source apps/games over to webOS. That way I'm not having to build anything from scratch, and I can still tinker with things. Plus, my Touchpad always needs more free apps.

Or is porting more difficult than writing code from scratch, because you don't have a clear idea of what everything does?
Logged

Remember, knowledge is power. The power to make other people feel stupid.
Quote from: Neil DeGrasse Tyson
Science is like an inoculation against charlatans who would have you believe whatever it is they tell you.

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #988 on: January 27, 2012, 04:59:17 pm »

I'm sorry, I'm just bitter because I can;'t use any of the pokemon hacking tools because they are all built in C#. Bastards.
Why can't you use c# programs?

GlyphGryph

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #989 on: January 27, 2012, 05:02:32 pm »

Because Microsoft seems to actively stymie every attempt to get it to work on linux?

And it makes it like impossible to run stuff in Wine.
Logged
Pages: 1 ... 64 65 [66] 67 68 ... 796