Log of the #nice channel on irc.freenode.net

Using timezone: Central European Time
<CIA-3>03bonniot * 10Nice/src/nice/tools/ant/NiceDoc.java: Initial Ant nicedoc task.01:56
* BigDog joins02:03
* BigDog leaves
<CIA-3>03bonniot * 10Nice/src/nice/tools/doc/ (api.nice main.nice): Isolated an API for starting nicedoc, and use it in the command-line version.02:36
03bonniot * 10Nice/Makefile: Build nicedoc and the nicedoc Ant task.02:57
* CIA-3 leaves03:10
* CIA-3 joins03:11
* bonniot leaves
* arjanb leaves03:34
* magnus-- leaves05:17
* CIA-3 leaves08:10
* CIA-3 joins
* bonniot joins11:24
* BlueLap joins12:58
<bonniot>hi bl! new name today?13:00
<BlueLap>no, im behind the laptop at the inlaws13:01
* magnus-- joins
hello magnus
<bonniot>how are you doing with Nice?
* arjanb joins13:15
<bonniot>hello arjan13:23
<bonniot>nicedoc is working fine for me not that we have the source. does it work ok on windows?13:24
<arjanb>i'm not sure how i should use it but it get an exception running it13:26
<bonniot>what do you get?13:27
(we'll need to add scripts to start it, nicedoc and nicedoc.bat)
<magnus-->bonnoit, i haven't actually started with nice yet, so no comments yet:)13:28
I am still in the parser stage
<bonniot>did you make your mind about antlr?
<magnus-->yes, i got it working with predicates
<bonniot>good. and what kind of code does it generate?13:29
<magnus-->recursive descent code it seems13:31
<bonniot>i meant, how does it interface with your own, non-generated code?
<arjanb>Exception in thread "main" java.io.FileNotFoundException: D:\Nice\.\nice\lang\<init>.html (The filen13:32
ame, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at java.io.FileWriter.<init>(FileWriter.java:73)
at nice.tools.doc.fun.write(F:\Nice\src\nice\tools\doc:178)
<bonniot>do you include statements to execute inside the parser definition, like javaCC?
arjanb: ok. windows does not seem to like file names with < in it. it's a sensitive kind of OS ;-)13:33
that's a mistake of nicedoc anyway: it tries to generate doc for a package it does not have the source of
i'll commit the fix for that13:34
<CIA-3>03bonniot * 10Nice/src/nice/tools/doc/api.nice: Only generate documentation for packages that are available in source form.13:39
<arjanb>do you compile nicedoc into nice.jar?13:40
i think it makes sense, it's an essential tool
<arjanb>so batch file can be almost identical to nicec
<arjanb>nicedoc won't run on 1.313:49
<bonniot>y not?
<arjanb>replaceAll is 1.4 String method13:51
<BlueLap>i found some fun things you can do when building your own gc :)13:53
currently musing about shareing an imutable object isntance in a memory mapped file13:54
<bonniot>arjanb: do u think it's the only 1.4 code?
BlueLap: what benefit over sharing in memory? persistence?13:55
<BlueLap>yes, but also threading via processes13:56
<bonniot>you can share memory between processes too13:57
<BlueLap>well im a bit into crossplatform compatible c code
and mmap seems a pretty solid crossplatform standard
<bonniot>ok. i don't know which one is more portable, so i believe you ;-)13:58
<BlueLap>well i only know vfork as alternative
so maybe there are better aleternatives
<bonniot>there is an api to share memory, i don't think they even need to be forked from the same root process13:59
<BlueLap>well that will only work on a few unixew14:04
anyway i wont implement it anytime soon
<bonniot>arjanb: do you have a antlr grammar for Nice?14:29
<arjanb>for version 0.8.0 but it isn't complete why?14:30
<bonniot>there is this checkstyle tool that can generate reports about source code14:31
it's currently working only for java, but i see the way they handle the language is that they parse it with an antlr grammar (.g, right?) and then work on the AST14:32
so it seems that with an antlr grammar for Nice, we could use it as well
btw, i saw they have a java 1.3 grammar, and a java 1.4 grammar that simply extends the previous one adding a few changes14:33
that's a cool feature of antlr
<arjanb>i see much use in that checkstyle tool because it does only what it name says14:34
<bonniot>you mean 'not much' ?14:35
i can imagine good uses
for instance, it's a way to know at a glance what nicedoc comments you are missing
and i think we could add support to report use of unsafe constructs like cast or notNull14:37
it helps keep a high quality in the code
good news: somebody is going to work on NiceSWT :-)14:46
is Frank going to continue with nicedoc?14:49
<BlueLap>and then i remebered that evry time i run this program remotly it popups a few windows on the home machine :)
<bonniot>arjanb: i htink so, since he was asking from comments about this version, which he considers a prototype14:50
BlueLap: :-) using X11?14:51
<BlueLap>nope, im remotely working in windows via cygwin unix emulation, logged in via ssh
<bonniot>windows can display windows remotely?14:54
<BlueLap>no thats why they are filling a crt 100 kilometers away14:55
and vnc isnt working for some reason
* BlueLap leaves16:16
* BlueLap joins16:19
* CIA-3 leaves19:32
* CIA-3 joins19:33
<arjanb>just found a nasty bug in some nice code:20:02
boolean foo(String str, int length)
if (str.length() > length)
i had to look at the bytecode20:08
* CIA-3 leaves20:11
* CIA-3 joins
<bonniot>what's the pb?20:52
<arjanb>that the condition is always false20:53
<arjanb>it takes this.length instead of the argument20:55
<BlueLap>oeh, scary
<bonniot>oops. that's a bug
could you send a testcase?
<arjanb>hmm maybe i looked wrong21:06
<bonniot>note sure if there was a bug? you still have the bytecode output around?21:09
<arjanb>i got confused by loops in bytecod so no bug21:11
you found y it was always false?
<CIA-3>03bonniot * 10Nice/src/nice/tools/maven/ (project.xml project.properties plugin.jelly): Initial implementation of the Nice plugin for Maven.22:05
* CIA-3 leaves22:57
* CIA-3 joins

Generated by Sualtam