Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
peter_lawrey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
Using tmpfs to speed up "disk" access
(vanillajava.blogspot.com)
2 points
by
peter_lawrey
15y ago
|
0 comments
62.
▲
C++ or Java, which is faster for high frequency trading?
(vanillajava.blogspot.com)
7 points
by
peter_lawrey
15y ago
|
12 comments
63.
▲
How fast are Java Datagrams?
(vanillajava.blogspot.com)
5 points
by
peter_lawrey
15y ago
|
0 comments
64.
▲
Vanilla Java: Size of an entry in a Map
(vanillajava.blogspot.com)
3 points
by
peter_lawrey
15y ago
|
0 comments
65.
▲
Vanilla Java: Send XML over a Socket fast
(vanillajava.blogspot.com)
1 points
by
peter_lawrey
15y ago
|
0 comments
66.
▲
by
peter_lawrey
15y ago
I agree, I am suggesting that "no pointer = no speed" is not demonstrated by the benchmarks provided. The developers who wrote the benchmarks which were faster than the C/C++ ones didn't appear to agree. i.e. when they has the optional to u
67.
▲
by
peter_lawrey
15y ago
Fair point.
68.
▲
How fast are Java sockets
(vanillajava.blogspot.com)
2 points
by
peter_lawrey
15y ago
|
0 comments
69.
▲
by
peter_lawrey
15y ago
From a search I did suggest that Google have nowhere near 10K users per server. That is likely to be because the servers spend most of their time performing searches. The overhead of managing persistent connection is likely to be a small po
70.
▲
by
peter_lawrey
15y ago
That's a good link. The n-body and spectral-norm benchmarks were fastest in Fortran. The fannkuch benchmark was fastest in Ada. The Mandlebrot benchmark was fastest in ATS. In each case, the language has pointers, however they were not used
71.
▲
by
peter_lawrey
15y ago
In your experience, have you ever seen or heard of a business or web site with more than 10K concurrent users who thought it was a good idea to place all those users on just one server?
72.
▲
by
peter_lawrey
15y ago
A pedantic interviewer won't tell you if mix your terminology incorrectly. The more experience you have, the more pedantic you tend to get because computers are pedantic. They do exactly what you tell them to, not what you meant it to do. ;
73.
▲
by
peter_lawrey
15y ago
pass-by-reference has a particular meaning. Java does not support this. There are plenty of pages on the web explaining why suggesting Java support pass-by-reference is incorrect. http://www.google.com/search?q=java+pass+by+reference
74.
▲
by
peter_lawrey
15y ago
A Class is a proxy for the underlying representation of the type/class. IMHO, int.class is just as much a Class as Integer.class. The compiler does next to no optimisations and the "client" JIT doesn't remove loops which don't do anything.
75.
▲
Java and Memory Leaks
(vanillajava.blogspot.com)
2 points
by
peter_lawrey
15y ago
|
0 comments
76.
▲
Java Secret: Generated methods
(vanillajava.blogspot.com)
1 points
by
peter_lawrey
15y ago
|
0 comments
77.
▲
Java: Getting the size of an Object
(vanillajava.blogspot.com)
2 points
by
peter_lawrey
15y ago
|
0 comments
78.
▲
by
peter_lawrey
15y ago
Dell sell one. However for £1K which is about $1.5k you can buy a PC with 24 GB, a 3.8 GHz i7, 120 GB SSD, two screens. ;)
79.
▲
by
peter_lawrey
15y ago
Can you provide any benchmarks which support this as I can provide plenty which don't?
80.
▲
by
peter_lawrey
15y ago
If you create low enough garbage and your eden size is large enough, you can avoid having any minor collections at all. I have a full GC which is triggered once per night as maintainence.
81.
▲
by
peter_lawrey
15y ago
> Terrible advice. Use NIO and do it properly. Creating 1 thread per connection is for unskilled programmers. Sometimes the simple solutions are the best. Developing a complex and clever solution may your feel more skilled. Using a di
82.
▲
by
peter_lawrey
15y ago
Does your comment suggest that it can't be that simple?
83.
▲
by
peter_lawrey
15y ago
The answer to why would you still use Java is here "Java makes high level programming simpler and easier at the cost of making low level programming much harder. Fortunately most applications follow the rule of thumb that you spend 90% of y
84.
▲
by
peter_lawrey
15y ago
I would be very interested if you could explain what you mean. ;)
85.
▲
by
peter_lawrey
15y ago
I would say I am less concerned about how memory is packed, than how much is discarded. This is because memory is relatively cheap these days. A machine with 24 GB of memory costs around £1K. However you make a good point that C++ gives y
86.
▲
by
peter_lawrey
15y ago
AFAIK -d32 was the default on some versions of Solaris, but -d64 is the default now. Windows doesn't support these options. Linux does support -d32 but it has to be installed seperately, otherwise -d64 is the default for a 64-bit JVM.
87.
▲
by
peter_lawrey
15y ago
http://vanillajava.blogspot.com/2011/07/new-toy-for-home.htm... The computer runs at 3.8 GHz and came with two 20" screens. ;) The £21K computer is a Dell incl. tax retail price from their web site. Perhaps it sounds cheaper in £ instead
88.
▲
by
peter_lawrey
15y ago
Using this approach could be more logical, esp as the number of methods per state increases. As you have more complex events and you want to group as State/Method rather than Method/State this approach is more appealying.
89.
▲
by
peter_lawrey
15y ago
In a state machine, all the state should be in the context rather than the code blocks. The Java Tutorial on enums talks about fields and constructors.
90.
▲
by
peter_lawrey
15y ago
The secret part is that enums are under utilised even though they have been around since 2004. I would assume that many people don't realise how theyc an be used. Its no secret they exist. ;)
More ›