| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 10 months |
| seen | yesterday | |
| stats | profile views | 116 |
|
Sep 28 |
comment |
Why would it ever be possible for Java to be faster than C++? Konrad: Which would you rather hesitate to write: x1=(d.sqrt()-(a.mul(c.mul(4)))).div(b.mul(2)) ; x2=(d.sqrt()+(a.mul(c.mul(4)))).div(b.mul(2)) or x1=(sqrt(d)-4*a*c)/(2*b); x2=(sqrt(d)+4*a*c)/(2*b) ? Where would you think twice about optimizing your code and saving up redundant parts calculations in a helper variables? Consider they may later turn out to require to be bignum type, like 512-bit floats, and you perform this in an inner loop of a realtime 44000 samples per second analysis. |
|
Sep 28 |
comment |
Why would it ever be possible for Java to be faster than C++? The usual mindset is that methods are expensive, operators are cheap. You use methods when you must, operators whenever you want to save time and optimize. It's not a technical matter, but psychological - it's not that operators are "heavier", they are just much easier to use and are used much more frequently. (plus you can overload a commonly used operator in a pre-existing code, making it do the same as original, plus an extra - and suddenly the whole code will significantly slow down. |
|
Sep 26 |
comment |
Overcoming general lack of UI design skill in developers Definitely not true with a big company. It has separate design and development teams, and both need only a minimal knowledge from each other (know what is possible, know what is broken). |
|
Sep 26 |
comment |
Overcoming general lack of UI design skill in developers Hire a designer. It's the only way to be sure. |
|
Sep 26 |
answered | What qualifies “too many database requests” in code? |
|
Sep 26 |
comment |
Big-O for nested loop Comparison (of constant length string) is O(1). N comparisons is O(N). N^2 comparisons is O(N^2). |
|
Sep 26 |
comment |
Why do programmers write closed source applications and then make them free? Sometimes I feel angry at needing to pay for something I feel should be available for free. So I create the free version for myself - and everyone else. I paid for the device, I'm not willing to pay twice as much for your "special" software just to be able to do what I bought the device for in the first place. You do not deserve the extra money. You tried to rip me off, and hundreds of other customers too, see if I let you. |
|
Sep 26 |
comment |
Software license restricting commercial usage like CC BY-NC-SA @David: Wait, so how do EULAs work with "For educational purposes only", "Not for business/commercial use", "For evaluation purposes only" etc? |
|
Sep 26 |
revised |
Why would it ever be possible for Java to be faster than C++? added 1 characters in body |
|
Sep 26 |
comment |
Why don't we use browser detection and platform-specific CSS? We've been there (age of IE6+Netscape4+Mozilla+Opera) and we never want to go back there. Trust me. |
|
Sep 26 |
answered | Why would it ever be possible for Java to be faster than C++? |
|
Sep 23 |
comment |
State machines vs threads @Mar: ...or use a deterministic swap algorithms that guarantee fetching of required data before it becomes necessary. |
|
Sep 23 |
comment |
State machines vs threads File read is not fundamentally blocking - it can always be split into requesting readout of given location and acquiring the data from buffers after the request was fulfilled. And a page fault is a workaround for haphazard/heuristic swap usage. It will occur if given state was entered before all data necessary for its execution was made available - a lack of foresight, something against the concept of state machine. If swap-out and swap-in operations are a part of the state machine, then a page fault won't occur. |
|
Sep 23 |
answered | State machines vs threads |
|
Sep 23 |
answered | Should I sign an NDA and IP contract without an expiry date? |
|
Sep 21 |
answered | How do random number generators work? |
|
Sep 21 |
comment |
Supporting multitenancy The easiest solution? A new instance of the whole system, including hardware, empty, from scratch, one new system per tenant. If the system and the data are quite valuable, this may be a pretty good option. If you don't like new hardware for each instance - use virtualization. It may not be most efficient but certainly will save a ton of headaches. |
|
Sep 21 |
comment |
Career Day: how do I make “computer programmer” sound cool to 8 years old? Master of Robots? |
|
Sep 21 |
answered | Is there a symbol or shorthand for “and is increasing/decreasing”? |
|
Sep 20 |
answered | What is the standard /an acceptable period of time to support a particular version of software? |