a*****t 发帖数: 30 | 1 有没有人知道今年google会不会办Google code jam的比赛了? |
f**y 发帖数: 138 | 2 I thought you guys are talking about 'GNU compiler for java'.
Well, speaking of the compiler, has anyone tried to compile your java
code into native binary? Do you mind sharing your experience?
I tried the gcj together with openjdk and gave up later because
the gcj doesn't recognize sun.misc.Signal* classes which are vital
to my code. I thought about installing the signal handler in jni and
call back to java methods from the handler. But couldn't find a way
to retrieve the java methods from the |
g*****g 发帖数: 34805 | 3 JNI is your friend, and if you feel JNI is too hard for you,
maybe webservice will do.
【在 f**y 的大作中提到】 : I thought you guys are talking about 'GNU compiler for java'. : Well, speaking of the compiler, has anyone tried to compile your java : code into native binary? Do you mind sharing your experience? : I tried the gcj together with openjdk and gave up later because : the gcj doesn't recognize sun.misc.Signal* classes which are vital : to my code. I thought about installing the signal handler in jni and : call back to java methods from the handler. But couldn't find a way : to retrieve the java methods from the
|
f**y 发帖数: 138 | 4 Believe it or not signal handling is not that easy. If all I want are
some web applications, certainly I don't need to worry about signal
handling. I have seen lots of applications with broken signal
handling particularly in C/C++ where a common mistake is to call
syslog in signal handler.
A way I could implement the signal handling in my jni is to install
a simple handler. All the handler doing upon receiving signals is to
set global flags. The java code then calls the jni repeatedly to
poll th
【在 g*****g 的大作中提到】 : JNI is your friend, and if you feel JNI is too hard for you, : maybe webservice will do.
|
g*****g 发帖数: 34805 | 5 Those Signal classes are not part of official Java release. But you can
get the source code and change it the way you need it, just be careful
on licensing.
【在 f**y 的大作中提到】 : Believe it or not signal handling is not that easy. If all I want are : some web applications, certainly I don't need to worry about signal : handling. I have seen lots of applications with broken signal : handling particularly in C/C++ where a common mistake is to call : syslog in signal handler. : A way I could implement the signal handling in my jni is to install : a simple handler. All the handler doing upon receiving signals is to : set global flags. The java code then calls the jni repeatedly to : poll th
|
f**y 发帖数: 138 | 6 sun.misc.Signal* classes source code are already GPLed in opensdk. The
problem is they are not compatible with gcj. It either can't find them
or spit out "internal compiler error" if the rt.jar file containing the
classes is added to the classpath. |
a*****l 发帖数: 4 | 7 应该会吧,估计是6月底到7月初才开赛。
昨天刚刚结束了ACM/ICPC,六月有TopCoder的on-site final,所以应该要等到
Topcoder的决赛完了才开始。
【在 a*****t 的大作中提到】 : 有没有人知道今年google会不会办Google code jam的比赛了?
|
T*****9 发帖数: 2484 | 8 jni is too difficult ...
【在 g*****g 的大作中提到】 : JNI is your friend, and if you feel JNI is too hard for you, : maybe webservice will do.
|
T*****9 发帖数: 2484 | 9 cym?
【在 g*****g 的大作中提到】 : JNI is your friend, and if you feel JNI is too hard for you, : maybe webservice will do.
|