comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Which Compiler? - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eaff02cdae418719 * long class name problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/54ffff98c385d2e8 * Packing JRE - 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d1a5c7579f5f09e2 * Encode url with JSDK 1.3 - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c90968ed885b60c9 * Regexp to extract filename from g++ output - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d495dd5db4858206 ============================================================================== TOPIC: Which Compiler? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eaff02cdae418719 ============================================================================== == 1 of 3 == Date: Wed, Dec 22 2004 7:24 am From: Stefan Schulz On 21 Dec 2004 14:45:32 -0800 "smitsky" <[EMAIL PROTECTED]> wrote: > Hi. Is there another good free compiler (besides the JDK) that is > recommended? I would like to hear from those who have used it if there > is. The eclipse-compiler also is quite good, with has the advantage that other plugins can directly hook into it. That said any java-implementation can work. (Kafee and so on). I usually use eclipse for my development. -- In pioneer days they used oxen for heavy pulling, and when one ox couldn't budge a log, they didn't try to grow a larger ox. We shouldn't be trying for bigger computers, but for more systems of computers. --- Rear Admiral Grace Murray Hopper == 2 of 3 == Date: Wed, Dec 22 2004 1:54 am From: "hilz" > It is a lightweight editor with *none* of the above. It merely > colors keywords (which I find preferable to autocomplete) and > allows you to compile and run from within the editor. > > Others will almost certainly disagree with me. ;-) Please allow me to disagree here! :) keyword coloring is nice, but autocomplete is essential if you work in a production environment and want to be productive. i can't imagine myself coding without autocomplete. without it, you will have to keep jumping between your editor and the API. Netbeans can even show the API documentation next to the autocomplete window, which is also very helpful, and saves a lot of time. just my 0.5 cent hilz == 3 of 3 == Date: Wed, Dec 22 2004 7:43 am From: Andrew Thompson On Wed, 22 Dec 2004 01:54:00 -0500, hilz wrote: > Netbeans can even show the API documentation next to the autocomplete > window, I can't quite recall, is there space in there for a window with the Java source code? ;-) >...which is also very helpful, and saves a lot of time. Alt tab 'll take you to the browser with Javadocs, saves screen acreage. Of course, YMMV. I think it ultimately depends on the coding style, habits (good and bad) and personality of the individual developer. [ ..ahhh, IDE discussions, I should steer clear of them! ] -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ============================================================================== TOPIC: long class name problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/54ffff98c385d2e8 ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 7:29 am From: Stefan Schulz On Wed, 22 Dec 2004 02:46:20 GMT "Tony Morris" <[EMAIL PROTECTED]> wrote: > Also, there is no maximum length of a class name mandated by any of > the relevant specifications. That's not quite true. The classname must fit into a constant table entry. That means it must be mapable to an UTF-8 String of less then 65536 bytes. (But i have yet to see any class even approach that limit) -- In pioneer days they used oxen for heavy pulling, and when one ox couldn't budge a log, they didn't try to grow a larger ox. We shouldn't be trying for bigger computers, but for more systems of computers. --- Rear Admiral Grace Murray Hopper ============================================================================== TOPIC: Packing JRE http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d1a5c7579f5f09e2 ============================================================================== == 1 of 4 == Date: Wed, Dec 22 2004 6:49 am From: Andrew Thompson On Wed, 22 Dec 2004 14:10:38 +0800, IINET wrote: Please note how I 'in-line post with trimming' to your post, and please adopt that posting style in future. <http://www.physci.org/codes/javafaq.jsp#netiquette> > "Andrew Thompson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On Wed, 22 Dec 2004 04:05:24 GMT, Bender wrote: >> ... >>> I am distributing it over the net. I was hoping to keep the user from >>> downloading the JRE .. >>>..for a Windows version, i.e. - releasing an 'exe' version. >> >> In that case, if you only require windows support, it makes >> more sense to develop it in .NET. .. .. > Why - I'm glad you asked. .NET is Win oriented. The layouts could be simpler for the direct reason of not having to support a vast variety of fonts, font sizes and PLAF's. I imagine the .NET IDE would also have a D'n'D GUI editor, which would also speed development over the general Java approach of hand coding the GUI. It would be much easier in .NET to display/edit common MS document formats such as .doc, .xls, to get the 'OS Component', and actively control it. It would be much simpler to get into the guts of the OS and system. ( For instance, .NET might even have the -advanced- ability to tell you the free space on a physical drive. ;) Applications deployment could also be more streamlined. Of course, all that is purely speculative, in the category of 'if MS had *not* done that, they would be complete idiots'. >...just becasue it is only for windows does not rule out java > automatically? No, it does not. I generally encourage X-plat in any case. Just because it needs to run on Windows, does not mean it *cannot* be X-plat. >..Why suddenly switch to a whole other platform becasue it is > not intended for anything other than windows? It would completely depend on factors not yet known, but depending on the size of the application, it is something that should be considered if the app. is truly to be 'Win only'*. Besides, you have to weigh that against the downside of making a Win .exe from a Java jar file, as detailed at the link I provided to creating an 'exe'. If you add that overhead to your Java development costs, it may tip the balance in favor of development in .NET. * One of the most important of the questions is 'Why Win only?' [ And noting that an answer of 'we only run Win' is not in itself sufficient, given time's nature of changing things. ] >..Java runs on windows - so what > if it runs many other places too? Good point. Dump the idea of the EXE, and educate the users about Java. ..Which even runs on Windows. ;-) -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane == 2 of 4 == Date: Tues, Dec 21 2004 11:15 pm From: Steve Sobol Andrew Thompson wrote: >>..for a Windows version, i.e. - releasing an 'exe' version. > > In that case, if you only require windows support, it makes > more sense to develop it in .NET. Andrew, That's just plain silly. I don't think as many people have a Java2 RE as you might think. -- JustThe.net Internet & New Media Services, http://JustThe.net/ Steven J. Sobol, Geek In Charge / 888.480.4NET (4638) / [EMAIL PROTECTED] PGP Key available from your friendly local key server (0xE3AE35ED) Apple Valley, California Nothing scares me anymore. I have three kids. == 3 of 4 == Date: Wed, Dec 22 2004 3:23 pm From: "IINET" re: it makes more sense to develop it in .NET The reccomendation was really my issue here - you do not know this posters situation, yet made this assumption. you do not know if he is skilled in both platforms. If the cost to switch is worthwhile for given the benefits to the app. If win can offer anything java cannot for this app. If the app will EVER need to be ported to other OS's and so on... Oh, and lets not forget the poster has already written the app in Java. So, the slightly silly "it makes more sense to do it in .NET" statement was not very sensible to me. "Andrew Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 22 Dec 2004 14:10:38 +0800, IINET wrote: > > Please note how I 'in-line post with trimming' to your post, > and please adopt that posting style in future. > <http://www.physci.org/codes/javafaq.jsp#netiquette> > >> "Andrew Thompson" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> On Wed, 22 Dec 2004 04:05:24 GMT, Bender wrote: >>> ... >>>> I am distributing it over the net. I was hoping to keep the user from >>>> downloading the JRE .. >>>>..for a Windows version, i.e. - releasing an 'exe' version. >>> >>> In that case, if you only require windows support, it makes >>> more sense to develop it in .NET. .. > .. >> Why - > > I'm glad you asked. > > .NET is Win oriented. The layouts could be simpler for > the direct reason of not having to support a vast variety of > fonts, font sizes and PLAF's. I imagine the .NET IDE would > also have a D'n'D GUI editor, which would also speed development > over the general Java approach of hand coding the GUI. > > It would be much easier in .NET to display/edit common MS > document formats such as .doc, .xls, to get the 'OS Component', > and actively control it. > > It would be much simpler to get into the guts of the OS and system. > ( For instance, .NET might even have the -advanced- ability to tell > you the free space on a physical drive. ;) > > Applications deployment could also be more streamlined. > > Of course, all that is purely speculative, in the category > of 'if MS had *not* done that, they would be complete idiots'. > >>...just becasue it is only for windows does not rule out java >> automatically? > > No, it does not. I generally encourage X-plat in any case. > Just because it needs to run on Windows, does not mean it > *cannot* be X-plat. > >>..Why suddenly switch to a whole other platform becasue it is >> not intended for anything other than windows? > > It would completely depend on factors not yet known, but > depending on the size of the application, it is something > that should be considered if the app. is truly to be 'Win only'*. > > Besides, you have to weigh that against the downside of > making a Win .exe from a Java jar file, as detailed at the > link I provided to creating an 'exe'. > > If you add that overhead to your Java development costs, > it may tip the balance in favor of development in .NET. > > * One of the most important of the questions is 'Why Win only?' > [ And noting that an answer of 'we only run Win' is not in > itself sufficient, given time's nature of changing things. ] > >>..Java runs on windows - so what >> if it runs many other places too? > > Good point. Dump the idea of the EXE, and educate the users > about Java. ..Which even runs on Windows. ;-) > > -- > Andrew Thompson > http://www.PhySci.org/codes/ Web & IT Help > http://www.PhySci.org/ Open-source software suite > http://www.1point1C.org/ Science & Technology > http://www.LensEscapes.com/ Images that escape the mundane == 4 of 4 == Date: Wed, Dec 22 2004 7:35 am From: Andrew Thompson On Tue, 21 Dec 2004 23:15:10 -0800, Steve Sobol wrote: > Andrew Thompson wrote: (Bender) >>>..for a Windows version, i.e. - releasing an 'exe' version. >> >> In that case, if you only require windows support, it makes >> more sense to develop it in .NET. > > Andrew, > > That's just plain silly. > > I don't think as many people have a Java2 RE as you might think. In what way did your statement correlate to what you quoted? How many Win users do you think *I think* have Java? I cannot make much sense of your statements. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ============================================================================== TOPIC: Encode url with JSDK 1.3 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c90968ed885b60c9 ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 8:27 am From: "Jacob Welsh" > In JDK 1.4, they introduced a encode(String,String) method which > accepts an character encoding name as the second parameter. I know! But as I said, I must use JDK 1.3. There is no possibility for me to use JDK 1.4 in my project. ============================================================================== TOPIC: Regexp to extract filename from g++ output http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d495dd5db4858206 ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 12:09 am From: Gordon Beaton On Tue, 21 Dec 2004 12:16:36 GMT, Mike wrote: > gordon, your version fails here if there is no column: > c:\tmp\test.cpp:1: error: message > does this work in your jre? i am using sun's 1.4.2_06 under win2k. Sorry, I missed the part about the column being optional. Try this one: (.+?):([0-9]+):(?:([0-9]+):)? (error|warning): (.+) The first group needs a reluctant quantifier, otherwise it consumes too much of the input when the column is optional and both line and column numbers are provided. The optional column uses two nested groups. Of these, the inner group is the interesting one, since it contains (just) the column number, whereas the outer group also contains the termating colon. The extra ?: after the outer group's opening parenthesis isn't strictly necessary, but it's there to prevent the outer group from being captured. Here's my test again: using regexp "(.+?):([0-9]+):(?:([0-9]+):)? (error|warning): (.+)" test 0: 'file.c:2:3: warning: foo': 1 (file): file.c 2 (line): 2 3 (col): 3 4 (type): warning 5 (msg): foo test 1: 'file.c:2: warning: bar': 1 (file): file.c 2 (line): 2 3 (col): null 4 (type): warning 5 (msg): bar test 2: 'file name.c:2: warning: gurka': 1 (file): file name.c 2 (line): 2 3 (col): null 4 (type): warning 5 (msg): gurka test 3: 'file name.c:2:3: warning: baz': 1 (file): file name.c 2 (line): 2 3 (col): 3 4 (type): warning 5 (msg): baz test 4: 'file n:ame.c:2: warning: gurka': 1 (file): file n:ame.c 2 (line): 2 3 (col): null 4 (type): warning 5 (msg): gurka test 5: 'file n:ame.c:2:3: warning: baz': 1 (file): file n:ame.c 2 (line): 2 3 (col): 3 4 (type): warning 5 (msg): baz test 6: 'file n:ame.c:4:5:6:2:3: warning: baz': 1 (file): file n:ame.c:4:5:6 2 (line): 2 3 (col): 3 4 (type): warning 5 (msg): baz /gordon -- [ do not email me copies of your followups ] g o r d o n + n e w s @ b a l d e r 1 3 . s e ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
