Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 3 4 [5]
  ignore  |  Print  
  Java Lambdas Finalised!  (Read 11184 times)
0 Members and 1 Guest are viewing this topic.
Offline ra4king

JGO Kernel


Medals: 265
Projects: 2


I'm the King!


« Reply #120 - Posted 2011-12-15 23:31:25 »

T____T

Offline kaffiene

Senior Member


Medals: 2



« Reply #121 - Posted 2011-12-16 01:19:26 »

I'm on the fence with the whole interface thing myself. The more I look at it the more it basically seems like what Java needed was just plain old multiple inheritance and ditching interfaces completely, which appear to be basically a degenerate form of multiple inheritance.

Smalltalk had SI and Interfaces, so it's not like Java chose a deviant way to implement Inheritance.  Most MI implementations have ugly problems.  Mixins or 'Traits' from Scala are one possible (clean) solution.  Straight MI as done in C++ is pretty crap really.
Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #122 - Posted 2011-12-16 02:47:15 »

Mixins look just right from the sound of them.

Cas Smiley

Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline Roquen

JGO Ninja


Medals: 66



« Reply #123 - Posted 2011-12-16 03:33:03 »

Maybe we should ask the prototype based kids how they deal with this?

Wait! 

Oh yeah, you don't needs classes, interfaces, mix-in, etc...nevermind.

Please continue with your regularly scheduled program.
Offline sproingie
« Reply #124 - Posted 2011-12-16 18:53:47 »

Self was a prototype based language, possibly the first one to become at all mainstream (at least as mainstream as Self could get), and it more or less had multiple inheritance.  Specifically, you could mark any number of slots as a parent slot, and it would potentially traverse all of them when receiving a message.  Self in fact coined the term "traits", which were parent slots that would mix in their values when cloning as well as become parent delegates.  Or possibly traits would copy methods instead of delegating them, thus making them true "mixins" -- I can't remember exactly how it worked.

You can always just take it from the proverbial horse's mouth:
http://selflanguage.org/_static/published/organizing-programs.pdf

Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #125 - Posted 2011-12-16 21:25:43 »

A remarkably dry and wordy paper which made little sense to me, mostly I think through lack of being interesting enough to read or even scan properly Smiley

You know what bothers me about prototype stuff like this? It's that it looks remarkably like runtime self modifying code. It seems to be very difficult to look at a program and know exactly what's defined and where.

Cas Smiley

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 439
Projects: 4


Hand over your head.


« Reply #126 - Posted 2011-12-16 21:29:58 »

If done properly, it's not so much self modifying code, it's code that defines the code ahead of it.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #127 - Posted 2011-12-16 21:31:00 »

I think you made my brain cry. I'm going to go and drink GIN and GINGER. Tis the season to be jolly etc.

Cas Smiley

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 439
Projects: 4


Hand over your head.


« Reply #128 - Posted 2011-12-16 21:37:07 »

While you're out, let me uncry your brain.

The difference is that self modifying code changes its behaviour over time, while runtime code generation typically means you compose prototype/objects out of function(ality) that was previously defined/generated - once created, you leave them unchanged. This keeps it manageable IMHO, not quite maintainable, no - manageable.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline sproingie
« Reply #129 - Posted 2011-12-17 01:26:17 »

In the tradition of its Smalltalk parentage (or perhaps we should say its prototype), Self's environment was certainly made to be extremely malleable.  Redefining the behavior of any core object's methods was always just a few clicks away.  I'm always amazed that they were able to optimize this kind of environment, but I suppose that's the rationale for JIT in the first place: you can't assume everything is set in stone, so only optimize what you know has held true so far.

Much of Hotspot's JIT technology was originally written for Self.

And seriously, that paper is 20 pages long including title and footnotes, and it's full of pictures.  What do you need, balloonimals?
Pages: 1 ... 3 4 [5]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (147 views)
2013-05-17 21:29:12

alaslipknot (154 views)
2013-05-16 21:24:48

gouessej (185 views)
2013-05-16 00:53:38

gouessej (179 views)
2013-05-16 00:17:58

theagentd (189 views)
2013-05-15 15:01:13

theagentd (174 views)
2013-05-15 15:00:54

StreetDoggy (217 views)
2013-05-14 15:56:26

kutucuk (242 views)
2013-05-12 17:10:36

kutucuk (240 views)
2013-05-12 15:36:09

UnluckyDevil (246 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.132 seconds with 21 queries.