« first day (1281 days earlier)      last day (3661 days later) » 

12:07 AM
@fge: because of this change?
@MartyPitt: Paste your question url without any other text, then press enter.
 
4
Q: After upgrading to Java8, javac still shows 1.7

Marty PittI'm having issues upgrading from JDK 1.7 -> 1.8 on OSX. The upgrade has completed, but javac still returns 1.7 as the version. I've downloaded JDK 8_u5 from Oracle's homepage, and run the installer. I've also taken the following steps, post-install: > export JAVA_HOME=`/usr/libexec/java_home ...

Neat!
 
fge
@aliteralmind no -- in fact, it changed surprisingly little timewise. It did save memory though
@aliteralmind .charAt() on LargeText in my test case is called 1.9 billion times
 
@MartyPitt: There's more info in "help"
@fge: Yikes! Multi gigabyte indeed!
@fge: My first contribution to a non-mine repository :)
 
fge
@aliteralmind you have to start somewhere :p
Now I'm going to see how grappa performs for the same search
@aliteralmind also, the greatest danger with this package is the most basic of operations -- .toString()
 
A multi-gigabyte toString. Sweet.
 
fge
12:17 AM
Exactly... :p
 
@Fge: My first thought is to have an optional configuration setting to protect against it. Is it something that should simply be forbidden? Or handled in some way?
 
fge
@aliteralmind verboten -- the contract of CharSequence is clear. What is more, if you didn't implement .toString() correctly, the funny thing is that a Matcher would find the matches but would be unable to report them correctly :p
@aliteralmind and String is immutable
 
Your documentation for that function is amusing :)
You could still have a protection setting, for use only during development.
 
fge
Hmmyeah, maybe a JVM option
 
Hm. How do you implement a JVM option?
 
fge
12:32 AM
You type java -Dsomething.here=somevalue and check the value of System.getProperty("something.here")
 
fge
Well, could be a feature request I guess
I still haven't released
 
fge
@aliteralmind good one :)
 
fge
1:30 AM
@aliteralmind just tested -- grappa performs in about the same time
@aliteralmind actually I believe I'm going to change the documentation of .toString() a little
"@returns something unmanageable, always; @throws OutOfMemoryError, most likely
 
2:00 AM
@fge: :)
 
 
6 hours later…
7:46 AM
Hmmm. I've got a problem, (seems trivial so I'm asking it here first) regarding the Java Annotations. The problem is I can't use @Interned tag like this @Interned TestClass t2 = new TestClass(10, 20); or even this TestClass t2 = new @Interned TestClass(10, 20);... It gives cannot find class Interned comp. error. Could this be a good question?
 
 
1 hour later…
fge
9:05 AM
@ambigram_maker you need to create that annotation first
 
 
3 hours later…
11:54 AM
0
Q: Java Prime Numbers Client/Server

devtreatI am making an application that tells you if the number you enter is prime or not.The problem I have is that it only asks once and terminates the program. How could I do to keep asking numbers and the program ends when enter the number 0? Updated Code. Class: public class numerosPrimos { ...

 
fge
0
Q: Clarification about Thread's .isInterrupted(): what is "alive"?

fgeI have some trouble understanding what the javadoc for this method means to say here: A thread interruption ignored because a thread was not alive at the time of the interrupt will be reflected by this method returning false. Uhwell, if it's not alive it does not even run, does it? Or it is...

 
5
Q: How to make inline taglets (which require com.sun) more cross-platform? Is there a non-Oracle/more-cross-platform javadoc parser?

aliteralmindI'm writing a library that inserts already unit-tested example code (its source-code, output, and any input files) into JavaDoc, with lots of customization possibilities. The main way of using this library is with inline taglets, such as {@.sourceAndOutput my.package.AGreatExample} {@.source my....

200 bounty ending at 1pm EST. Get it while it's hot. One answer so far.
 
fge
12:11 PM
@aliteralmind can't really help there :/
@aliteralmind another thing to consider though is that if your package requires a different javadoc parser you add a burden on the developer to configure his/her build system to use that other parser
So, it's not so bad
 
@fge Can you help me with my issue?
 
@fge: You're probably right. I think taglets are the right way to go. Just wanted to be sure.
Good morning.
 
@aliteralmind Good morning.
 
12:27 PM
Sorry, @devtreat, I'm not going to be a help with your problem, unless your server is having a regular expression issue ;)
 
fge
@aliteralmind regexes, eh?
@aliteralmind I have a project in a corner of my mind involving grappa and regexes
That would be quite some project
 
@aliteralmind Dont worry :)
 
fge
@aliteralmind if you are up for some very challenging stuff...
 
@fge: What is this "regex" of which you speak? ;)
 
fge
@aliteralmind two projects, actually
 
12:31 PM
@fge: I'll create the gigabyte-long regular expression for you to parse.
 
fge
@aliteralmind nothing to do with multigigabyte stuff here ;)
@aliteralmind first: build an ECMA 262 regex parser and executor
@aliteralmind second: build a general regex engine, with parsing and execution, backtracking etc, and make this available online; would support several regex dialects
With step by step execution and so on
Challenging, I tell you
 
WHY?!
 
fge
But once the first step is done... Well, it will be easier for the second
Why what?
 
Why, for the love of French Pyramid Breakfast Pastries, do you want to make your own regex engine?
 
fge
@aliteralmind for ECMA 262, because right now json-schema-validator depends on Rhino just for the regex engine, and that's a waste
@aliteralmind for the second stuff, well, to teach people about how regexes do their job ;)
@aliteralmind and third, because I will learn a lot, and improve grappa a lot, in the process as well
And I'm a keen learner
 
12:44 PM
You are certainly ambitious.
 
fge
You don't say ;) But hey, json-schema-validator was ambitious to start with
Anyway, first release of largetext later today
It's in pretty good shape now
And very well documented -- and thanks again for the commit!
 
@fge: Thanks for walking me through it.
 
fge
No problem
 
@fge: I just came up with an idea for displaying recursive JDXC-taglets.
Displaying code that has taglets in it, that should also be rendered.
 
fge
Uuh
What if you have a reference to self?
You should make that an option -- but not necessarily for the first version ;)
 
12:58 PM
Doesn't matter. It's just a workaround.
I need it for documenting JDXC.
{@.source my.pkg.AnExampleWithJDXCTaglets:displayLineRange("1st line", "line before taglet")}
{@.source my.pkg.SubExampleFromAnExampleWithJDXCTaglets}
{@.source my.pkg.AnExampleWithJDXCTaglets:displayLineRange("1st line after taglet", "last line in source")}
 
fge
@aliteralmind I just thought of a name for your project
which imho sounds better than jdxc
 
Changed it yesterday. I mentioned it. JavaDoc-Example-Code. It could still be abbreviated IXC if you like that better. JavaDoc-Example-Code I think is still catchy, but more informative.
 
fge
@aliteralmind and what about codelets?
Short and to the point
 
Codelets?
 
fge
Yes, taglets of code
with code -- either source or executed
 
1:14 PM
No one would ever use this. Only me, or someone writing a FAQ about IXC.
@fge: You'd only use a single taglet as you expect.
 
fge
@aliteralmind I disagree
if you talk about the name
For me it's quite the opposite
Oh wait
 
Yes...?
 
fge
I mean, "taglets of code" as an "explanation" of the name "codelets"
In a similar manner that grappa is about grammars and parsers
 
When I say "No one would ever use this." I mean recursive taglets. The only use would be for documenting the taglets themselves, as I obviously am, and any blogs or FAQs might.
99.999% of users would only use a single taglet per source-code, as it should be:
{@.source my.pkg.AnExampleWithJDXCTaglets}
You could display a snippet of the code with the line-range processor:
(Meant that to be {@.source my.pkg.AnExample})
 
fge
Hmm, what about {@codelet:source ...}?
 
1:24 PM
{@.source my.pkg.AnExample:displayLineRange("text in first line", "text in last line")}
You like {@codelet:source over {@.source?
 
fge
Personally, I prefer
 
(Including a dot is recommended by javadoc for any custom taglet name.)
 
fge
Ah
I didn't know about that
Too bad
But this is only a recommendation, right? ;)
Meh, as you wish
Or even {@code:source}
Hmmno, actually, {@code} is defined so that can lead to confusion
 
If Oracle ever creates a source, output, fileText or sourceAndOutput taglet, then every taglet breaks.
A dot guarantees it doesn't break.
This is your last chance to influence the name and abbreviation of the project, and the names of the taglets themselves.
My proposal:
JavaDoc-Example-Code
IXC (Insert Example Code Into JavaDoc)
.sourceCode
.consoleOutput
.plainTextFile
.sourceAndOutput
@fge: So?
 
fge
Not sure...
Sorry, I am documenting largetext, so I'm not paying 100% attention ;)
 
1:42 PM
@fge: I'm leaving for a few hours. Look it over, please, and tell me what you think. I'd like to finalize the names today, and I want to make sure you at least get a fair shot at it :)
6
Q: How to make inline taglets (which require com.sun) more cross-platform? Is there a non-Oracle/more-cross-platform javadoc parser?

aliteralmindI'm writing a library that inserts already unit-tested example code (its source-code, output, and any input files) into JavaDoc, with lots of customization possibilities. The main way of using this library is with inline taglets, such as {@.sourceAndOutput my.package.AGreatExample} {@.source my....

THREE HOURS LEFT!!!
200 BOUNTY!!!
 
1:58 PM
Good morning, Java!
 
fge
@Michael good morning
@Michael users.parboiled.org/Announce-grappa-1-0-0-beta-1-tp4024306.html -- I am releasing largetext and will then attempt a grammar for vcards
@Michael I still have the link open to your reader source
 
@fge Cool
@fge Link?
 
@fge Oh cool. Thanks for looking into it. I'm interested to see what a vCard grammar would look like and whether it performs better/worse than the existing implementation.
 
fge
@Michael may require some time though -- I don't know your implementation
Also, RFC 2426 is obsoleted
But nevermind that ;)
 
2:05 PM
@fge I know. My parser supports that version as well as the latest (RFC 6350).
 
fge
@Michael you should reflect that in the comments
 
From a syntax standpoint, there is no difference between version 3.0 (RFC 2426) and 4.0 (RFC 6350).
The difference lies in what properties are supported by each version.
Version 2.1, however, is slightly different.
 
fge
Yeah, and from what I've read, the version field can be anywhere in the file, right?
 
Only for version 2.1 vCards. Versions 3.0 and 4.0 require the VERSION property to be immediately after the opening BEGIN property.
That's why I initialize the version to 2.1.
 
fge
Aah, OK
That will simplify things
 
2:59 PM
@fge Thanks for looking at my problem... Isn't @Interned built in?
If it's not could you throw some light on the matter?
 
fge
3:17 PM
@ambigram_maker no, there is no such annotation in the JDK; if you have seen it in a code example on the net then the writing should also mention which package defines that. Short of that you have to create it and actually use it
@ambigram_maker here is an example: gist.github.com/fge/11322732
@ambigram_maker there is yet more to it than that (for instance you can have an annotation with no members, members with default values etc)
 
3:34 PM
pastebin.com/5i7cAKxh .. rate out of 10 for horribleness
 
1 message moved from JavaScript
 
fge
4:04 PM
Hmm, not sure how this is Java?
 
No idea.
 
5:01 PM
Anyone there? :)
@fge and @Michael: Opinions please:
I need to finalize the name of my library and taglets. Would like your opinions. Let me know if you need some background, @Michael.
Project name: JavaDoc-Example-Code
Abbreviated either JDXC, or IXC (Insert Example Code into JavaDoc).
Taglets:
Display source-code for an example class: {@.sourceCode my.pkg.ExampleClass}
Display console output: {@.consoleOutput my.pkg.ExampleClass}
Display both: {@.sourceAndOutput my.pkg.ExampleClass}
 
fge
@ali
Argh
@aliteralmind I maintain that codelets is a better name; @Michael, what do you think?
 
Text from a plain-text file: {@.fileText my\pkg\doc-files\input.txt}
(Done)
Anyone feel free to chime in.
 
fge
Oh, and as to names I just thought of these: {@.codelet:source}, {@.codelet:exec}, {@.codelet:both}, {@.codelet:includeFile}
Comments?
 
5:16 PM
@fge: How about {@.codelet}, {@.codelet.out}, {@.codelet.and.out}, {@.textlet}
Or {@outlet} :)
{@.filetextlet}
 
fge
No, I prefer my names :p
But I'm not the one to decide anyway ;)
 
@fge: I like "codelet", but I think I'll use the shorter versions. I'll be happy with "less repulsive" ;) Gotta stop thinking about names now, and get back to coding. Still a few weeks to go.
 
fge
5:34 PM
@aliteralmind if you need help about anything, don't hesitate to ask ;)
I have a lot of stuff on my hands (yet another idea for a new project) but I can spare some time
@aliteralmind as to shorter, well, maybe, but (well, that's personal) I prefer to write a little more but what I write be meaningfule
s,e$,,
 
@fge: Got it. And thanks. I'll keep you posted.
Good luck with the release.
 
 
1 hour later…
7:08 PM
Do java updates no longer (attempt to) trick me into installing Ask toolbar?
not that i'm complaining, but i'm used to it doing so, so it almost seems fishy that it didn't
i did however get an undescriptive error message mentioning something about my browser
 
7:28 PM
0
Q: Java Prime Numbers Client/Server

devtreatI am making an application that tells you if the number you enter is prime or not.The problem I have is that it only asks once and terminates the program. How could I do to keep asking numbers and the program ends when enter the number 0? Updated Code. Class: public class numerosPrimos { ...

 
fge
7:39 PM
Uuh, I've just had a discussion with my girlfriend about largetext and she mentioned quite a lot of stuff about it which are flaws
Dear me
Anyway, I'll release
 
 
3 hours later…
fge
10:48 PM
@Michael still there?
 
fge
10:59 PM
largetext 0.1.0 released -- yay
 

« first day (1281 days earlier)      last day (3661 days later) »