Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Green Threads  (Read 6575 times)
0 Members and 1 Guest are viewing this topic.
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Posted 2014-03-02 17:11:59 »

http://www.java-gaming.org/topics/java-continuations-and-greenthreads/28337/view.html
Download links are dead. Why not throw this on GitHub so it doesn't get lost?

Offline Danny02
« Reply #1 - Posted 2014-03-02 17:22:53 »

also, something I asked myself some time ago, what is the difference to quasar
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #2 - Posted 2014-03-02 20:24:54 »

From a brief glance at the quasar homepage, the lib by MatthiasM and Riven does one thing, green threads, and generally seems to be a lot simpler.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2014-03-02 20:53:54 »

I had to do some emergency maintenance on that server, and due to the underwhelming user base of 1 or 2 souls, I haven't bothered to bring my http server back up with my hobby projects. It's a bit like my MappedObject library... everybody whining that Java doesn't have structs, and upon release I got a buch of responses like this was a solution looking for a problem. Only theagentd gave it a serious whirl, for which I'm grateful, but it put the hours upon hours of work into perspective. I guess JGO is the wrong audience for this kind of tech, but at the same time I am not part of any other online community, so picking the right one might take even more time that I'm not willing to invest. Anyway, Nate, you've got a copy of the code, live the dream!

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Roquen
« Reply #4 - Posted 2014-03-02 22:20:54 »

Hey toss them in my floundering grab-bag repo...50% of views are not from JGO (I'm not going to tell you the numbers though).
Offline jonjava
« Reply #5 - Posted 2014-03-02 22:55:54 »

I think you're right. Which is exactly why you should put it on GitHub.

Offline Cero
« Reply #6 - Posted 2014-03-02 23:46:39 »

@Riven: Most people here are just not hardcore low level programmers. I guess thats why we do Java and not just C++ like most game programmers v_v

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #7 - Posted 2014-03-03 00:17:02 »

Guess what, it was already on GitHub Smiley

https://github.com/riven8192/LibContinuations

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline badlogicgames
« Reply #8 - Posted 2014-03-03 00:22:33 »

I could mavenize this and add it to our Jenkins instance. Same for the mapped buffer stuff. If only those things worked with Android/RoboVm, Stupid Android,

http://www.badlogicgames.com - musings on Android and Java game development
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #9 - Posted 2014-03-03 00:25:02 »

That's just how it goes. Making something cool should be the reward on its own, though of course having others use it is great. There's some minimum effort needed for people to be able to find and use your stuff, and that is basically 1) put it on GitHub and 2) have a single page of documentation saying what it is and telling how it is used.

Glad it's on GitHub! I'd like to contribute docs at some point, in my signature one-page-is-all-you-need format.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #10 - Posted 2014-03-03 00:26:16 »

I'll see what I can do, I'm a pretty busy overlord, these days. Emo


The single-page-of-documentation is basically the JGO thread, so maybe I'll just rip pieces from it, trying to make it coherent.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Roquen
« Reply #11 - Posted 2014-03-07 09:26:06 »

I could mavenize this and add it to our Jenkins instance. Same for the mapped buffer stuff. If only those things worked with Android/RoboVm, Stupid Android,
Is it possible to dynamically create Dalvik code?

@Riven: Most people here are just not hardcore low level programmers. I guess thats why we do Java and not just C++ like most game programmers v_v
The thing is, this kind of cooperative multitasking is much easier to understand for a beginner.  My guess is there are two problems:  One people have no clue why it's interesting and could make their lives easier in certain situations and (guessing here)  the external ASM requirement might be a barrier.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #12 - Posted 2014-03-07 09:39:58 »

Is it possible to dynamically create Dalvik code?

Well, no, but there is no need for it either. There are both JIT and AOT pipelines for both the green-thread and mapped-object project. The issue however is that both rely on sun.misc.Unsafe, which is only partially implemented in Android -- the missing methods are those featuring direct memory access for primitives, which is exactly what you'd need for the mapped-object project. I could rewrite the whole thing to make it possible to restrict support to float-fields, being backed by a float[], but it's a tremendous amount of work.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Roquen
« Reply #13 - Posted 2014-03-07 09:44:17 »

That was a generic question outside of your libraries.  Every so often I get tempted to toss together a compiler framework (so far I've avoid the temptation).
Offline junkdog
« Reply #14 - Posted 2014-03-07 14:04:35 »

I had to do some emergency maintenance on that server, and due to the underwhelming user base of 1 or 2 souls, I haven't bothered to bring my http server back up with my hobby projects. It's a bit like my MappedObject library... everybody whining that Java doesn't have structs, and upon release I got a buch of responses like this was a solution looking for a problem. Only theagentd gave it a serious whirl, for which I'm grateful, but it put the hours upon hours of work into perspective. I guess JGO is the wrong audience for this kind of tech, but at the same time I am not part of any other online community, so picking the right one might take even more time that I'm not willing to invest. Anyway, Nate, you've got a copy of the code, live the dream!

FWIW, I never had a chance to try out the code, only found the thread after it had been removed, but I found it very inspirational from a programming POV.

artemis-odb: bugfixing and performance optimized fork of artemis ES
Online matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #15 - Posted 2014-03-08 12:39:01 »

I had to do some emergency maintenance on that server, and due to the underwhelming user base of 1 or 2 souls, I haven't bothered to bring my http server back up with my hobby projects. It's a bit like my MappedObject library... everybody whining that Java doesn't have structs, and upon release I got a buch of responses like this was a solution looking for a problem. Only theagentd gave it a serious whirl, for which I'm grateful, but it put the hours upon hours of work into perspective. I guess JGO is the wrong audience for this kind of tech, but at the same time I am not part of any other online community, so picking the right one might take even more time that I'm not willing to invest. Anyway, Nate, you've got a copy of the code, live the dream!

Hey, hey! Don't forget that I use it in RuinsOfRevenge! Smiley

I actually stopped working on that project, though there are people that look at the code and some even want to learn from it Smiley

I thought nobody used or took a look at RuinsOfRevenge for a long time, too, but you never actually know so well, when you've got an open-source project. You might have much more users, than you think you have Smiley

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

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #16 - Posted 2014-03-08 15:50:33 »

I cobbled together some docs and made a PR:
https://github.com/riven8192/LibContinuations/pull/1
Docs here until merged:
https://github.com/NathanSweet/LibContinuations/tree/patch-1

Offline Dmap

Junior Newbie


Exp: 4 years



« Reply #17 - Posted 2014-03-13 01:21:53 »

This is an awesome tool, and I would certainly use it if it was available for Android. Is somehow possible to modify it so that it works in android? If it is please tell-me, and I will try to do it. Some tips & advices would be greatly appreciated as well. Thanks
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #18 - Posted 2014-03-19 00:34:50 »

Psst, Riven, if you click Merge on GitHub the project will have docs...

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #19 - Posted 2014-03-19 17:50:22 »

Thanks Nate, I merged your doc. The whole repo is a bit rough around the edges, it needs some serious work. To be honest I merely dumped some projects on GitHub as a backup. Don't hold your breath, it might take a few weeks or months before I get 'round to it.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Pages: [1]
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

Riven (18 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (41 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (60 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!