由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 有人玩macro language 么? (转载)
相关主题
其实JSP也不错Help with Tomcat for Eclipse v1.03
为什么需要template language库里有一个函数名也叫Time
node.js还是tomcatant javac error in eclipse 3.0?
Interesting discussion: java and generics and more请问一个最初级问题
这个注释是什么意思?Problem on ANT,JAVA,JSP,JSPPrecompiler
java compilation questionOnly definition is showed with F3 in Eclipse?
Re: [转载] create gif/png image in C or jaHow to obtain frame id from ActionEvent? Thanks
help on this scope questionString[] a = c.toArray(new String[0])
相关话题的讨论汇总
话题: macro话题: language话题: time话题: snippet话题: m4
进入Java版参与讨论
1 (共1页)
c******n
发帖数: 4965
1
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: creation (努力自由泳50m/45sec !), 信区: SanFrancisco
标 题: 有人玩macro language 么?
发信站: BBS 未名空间站 (Fri Sep 18 02:26:09 2009, 美东)
m4, 这两天在弄着玩, 套用在java 上很方便啊
m******t
发帖数: 2416
2
Like free marker or velocity?
I didn't know you could easily integrate m4 with java.
That would be interesting to know. Are you talking
about the m4 in unix?

【在 c******n 的大作中提到】
: 【 以下文字转载自 SanFrancisco 讨论区 】
: 发信人: creation (努力自由泳50m/45sec !), 信区: SanFrancisco
: 标 题: 有人玩macro language 么?
: 发信站: BBS 未名空间站 (Fri Sep 18 02:26:09 2009, 美东)
: m4, 这两天在弄着玩, 套用在java 上很方便啊

c******n
发帖数: 4965
3
yes, in unix of course.
one example: to measure time taken by one snippet,
normally I do
start_time = System.nanoTime();
//code snippet
end_time = Sys....
time+= end - start
now I do
__TIME_THIS( (
// code snippet
))
a lot of things like that can be simplified

【在 m******t 的大作中提到】
: Like free marker or velocity?
: I didn't know you could easily integrate m4 with java.
: That would be interesting to know. Are you talking
: about the m4 in unix?

m******t
发帖数: 2416
4
Oh, I see, to use it as a preprocessor.
Interesting idea. I guess some people
might not like it because it could make
compilation errors harder to troubleshoot.

【在 c******n 的大作中提到】
: yes, in unix of course.
: one example: to measure time taken by one snippet,
: normally I do
: start_time = System.nanoTime();
: //code snippet
: end_time = Sys....
: time+= end - start
: now I do
: __TIME_THIS( (
: // code snippet

1 (共1页)
进入Java版参与讨论
相关主题
String[] a = c.toArray(new String[0])这个注释是什么意思?
How big is the penalty for compile with debugging mode on?java compilation question
也问一个Eclipse的问题Re: [转载] create gif/png image in C or ja
急问如何append double 数据到txt文件help on this scope question
其实JSP也不错Help with Tomcat for Eclipse v1.03
为什么需要template language库里有一个函数名也叫Time
node.js还是tomcatant javac error in eclipse 3.0?
Interesting discussion: java and generics and more请问一个最初级问题
相关话题的讨论汇总
话题: macro话题: language话题: time话题: snippet话题: m4