Re: [The Java Posse] Re: -Xmx is hurting java

2011-08-12 Thread Alan Kent
Not a great analogy really is it? I don't know of any widely used OS that requires every process to say how much memory it's going to use before it even starts running. In fact this post really highlighted to me how restrictive the approach is! Forget writing an app that can adapt to different

[The Java Posse] Running a Java process as a service on multiple platforms

2011-07-05 Thread Alan Kent
Hi all, Just wondering what the current "best practice" was on having a Java process (a server) that is to be restarted with the machine boot. The service may need to be deployed on different platforms (Unix/Linux, Windows32, Windows64, etc). You know, that old "write once, run anywhere" bus

Re: [The Java Posse] runtime.exe problems

2011-06-25 Thread Alan Kent
On 26/06/11 3:54 AM, Memo wrote: I can't get runtime.exec to execute a program in Java. I am trying to execute a bat file. I am pretty sure BAT files must be run by a command interpreter. Its not like Unix where the kernel knows how to run a shell script (via #!/bin/sh). Try "CMD /C myscrip

Re: [The Java Posse] Joe (and all), your thoughts on the Apple Announcements

2011-06-07 Thread Alan Kent
I must say having written in a language with automatic reference counting (compared to Java with GC), it was nice to be able to have a destructor that was run the instant an object was no longer referenced. That is what I got from the "predictable" aspect - you know resources are freed instant

Re: [The Java Posse] Gavin King: A new language and SDK designed to replace Java in the enterprise

2011-04-13 Thread Alan Kent
On 14/04/2011 8:59 AM, Serge Boulay wrote: "...But I guess I should mention that the number one technical problem that we simply can't solve to our satisfaction in Java - or in any other existing JVM language - is the problem of defining user interfaces and structured data using a typesafe, hie

Re: [The Java Posse] Old man lost in a series of tubes and wires

2011-04-04 Thread Alan Kent
On 5/04/2011 10:49 AM, Darrell Hobson wrote: IMHO I think that a lot of developers who may or may not have a background in Computer Science may sell short the value of the degree and the things that you learn when obtaining one or more degrees. Slightly off track I know, but the importance ma

Re: [The Java Posse] Re: Object Oriented Programming is out of the CMU Computer Science Introductory Curriculum

2011-03-21 Thread Alan Kent
On 22/03/2011 1:33 PM, mP wrote: Your commentary precisely backs up my point, they remain in academia which has a different focus which is quite different to the targets and goals of the business world. Therefore after all that their attention and priorities are more selfish towards their opini

Re: [The Java Posse] Re: Object Oriented Programming is out of the CMU Computer Science Introductory Curriculum

2011-03-21 Thread Alan Kent
On 22/03/2011 1:02 PM, mP wrote: The simple explaination being that most professors in universities, cant get a real job so most dont really know what they are talking about. I am sure its nothing to do with job satification of teaching, helping the next generation to get skills that will enab

Re: [The Java Posse] Re: Concerned about Tor's mental health

2011-03-15 Thread Alan Kent
On 16/03/2011 4:35 AM, Fabrizio Giudici wrote: You know that I'm not exactly a Mac fun, but they have a point. The point is that there are by far less Mac OS X viruses than on PC, so that many Mac users can live without an antivirus (of course, with a non-zero risk), while the same isn't true f

Re: [The Java Posse] Re: Java never actually was an open standard

2010-12-08 Thread Alan Kent
My most common use of reflection in real production code is doing things like reading a config file into an annotated POJO. I like this because of its type safety - can use reflection to determine the type of a field, extract it from a config file (using the appropriate validation rules for th

Re: [The Java Posse] Re: Bob Lee declines to support Java standardisation "charade"

2010-12-02 Thread Alan Kent
On 3/12/2010 5:47 PM, Cédric Beust ♔ wrote: Er... sorry? All JCP members voted recently and Bob didn't receive enough votes to make it (he was close, though). What are you talking about? Ok, I must say I am confused! Reading Bob's blog he talks about being invited but turned it down, but

Re: [The Java Posse] Re: Bob Lee declines to support Java standardisation "charade"

2010-12-02 Thread Alan Kent
Hi Liam, see his later post http://blog.crazybob.org/2010/11/java-se-7-8.html where he pulled out - "In spite of and because of my commitment to Java, I had to decline an invitation to join the Java SE 7 and 8 expert groups". You must have seen the earlier post and missed the later post, causi

Re: [The Java Posse] Re: .Net Rocks

2010-11-02 Thread Alan Kent
On 2/11/2010 11:34 PM, Casper Bang wrote: The issue has been raised before (by other as well as myself), but shot down by the stereotypical Java response (if it has anything to do with Microsoft, it *must* by definition be bad and we reserve our right to adopt a childish attitude pretending it do

Re: [The Java Posse] Relative productivity of C/C++ relative to Java

2010-10-03 Thread Alan Kent
On 29/09/2010 2:52 AM, Cédric Beust ? wrote: A fair assessment of C++ overall, except for that bit: On Tue, Sep 28, 2010 at 6:17 AM, Kevin Wright mailto:kev.lee.wri...@gmail.com>> wrote: Object allocation in Java is essentially free. In C++, malloc is expensive. I don't recall ma

Re: [The Java Posse] Re: Who is using Scala in the real world?

2010-08-01 Thread Alan Kent
I have looked at scala on and off at times - wrote one 20 line program before - that was it. Friday I wrote my first serious Scala program, and over the weekend I tried doing some performance measurements to see if I could use on a project. I have some code generating dummy data, passing into

Re: [The Java Posse] Bad benchmarks was fastest way to parse

2010-07-29 Thread Alan Kent
On 29/07/2010 6:19 PM, Kirk wrote: Sorry, I just don't buy the standard line that C/C++ is a safe from a performance perspective. Array access in Java will be every bit as fast. Range checking will most likely be jit'ed out of the code. Direct access will most likely be jit'ed into the code...

Re: [The Java Posse] Bad benchmarks was fastest way to parse

2010-07-29 Thread Alan Kent
On 29/07/2010 4:27 PM, Kirk wrote: Microbenchmarks are as useful as any other type of benchmarking. The problem is, they are very very very difficult to get right. You need to do a lot of work to validate the results you get from any benchmark, large or small. I've missed the beginning of the

Re: [The Java Posse] Re: Fastest way to parse data out of array of bytes?

2010-07-28 Thread Alan Kent
On 29/07/2010 3:05 PM, Reinier Zwitserloot wrote: That's not to say what you're doing is at all useful, really. You can't microbenchmark code for the JVM. End of discussion. Stop doing it. Agreed completely. Microbenchmarks are interesting, but dangerous to rely on. It was a loop run 100

Re: [The Java Posse] Re: Fastest way to parse data out of array of bytes?

2010-07-27 Thread Alan Kent
In case anyone cares, did a bit of testing and found: (1) Running in Eclipse using "Run" was about 3 times slower than running "java" on command line (on my particular machine) on the same class files. So yes, environment, JVM version etc make a BIG difference straight up. (2) If you want t

Re: [The Java Posse] Fastest way to parse data out of array of bytes?

2010-07-22 Thread Alan Kent
Replying to lots of different emails in one (sorry if got attribute messed up!) On 22/07/2010 1:42 AM, Steven Siebert wrote: Just ensure you get the correct answer for your situation, when you say a lot of access, do you mean read-only or r/w? Concurrency a concern? You say you're looking fo

[The Java Posse] Fastest way to parse data out of array of bytes?

2010-07-21 Thread Alan Kent
I was wondering what the fastest way (most highly performant) was to parse data structures serialized as an array of bytes. In my case its like a network packet (a true array of bytes where I need to peel of 1, 2, 4, and 8 byte integers, or variable length ASCII (8-bit) strings, etc.) Note I

Re: [The Java Posse] Re: Choosing a Java web framework - with security as a focus

2010-07-18 Thread Alan Kent
On 19/07/2010 12:42 PM, Mark Derricutt wrote: Do you have a link to that podcast? Sounds like an interesting listen... amrk OWASP (Open Web Application Security Project) podcasts can be subscribed to from their site http://www.owasp.org/index.php/OWASP_Podcast. The podcast in particul

Re: [The Java Posse] Re: Choosing a Java web framework - with security as a focus

2010-07-18 Thread Alan Kent
On 16/07/2010 11:34 PM, Viktor Klang wrote: On Fri, Jul 16, 2010 at 3:21 PM, jitesh dundas > wrote: JSF is good for security purposes and t he reason that it is in demand (again :)..) is the back-end security with integration that makes life so easy.. Sor

Re: [The Java Posse] Is functional programming "abstract nonsense"?

2010-07-14 Thread Alan Kent
On 15/07/2010 2:44 PM, jitesh dundas wrote: I do not see much of Fp either in application side..I still do not think, that this is out of the big picture..where imp applications still use FP.. This may be an obvious statement, but I think its related to the size and complexity of the program,

Re: [The Java Posse] Re: Apple Bias?

2010-05-07 Thread Alan Kent
Viktor Klang wrote: Better to put java at the end and rename it all to ScalaPosse Sometimes I wonder if its the mailing list participants that are the true "Posse". It often feels like people on this list are the ones out to lynch Joe, Dick, Carl and Tor YES, THIS IS A JOKE! Alan -

Re: [The Java Posse] Is JavaFX going anywhere?

2010-05-03 Thread Alan Kent
On 4/05/2010 12:04 PM, Eddie wrote: With Flash being so popular yet it is debatable whether it is the right technology to fit into the HTML world, is there really rooms for JavaFX? Listening to the "This Ain't your Dad's Java" podcast (from Sun), I got the feeling it was looking promising

Re: [The Java Posse] is there anything i should know about switching to the 64 bit jvm?

2010-04-28 Thread Alan Kent
If there is any JNI in the project you obviously need 64-bit versions of the libraries it links to. Alan -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javapo...@googlegroups.com. To unsubscribe from this

Re: [The Java Posse] Posse anti-Microsoft bias can lead to whitewashing of other companies' record

2010-04-10 Thread Alan Kent
Rakesh wrote: Hi Alan, even though I understand the sentiment, I think you are being hopelessly naive. To state that we shouldn't be allowed to question their motives or express opinions about their motives is being unrealistic in this modern age with these modern tools in this modern mediu

Re: [The Java Posse] Posse anti-Microsoft bias can lead to whitewashing of other companies' record

2010-04-08 Thread Alan Kent
I disagree with comments on this list like "Joe should not say X" or "Dick should not say Y" (and must love the Goovy). The Posse are stating the personal opinions. Go for it! We the listeners can decide ourselves whether we agree or not. Its always interesting to hear the arguments put for

Re: [The Java Posse] Re: java server app of the week suggesion - Cassandra

2010-03-02 Thread Alan Kent
Viktor Klang wrote: My not so extensive experience has told me that it depends on the kind of schema you're building. For something like a Twitter-clone you probably won't run into this unless you've done some bad planning, but I definitely would agree with you that it could be(come) a big issu

Re: [The Java Posse] Re: IT policies of large corporations - what is normal?

2010-03-01 Thread Alan Kent
josef newton wrote: Banning IM and Skype are silly. Do they ban cell phones/SMS? Same thing really. I don't think IM and cell phones are the same. IM and Skype are using company infrastructure - packets going out come from the company (not a personal phone), and so the company may be he

[The Java Posse] Re: Scala IDE?

2009-11-09 Thread Alan Kent
tachoknight wrote: > So I'd like to know, what do people use to write Scala programs right > now? I'm looking for a good, solid Scala implementation that will > allow me to become comfortable with the language. > I tried both Netbeans and Eclipse (but not the unreleased 2.8 version) and in bo

[The Java Posse] Re: Using Java as a Windows Service

2009-11-01 Thread Alan Kent
Thanks - this was a very interesting list. Now if there if we could just cross breed the Apache Commons Daemon project with the Launch4J code...From the documentation it looks like Launch4j has lots of nice stuff to look for an installed JVM and offer to download it if not found etc (but n

[The Java Posse] Re: Using Java as a Windows Service

2009-10-29 Thread Alan Kent
Alan Kent wrote: > A pity its not an executable shipped with the standard Java > distribution. Makes it that bit easier getting Java apps deployed onto > Windows servers. I should have probably explained - the whole rest of the system is platform neutral (all written in Java).

[The Java Posse] Using Java as a Windows Service

2009-10-29 Thread Alan Kent
We have used "Wrapper" (http://wrapper.tanukisoftware.org) at times to start Java servers as a Windows service. Just wondering if there was any newer best practice out there? A pity its not an executable shipped with the standard Java distribution. Makes it that bit easier getting Java apps

[The Java Posse] Re: anyone tried actors in JAVA?

2009-10-11 Thread Alan Kent
Some comments in case interesting. My understand of Kilim (and therefore anything built on it) is you have to annotate every method from the top of the stack down to where you send/receive messages. Its very common for only the top most method to need annotations, but I suspect that for more

[The Java Posse] Re: query

2009-10-06 Thread Alan Kent
I heard vlingo mention frequently on a blackberry podcast. You can speak for google search or dictate a SMS etc. But it's a service, not a java library Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "The

[The Java Posse] Re: No commercial motivation to make Java 'better'

2009-09-30 Thread Alan Kent
Joshua Marinacci wrote: > ...This means you can use any authentication scheme you want > using one of the many Java authentication libs out there... > > ...However, in > the case of authentication, this is a matter of the sockets/http > requests going from your applet to your server side app

[The Java Posse] Re: No commercial motivation to make Java 'better'

2009-09-30 Thread Alan Kent
Casper Bang wrote: > ...especially since JavaFX seems to serve mostly to scratch > Sun's own itch but utterly uninteresting to most others. I am more of a manager than programmer these days (darn it!). I find JavaFX very interesting. However, its still not quite good enough for a serious proj

Re: AST based language: was Re: [The Java Posse] Re: JavaFX - oddities in the language? Week 2.

2009-09-10 Thread Alan Kent
Joshua Marinacci wrote: > Still, I think one day we will move towards this. I can't imagine the > computer in the Starship Enterprise was coded in text files. > Yes, I mean writing has not been around that long compared to computers. I am sure its just a passing fad. Alan ;-) ;-) ;-) --

[The Java Posse] Re: NetBeans getting support for the Fan language

2009-08-12 Thread Alan Kent
Reinier Zwitserloot wrote: > (B) The & operator is strictly binary and, and && is strictly logical > and. Exactly why is this different from the behaviour for the slash, I generally agree with the post, but I thought I would add a minor comment that & and && are different to me in that && short

[The Java Posse] Re: aop "flames"

2009-07-22 Thread Alan Kent
Jess Holle wrote: > So what is AOP good for? It's a powerful tool for building certain > types of library/framework capabilities. ... Just relating a personal experience, I had read various bits on Aspect Oriented Programming (or aspects in general) but they always seemed to be vague descrip

[The Java Posse] Re: Java Properties

2009-07-01 Thread Alan Kent
MassH wrote: > Libraries and frameworks like JPA/Facelets/Spring/etc should use > explicit getter/setter methods if they exist and otherwise fallback on > raw exposed instance variables. > As well as the other comments, one thing that API designers must be careful about is future proofing the

[The Java Posse] Re: What would make you switch to a new language?

2009-06-30 Thread Alan Kent
The nice bits of Erlang (zero shared memory concurrency, easy distribution, fault tollerance, ability to update code base while system still running and live, and concurrency, immutable types), but with a more mainline syntax/style and including Unicode support. Also easy integration with oth

[The Java Posse] I love the posse

2009-06-28 Thread Alan Kent
Dear Posse, I love and continue to love the show and really appreciate all the hard work you guys put in, completely voluntarily. Its my #1 podcast. To Dick (Groovy) Wall, if you feel that ignoring JigSaw and OSGI keep you more motivated and enjoying doing the podcast, then go for it. Add t

[The Java Posse] Re: web pagination - #247 - Roundup 09 - Design and Engineering

2009-06-23 Thread Alan Kent
I think pagination is a pain. For HTML, it is frequently necessary to avoid bloated pages that take a long time to download, and frequently won't render until the full data set has been downloaded. AJAX is better here, but not perfect. Multiple pages make the user experience much more clunk

[The Java Posse] Google app engine + Groovy or Scala for XML document to HTML conversion?

2009-06-02 Thread Alan Kent
(This is take two - previous mail from my gmail account appears to have bounced - so sorry if this comes through twice on the list.) Hi, I was after some opinions (and what better place than this list! ;-) . I wanted to play/experiment/learn the Java based Google App Engine (not Python). The

[The Java Posse] Re: Oracle to buy Sun MS

2009-04-20 Thread Alan Kent
Josh Juneau wrote: > I agree that there is a hefty product overlap. Listening to some of the Oracle podcasts, they bought PeopleSoft, JD Edwards etc - definite product overlaps - and are continuing with them all. They even went further announcing "applications unlimited" - basically keep payi

[The Java Posse] Re: Dicks workload in The Java Posse: 95%

2009-03-09 Thread Alan Kent
Yes, very funny. Ha ha. Now can we keep this smut off this mailing list? The joke has been made. Personally I find the lack of respect being shown on this list in some quarters for someone putting in a lot of unpaid work into the Java community very disappointing. Flame away - I am now putti

[The Java Posse] Tuples versus structs for multi-return types

2009-02-25 Thread Alan Kent
Hi, Due to other commitments I have only skim read read all the thread on tuples, pairs (and skipped bits). But I thought I would throw up an alternative (that has almost certainly be suggested before somewhere). It is an obvious hijack of C/C++ structs (I don't know C# structs so might be t

[The Java Posse] Re: #230: JavaFX vs. Flash/Flex/Silverlight

2009-02-23 Thread Alan Kent
Joshua Marinacci wrote: > Components: JavaFX currently has only the TextBox component. > ... we are planning a full set of new components Any ETA on the components? How rich? For my personal needs its things like tables with sortable columns with lots of values, so you need to lazily load sub

[The Java Posse] Re: Mint.com is looking to hire an Architect (and we use Java)

2009-02-18 Thread Alan Kent
Steven Herod wrote: > See, that's how you do a Java job ad: "I am in Mountain View, I have > 18 million dollars and I'm looking to hire someone". > Actually the original mail did not say Mountain View (you had to follow the link to their web site). I was just about to ask if the job was in

[The Java Posse] Re: With all the recent Java update 10, JavaFX, etc can I now do a good native Windows application?

2009-01-20 Thread Alan Kent
craig.aspin...@googlemail.com wrote: > ...so I guess the obvious > question no-one has asked yet is why do you want to create a Java > application and not a native one? ... First, thanks everyone for the information so far. I was trying to keep the original post short, so I left out details. I

[The Java Posse] With all the recent Java update 10, JavaFX, etc can I now do a good native Windows application?

2009-01-19 Thread Alan Kent
While no Java 7, there has been lots of new stuff like Java update 10, the new applet plug-in, the new deployment options, JavaFX and so on. From what I understand is available, I think I still cannot do a good native Windows application easily in Java alone. For example: * I want some p

[The Java Posse] Re: Project Jigsaw and OSGi on Devoxx

2009-01-08 Thread Alan Kent
OSGi and my understanding of what Sun have wanted to do have always felt like two quite different things to me. (I have however only dabbled in OSGi, and my knowledge of what Sun have been attempting is primarily from listening to the podcasts.) OSGi is a plugin framework: you define lots of

[The Java Posse] Re: Scala for the enterprise?

2008-12-16 Thread Alan Kent
I thought the technical point was in the first sentence - the point that minor typos cause very strange/confusing error messages. Because of things like you can leave out semi colons, leave out parenthesis, etc - all useful in their own ways - it means that given a sequence of tokens the comp

[The Java Posse] Re: JavaFX in the wild?

2008-12-12 Thread Alan Kent
How about a mail client? Scroll bars, progressive downloading, sorting columns, popups. Shows a mix of forms, text input fields, plus animation to bring popups up etc. Ties into some of the other suggestions talking about "enterprise" like interfaces will scroll regions etc in front of a da

[The Java Posse] Re: Java 7 features - NO CLOSURES!

2008-12-11 Thread Alan Kent
I think having generics is a big step forward over not having generics - I use them a lot too. Just avoiding casts for every ArrayList get call is a big win. I also wrote some code to read a configuration file into annotated POJOs. All the type information was there (including the type param

[The Java Posse] Re: 211, IBM Agile, Oxymoron

2008-10-16 Thread Alan Kent
Certainly was a bit of marketing in it, but I still found it very useful to get an overview of what Jazz was and how they saw the world. (Just as I value people's opinions and views on this mailing list.) So I thought it was a valuable podcast. Clearly the interviewers were asking questions

[The Java Posse] Re: Choosing wide scale set of web Java client/server technologies

2008-09-22 Thread Alan Kent
Just as a follow up in case others are interested, I have been looking at OpenLaszlo a bit (heard of it a few times, never got around to looking more closely). It does seem interesting. On first view the XML for building up screens seems understandable with nice data binding capabilities. Fo

[The Java Posse] Choosing wide scale set of web Java client/server technologies

2008-09-20 Thread Alan Kent
Listening to this group over the years has been great. Every so often I sit down a rethink what technologies a new project should use with the following (debatable) goals: * Try to keep technology count down so there is less for team members to learn * Try to keep UI widely access

[The Java Posse] Groovy, Scala, et al - Can a serious Java replacement contender be slow?

2008-09-03 Thread Alan Kent
I was doing some web surfing trying to find information on Groovy, Scala etc from a performance perspective. I hear lots of Groovy people saying "its the next generation replacement for Java" sort of statements, but all the performance benchmarks I have come across show code similar to the Ja