[QUOTE=T3hGamerDK;35887709]I'm sorry, but how does this display function hooks? I'm not sure what to look for.[/QUOTE]
I hooked print() to a C# function.
[code]
static Value risk_print(Value[] args)
{
Console.WriteLine("Script: " + args[0].ToString());
return new Bool(true);
}
[/code]
[QUOTE=Mr.T;35887903]Obligatory language change by Mr.T
[sp]I changed from Java to C[/sp][/QUOTE]
Why?
[QUOTE=voodooattack;35886756]I was expecting you to turn the device around and spill out all of that liquid for some reason.
[editline]9th May 2012[/editline]
Or maybe shake it and mix the colours together.[/QUOTE]
Shit, how did I not think of that ;o
[QUOTE=i300;35888107]Why?[/QUOTE]Because some random guy told him to do it
[QUOTE=i300;35888107]Why?[/QUOTE]
1. MCUs use C and as I have a MCU I need some knowlage of C to use it.
2. I have more experience in C-oriented languages than I do in Java so I know my way around in those languages.
3. I don't support Oracle, at all because of their shitty tactics e.g sueing other companies. Just look at how they tried to sue Google for using Java.
[QUOTE=icantread49;35888116]Shit, how did I not think of that ;o[/QUOTE]
Save that for Phyzicle II.
[editline]9th May 2012[/editline]
Oh, and I just got my second 20" monitor, can't install it vertically yet though
You are using MCUs? Go for assembly then, it's so much faster
[sp][/joke][/sp]
[QUOTE=voodooattack;35888199]Save that for Phyzicle II.[/QUOTE]
Well, no, it's completely possibly in v1.0.0, I just didn't think of doing it in the video :v:
Oh, let him be. I jumped like crazy from one language to the other and I'm not that bad off now.
[QUOTE=Eudoxia;35888614]Oh, let him be. I jumped like crazy from one language to the other and I'm not that bad off now.[/QUOTE]
His 3rd reason is dumb though, you don't choose your language based on the corporation ethics of the company that created it, unless they limit the usability of the language itself.
[QUOTE=geel9;35886286]I just spent three hours looking for an issue in the wrong place.
The problem?
I did var++, not ++var.
:suicide:[/QUOTE]
2 slow
[QUOTE=Mr.T;35888188]1. MCUs use C and as I have a MCU I need some knowlage of C to use it.
2. I have more experience in C-oriented languages than I do in Java so I know my way around in those languages.
3. I don't support Oracle, at all because of their shitty tactics e.g sueing other companies. Just look at how they tried to sue Google for using Java.[/QUOTE]
What the hell is a C-oriented language?
If you mean C-style than Java is one.
And your third points... oh man.
-snip-
[QUOTE=Eudoxia;35888614]Oh, let him be. I jumped like crazy from one language to the other and I'm not that bad off now.[/QUOTE]
I agree with this. And the only place I've found to settle, is by using the Parrot VM. Mostly because it allows for creation of dynamic languages relatively simple. At least, more simple than doing everything from scratch. And it has basic IO library bindings, namespace, classes and polymorphic container support built right in to the virtual machine. Additionally it has bindings to things like OpenGL and GLUT and other window creation stuff.
It's pretty fast too!
But the ability to create your own language, and quickly download new ones and start writing right ahead using the Parrot "package manager" (plumage) is simply bliss.
tl;dr: Go crazy, try languages and be a man!
[QUOTE=Mr.T;35888963]Well that is what they are doing, they sued Google for using Java without buying a license or some shit.[/QUOTE]
So basically you have no idea and you just heard it off of someone?
[QUOTE=Mr.T;35888963]Well that is what they are doing, they sued Google for using Java without buying a license or some shit.[/QUOTE]
That's not even close.
it is a perfectly valid point, if the company that manages the language does some fucked up shit with the licensing then it is perfectly reasonable to stay away from that language(especially if it sucks anyway)
Oh dear, every time I see Mr. T post..
We've been through:
Java;
C;
C++;
Nuclear powerplant;
Astronomy;
Rocket building;
Immigration to the US;
CAD;
Hosting;
Indie game development;
and last but not least, creating a Swedish political party.
[QUOTE=Eudoxia;35888614]Oh, let him be. I jumped like crazy from one language to the other and I'm not that bad off now.[/QUOTE]
I've started with HTML and since I've done JS, CSS, PHP, AS2, AS3, ASP, Lua, C#, C++, Batch, Python, Java and I really feel good about that, even though I know just a bit from most.
I really like Lua, tho. It just doesn't have that much power without custom libraries.
So yes, I'd say it's better to learn multiple languages than staying focussed on just one.
[IMG]http://dl.dropbox.com/u/33076954/New/pnoise.PNG[/IMG]
Going well so far
[QUOTE=DrLuke;35888680]His 3rd reason is dumb though, you don't choose your language based on the corporation ethics of the company that created it, unless they limit the usability of the language itself.[/QUOTE]
I've been considering the same exact thing. That's exactly the kind of reason that you should be dropping a language. In a perfect world, programmer's use of a language regardless of the ethics of a company would be a great way to show that languages really are free form entities with no rightful "owner" but unfortunately that's not the world that we live in. Assholes think they can control something as basic and inherent as a language and they need to understand that it's asinine. Boycotting it by jumping to any one of the other great languages out there is the best choice we've got.
[QUOTE=Darkwater124;35889370]I've started with HTML and since I've done JS, CSS, PHP, AS2, AS3, ASP, Lua, C#, C++, Batch, Python, Java and I really feel good about that, even though I know just a bit from most.
I really like Lua, tho. It just doesn't have that much power without custom libraries.
So yes, I'd say it's better to learn multiple languages than staying focussed on just one.[/QUOTE]
No language has much, if any, power without "additional libraries". With that, I'm just saying that the only reason OpenGL is available in ANYTHING else than C, is because it's been ported, or the language understands C headers (such as C++).
The good thing about Lua is that you can add more stuff into it with simple lua-powered libraries that it can use, whereas other languages might require more than just a simple language-powered library.
Take NodeJS libraries for instance, they require more than just "#include nodejs.h" to add functionality to it, and advanced functionality cannot be added simply using Javascript code.
[QUOTE=Tyco RC;35889421]I've been considering the same exact thing. That's exactly the kind of reason that you should be dropping a language. In a perfect world, programmer's use of a language regardless of the ethics of a company would be a great way to show that languages really are free form entities with no rightful "owner" but unfortunately that's not the world that we live in. Assholes think they can control something as basic and inherent as a language and they need to understand that it's asinine. Boycotting it by jumping to any one of the other great languages out there is the best choice we've got.[/QUOTE]
I also have the feeling that Java really wants you to use Eclipse as building without it is a pain.
[code]
@echo off
title Java Builder
cd /D %0\..
echo.Compiling source code
javac *.java
if exist *.class goto done
goto error
:done
echo.
echo.Building jar
cd bin
if exist Crawler.old.jar (
del Crawler.old.jar
)
if exist Crawler.jar (
ren Crawler.jar Crawler.old.jar
)
cd ../
jar cfm bin/Crawler.jar .manifest *.class
echo.
echo.Removing class files
if exist *.class del *.class
if not exist Crawler.bat (
echo.
echo.Creating launcher
echo.java -jar bin/Crawler.jar>>Crawler.bat
)
echo.
echo.Lanching application
echo.Press Ctrl-C to quit
Crawler.bat
goto exit
:error
echo.
echo.An error occurred.
pause
:exit
[/code]
It took me about 10 hours to figure out how to do this.
[QUOTE=Icedshot;35889405][IMG]http://dl.dropbox.com/u/33076954/New/pnoise.PNG[/IMG]
Going well so far[/QUOTE]
What method are you using to generate the heights?
I don't know what he uses but the most common method is to use Perlin noise.
[QUOTE=Mr.T;35887903]Obligatory language change by Mr.T
[sp]I changed from Java to C[/sp][/QUOTE]
Jesus christ, I thought you were still in C++?
[QUOTE=Mr.T;35888188]
2. I have more experience in C-oriented languages than I do in Java so I know my way around in those languages.
[/quote]
Hahahaha
[QUOTE=Darkwater124;35889519]I also have the feeling that Java really wants you to use Eclipse as building without it is a pain.
[code]
@echo off
title Java Builder
cd /D %0\..
echo.Compiling source code
javac *.java
if exist *.class goto done
goto error
:done
echo.
echo.Building jar
cd bin
if exist Crawler.old.jar (
del Crawler.old.jar
)
if exist Crawler.jar (
ren Crawler.jar Crawler.old.jar
)
cd ../
jar cfm bin/Crawler.jar .manifest *.class
echo.
echo.Removing class files
if exist *.class del *.class
if not exist Crawler.bat (
echo.
echo.Creating launcher
echo.java -jar bin/Crawler.jar>>Crawler.bat
)
echo.
echo.Lanching application
echo.Press Ctrl-C to quit
Crawler.bat
goto exit
:error
echo.
echo.An error occurred.
pause
:exit
[/code]
It took me about 10 hours to figure out how to do this.[/QUOTE]
Well I mean to be fair a lot of what you have there is just housekeeping. Building java programs without Eclipse isn't really a big deal at all. Plus you can always use stuff like Maven if your project is getting really big without needing eclipse either.
Just be glad you don't have to work with IBM's commercialized version of Eclipse, Rational Application Developer. What a fuckin' nightmare.
[img]http://puu.sh/tN8y[/img]
You don't get cities more varied and exciting than this.
Still working on EvilGeniusCode, almost done with it though. Only remains to get the arrays properly typed and finishing up my class system.
./WMD test.evil:
[code]
Initializing Weapons of Mass Destruction...
Executing file test.evil...
Parsing program...
Program parses as:
plan NoteEverything(array Inp)
every Item in Inp?
print("Note: ", Item, "\n").
result.
repeatedly.
finished.
plan A(integer M, integer N)
is (M == 0)? result: (N + 1). end.
is (M == 1)? result: (N + 2). end.
is (M == 2)? result: ((2 * N) + 3). end.
is (M == 3)? result: ((2 ^ (N + 3)) - 3). end.
is ((M > 0) and (N == 0))? result: A((M - 1), 1). end.
is ((M > 0) and (N > 0))? result: A((M - 1), A(M, (N - 1))). end.
finished.
Arr is of type array.
Arr=[1, 2, 3, 4, 5, ["Hello", "World"]].
NoteEverything(Arr).
Fib is of type integer.
Fib=A(4, 2).
puts(Fib).
Running program.
Cheating and running ruby function print
Getting EGC variable Item for ruby usage, disable this before release.
Note: 1
Cheating and running ruby function puts
Getting EGC variable Fib for ruby usage, disable this before release.
2003529930406846...506072339445587895905719156733 (Had to shorten the result, Ackermann for [4,2] is 2^(65533+3) - 3)
Stopping system.
We hope you enjoyed this bout of world domination.[/code]
Sorry, you need to Log In to post a reply to this thread.