Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Weirdest Practical Programming Language  (Read 5739 times)
0 Members and 1 Guest are viewing this topic.
Offline Regenuluz
« Reply #30 - Posted 2013-03-11 13:42:03 »

Weirdest language I've tried, has got to be Gezel. It's a hardware language, like VDHL, but *no one* uses it.

I had to implement a CPU in it, for a class at uni. ^^

On a side note, why on earth is PHP a weird language? O.o
Online Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #31 - Posted 2013-03-11 14:09:53 »

I have seen, but not used, a computer which implemented SK-combinator calculus in hardware.

Intel released a CPU that does garbage collection in hardware:
http://en.wikipedia.org/wiki/Intel_iAPX_432

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Danny02
« Reply #32 - Posted 2013-03-11 14:10:33 »

you can even run a java app without a main method.
1  
class App{static{println("hello world")}}
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jonjava
« Reply #33 - Posted 2013-03-11 14:13:57 »

I can't wrap my head around Ada and why it's so useful. Tasks and rendezvous make no sense to me <.<

Offline sproingie

JGO Kernel


Medals: 202



« Reply #34 - Posted 2013-03-11 15:36:06 »

FORTH LOVE IF HONK THEN

... truthfully though, I never liked ANS FORTH's syntax for IF. PostScript's syntax is much more elegant.
Offline sproingie

JGO Kernel


Medals: 202



« Reply #35 - Posted 2013-03-11 15:40:28 »

There are two completely different reasons to learn a new language:
1) Because it is (or might be) directly useful to know.
2) Because it teaches you something new about programming.
And it's pretty infrequent that you'll run across one that fulls both of these categories at a given time.

QFT.  But it's usually the case that option 2 eventually has benefits that help you with option 1.  Pure functional idioms for example can help you write better code in imperative languages.  But it's definitely a long-term investment with a delayed payoff.

Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #36 - Posted 2013-03-11 15:41:53 »

There are two completely different reasons to learn a new language:
1) Because it is (or might be) directly useful to know.
2) Because it teaches you something new about programming.
And it's pretty infrequent that you'll run across one that fulls both of these categories at a given time.

QFT.  But it's usually the case that option 2 eventually has benefits that help you with option 1.  Pure functional idioms for example can help you write better code in imperative languages.  But it's definitely a long-term investment with a delayed payoff.

What I constantly hear from functional programmers is, that if you ever start to learn and understand a functional language there is no reason to go back... Grin

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #37 - Posted 2013-03-11 16:22:55 »

On a side note, why on earth is PHP a weird language? O.o
PHP, a fractal of bad design

Cas Smiley

Offline Regenuluz
« Reply #38 - Posted 2013-03-11 17:32:17 »

That was an interesting read.  Some of it I knew already, but that list was looong. xD

And it's not even possible to really argue against it. Made me consider trying out Python or Perl to make web stuff. Tongue

Though, the only thing there that makes it a "weird" language is the fact that there's no clear naming conventions. The rest just make it a crap language. ^_^

Edit:

Didn't know about the query string thing though. Seems insane to add something like that. :/ (And by the link he gives, it seems Perl is doing the same)

Edit edit:
Seems like the Perl version is purely a joke xD
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #39 - Posted 2013-03-11 19:55:13 »

you can even run a java app without a main method.
1  
class App{static{println("hello world")}}

Nope, the JVM will crash complaining that it can't find a main method before it runs any code.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Danny02
« Reply #40 - Posted 2013-03-11 20:54:41 »

you can even run a java app without a main method.
1  
class App{static{println("hello world")}}

Nope, the JVM will crash complaining that it can't find a main method before it runs any code.
it might not work with java 7, because it is no "documented" feature.
there is also a way of using a "feature" of windows, to print to the commandline when compiling a specialy prepared class

only works on windows: name the file A.class
1  
class Con { String hi = "\n\nHello World\n\n"; }


Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #41 - Posted 2013-03-11 22:09:10 »

Though, the only thing there that makes it a "weird" language is the fact that there's no clear naming conventions. The rest just make it a crap language. ^_^

IMHO the weirdness is that there are so many experts in something that's so fundamentally broken.

Offline xsvenson
« Reply #42 - Posted 2013-05-08 00:51:31 »


Best read ever. Thank You, kind sir. Here, an appreciation cookie.
Edit: sry for the necro :/ I'm a late bloomer and reading through old threads.

“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #43 - Posted 2013-05-08 01:38:16 »

Look up LOLCODE on wikipedia, probably the funniest one I've seen, and I've actually used it before.

Offline gimbal

JGO Knight


Medals: 25



« Reply #44 - Posted 2013-05-08 08:20:05 »

Its not a necro when the thread is as young as this, and I missed it and now I got to enjoy that epic read so thanks for that.

I've done some PHP myself in the past, only back then I was simply too inexperienced to put my finger on why it sucked. All I knew was that I was so darned unproductive with it and it was hard to create something interesting that was not slow. That's not to say that I was more productive when I switched to working with servlets & JSPs on Tomcat 4 at the time, but at least I had the sane Java JDK and virtual machine to back me up. Java has been my best friend since, as long as you stay away from applets of course.

I also did some Ruby on Rails which I am marginally impressed with, but it is so flexible it scares me. Any platform that allows you to add methods to a specific object INSTANCE is mad in my opinion. Great for runtime instrumentation in frameworks, but it is available for anyone to do it.
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #45 - Posted 2013-05-08 12:48:23 »

Any platform that allows you to add methods to a specific object INSTANCE is mad in my opinion. Great for runtime instrumentation in frameworks, but it is available for anyone to do it.

Mhm... I want that feature in scala...

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline gouessej
« Reply #46 - Posted 2013-05-08 13:40:34 »

I find Esterel and OCaml very weird, like their creators chose to disturb developers with their syntaxes.

Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #47 - Posted 2013-05-08 18:55:04 »

LOLCODE:

1  
2  
3  
4  
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE


http://en.wikipedia.org/wiki/LOLCODE

Offline Sammidysam
« Reply #48 - Posted 2013-05-10 20:32:17 »

Hmm.  The LOLCODE example makes complete sense to me.
Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #49 - Posted 2013-05-10 20:42:51 »

How 'bout I make that harder for you.

1  
2  
3  
4  
5  
6  
7  
8  
 HAI
 CAN HAS STDIO?
 PLZ OPEN FILE "LOLCATS.TXT"?
     AWSUM THX
         VISIBLE FILE
     O NOES
         INVISIBLE "ERRROR!"
 KTHXBYE


1  
2  
3  
4  
5  
6  
7  
8  
9  
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
   UP VAR!!1
   VISIBLE VAR
   IZ VAR BIGGER THAN 10? KTHX
IM OUTTA YR LOOP
KTHXBYE

Offline Vermeer

JGO Coder


Medals: 16



« Reply #50 - Posted 2013-05-10 21:08:37 »

Wow never seen LOLCODE before.

Strangely it is quite readable, I guess it prints 1 to 10?

Amazing! Smiley
Offline ReBirth
« Reply #51 - Posted 2013-05-10 22:24:02 »

1-11 I think. The >10 check happens after the increment and print.

Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #52 - Posted 2013-05-10 23:23:15 »

It seems like it checks to see if the variable is greater than 10, then it gets out of the method.

Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #53 - Posted 2013-05-11 08:29:01 »

It seems like it checks to see if the variable is greater than 10, then it gets out of the method.

Yes.
KTHX
seems to be like the
break
in java... translated into java that code looks like this (with never ever having known LOLCODE before...):
1  
2  
3  
4  
5  
6  
7  
8  
9  
// HAI
// sth. like #include<stdio.h>
int var = 0;
while (true) {
    var++;
    System.out.println(var);
    if (var > 10) break;
}
// KTHXBYE


Somewhere near that.
The other one is this maybe:
1  
2  
3  
4  
5  
6  
7  
8  
9  
// HAI
// again, #include<stdio.h>
File file = new File("LOLCATS.TXT");
if (file.isReadable()) {
    System.out.println(/* files content actually */ file);
} else {
    System.err.println("ERRROR!");
}
// KTHXBYE

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Sammidysam
« Reply #54 - Posted 2013-05-11 13:46:57 »

I think that HAI maybe just defines that it is a file?  I can't see it being the starting point because in the hello world example it says
CAN HAS STDIO?
which would obviously equate to
#include <stdio.h>
.  So I don't actually know what HAI is anymore.
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #55 - Posted 2013-05-11 13:50:38 »

HAI
I think that HAI maybe just defines that it is a file?

Yeah. I think it's just that the author thought it's more funny.
KTHXBYE

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Phased
« Reply #56 - Posted 2013-05-11 13:55:08 »

HAI
is like the opening of the program, all LOLCODE words represent pretty much there meaning

HAI - hello, like a new coversation
CAN HAS - Can I have
KTHXBYE - Ok i am done now, thanks bye
AWSUM THX - it returned true, in this case, the file "LOLCATS.txt" was found
O NOES - something returned false - in this case, the file "LOLCATS.txt" was invalid
VISIBLE - make this visible for the user
INVISIBLE - like a System.out.println(); in your code for debugging purposes

in other words, try and translate it to engligh
before
1  
2  
3  
4  
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE


translated
1  
2  
3  
4  
new program
import STDIO
display message box "HAI WORLD"
terminate program.
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (39 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (36 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!