Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
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  
  Test  (Read 3237 times)
0 Members and 1 Guest are viewing this topic.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Posted 2012-07-22 23:57:51 »

Tosti

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2012-07-23 00:00:55 »

with cheese Angry

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #2 - Posted 2012-07-23 00:04:12 »

better than mayonese.

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

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2012-07-23 00:04:51 »

(I'm testing the new push-notifications)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #4 - Posted 2012-07-23 00:13:34 »

good luck with that. whatever it is!

Offline Cero
« Reply #5 - Posted 2012-07-23 01:50:43 »


Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #6 - Posted 2012-07-23 02:01:16 »

mkay, push notifications work.

there is a heartbeat every 30s, within 1 http response, and you get notified of a new topic in about 1 sec, it also tells you when there is a new message in the topic you're watching.

I enabled this for guests too, and the server-load actually went down (java impl)

please try to break it

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2012-07-23 02:45:34 »

Hasn't JGO always had push notifications?

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #8 - Posted 2012-07-23 02:49:26 »

Hasn't JGO always had push notifications?
it had polling for ~10 concurrent users (logged in members), which was grinding the server to a halt...

Now all ~100-200 users (members & guests) are connected and waiting for notifications, and the server hardly notices.

PHP vs Java baby! Yawn

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #9 - Posted 2012-07-23 03:26:28 »

Wow! Why was PHP causing such a slowdown?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #10 - Posted 2012-07-23 04:37:48 »

I imagine because it is push vs poll.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #11 - Posted 2012-07-23 04:42:12 »

I imagine because it is push vs poll.
It's because an Apache+PHP+SMF HTTP request takes about 75-200ms of CPU time, while a Java HTTP request takes about 0.1ms of CPU time.

I could go into detail about how awesome my custom webserver is, but I'll leave that for another day.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline jonjava
« Reply #12 - Posted 2012-07-23 07:00:15 »

*Wants to take a look at Riven's java webserver*

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #13 - Posted 2012-07-23 09:20:36 »

*Wants to take a look at Riven's java webserver*


The guts of it: (it's a mess, too)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline _Al3x

Senior Member


Medals: 7


Indie Games FTW!


« Reply #14 - Posted 2012-07-23 09:31:47 »

You're awesome Riven. Can't say anything else here so... Smiley


By the way, can you add a download button for the integrated pastebin? Smiley
Thanks!

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #15 - Posted 2012-07-23 09:36:19 »

Nope. It won't compile anyway, it lacks a few dozen utility classes. Also, it's not meant to be usable, which is both enforced by the pastebin-release and the code quality.

(You should be happy that I added code-block-separators in the pastebin persecutioncomplex)



You can see I wrap Input/OutputStreams which is surprisingly powerful, expecially UnclosableOutputStream persecutioncomplex because all kinds of utility-methods close the stream at the end of their run, or other classes like GZipOutputStream actually require a close() to finalize the stream, but you really don't want to close the underlying tcp-connection... hence the Unclosables.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline _Al3x

Senior Member


Medals: 7


Indie Games FTW!


« Reply #16 - Posted 2012-07-23 09:42:02 »

You got me wrong ^_^
I don't want to download JUST your code, but every pastebin shared here. A simple download button that leaves a pastebin_[some_numbers_or_name].text in my desktop/download folder will be greatly appreciated Smiley

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #17 - Posted 2012-07-23 09:44:17 »

But, but, that's even more of a hassle!


Just copy/paste from the textarea, mkay?

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Sickan

Senior Member


Medals: 9



« Reply #18 - Posted 2012-07-23 09:49:34 »

But, but, that's even more of a hassle!


Just copy/paste from the textarea, mkay?
My answer to that was summed up nicely in your first sentence.  Roll Eyes
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #19 - Posted 2012-07-23 09:56:36 »

It's not my role to make your life any easier. Further, it's not my intension to make my life any easier either. Last saturday I visited some uncle I hadn't seen in three years and I basically told him the same. Later we had a wonderful dinner and I complimented him on his cooking. I lost my train of thought but I mask it by looking confident.



Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline _Al3x

Senior Member


Medals: 7


Indie Games FTW!


« Reply #20 - Posted 2012-07-23 10:02:57 »

Just copy/paste from the textarea, mkay?



It's not my role to make your life any easier.

Don't get me wrong, I appreciate you and your work here a lot! <3
Sorry if I bother you in any way Sad
I just though it would be nice, since it's in pastebin.com that's all Smiley

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #21 - Posted 2012-07-23 10:04:14 »

Aw, don't quote me out of context! It was a joke.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline _Al3x

Senior Member


Medals: 7


Indie Games FTW!


« Reply #22 - Posted 2012-07-23 10:13:20 »


I didn't mean to and don't see how or where I did it, omg I should run embarrassed under my bed now!  Lips Sealed
[size=1pt]Please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me[/size]

PS: I like jokes Smiley

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #23 - Posted 2012-07-23 20:19:51 »

Can't. Stop. Laughing. Grin

Offline Rorkien
« Reply #24 - Posted 2012-07-23 21:17:37 »

JGO

The only place where you can discuss about Gastronomy, Mortal Kombat, Webservers, Notepads and Animu...

...in a single thread.
Offline ReBirth
« Reply #25 - Posted 2012-07-24 02:59:11 »

And meme, rock star, pastebin, OS,...

Pages: [1]
  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.

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

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

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

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

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

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

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

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38
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!