Suma

Czech Republic

Age: 43

Programmer

Areas of interest:

  • Native Win32 programming
  • Visual C++
  • Scala
  • C++ templates
  • Multicore scalability
  • DirectX, OpenGL, 3D graphics
  • Performance optimizations
1d
revised How to set background color of a button in Java GUI?
Update link, 1.4 was no longer working.
1d
comment Java Swing button colors
possible duplicate of How to set background color of a button in Java GUI?
1d
comment How can I deduce template parameters at the end of the list in c++?
Can you explain why do you insist on not passing bar as a parameter? If performance is an issue, passing (syntactically) as a parameter does not necessary mean it will be really passed (on a stack or in a register).
1d
revised How can I deduce template parameters at the end of the list in c++?
Added a template call version.
1d
revised How can I deduce template parameters at the end of the list in c++?
Version passing arguments directly.
1d
revised How to create a shortcut to existing annotation?
Link to a Jackson annotation.
1d
awarded Popular Question
1d
comment Why wet is dark?
The original image source seems to be victoria.ac.nz/scps/about/staff/pdf/darkerwhenwet.pdf, which also describe this in a detail, together with experimental verification of the theory.
1d
comment Why wet is dark?
I think this nicely adds to the the current top answer, which talks about air/sand and water/sand reflection, but misses the water/air transition description. Moreover, your answer is very easy to understand thanks to the picture. Perhaps a legend describing Ri, a and p would even improve it?
1d
revised How can I deduce template parameters at the end of the list in c++?
Improved formatting.
1d
answered How can I deduce template parameters at the end of the list in c++?
Jan
28
comment Is it possible to use arithmetic in scala matchers?
Even after reading that I cannot see the runtime penalty for this case. What we are talking here are just combination of literals, variables with known values and function calls. All of this can be computed in a normal way, same as when a program is executed. I do not see any difference when unifying with a result of computation or unifying with a variable value (which is already possible). I understand it may be not trivial to define the grammar, and as the use case is not very important, it is not likely to happen. but I am not convinced runtime penalty is the reason.
Jan
28
comment Is it possible to use arithmetic in scala matchers?
Could you explain a bit more what "unification" is and why unification can be done against a literal, but not against a result of expression?
Jan
27
comment scala better syntax for map getOrElse
While this syntax is nice and useful, I am afraid this question is about a different map - you are talking about map collection traversal, while this is about Map collection.
Jan
27
comment How to control Jackson serialization of a library class
Closely related: stackoverflow.com/questions/15378853/…
Jan
27
revised How to create a shortcut to existing annotation?
Improved wording.
Jan
27
answered How to control Jackson serialization of a library class
Jan
27
asked How to create a shortcut to existing annotation?
Jan
27
accepted How to control Jackson serialization of a library class
Jan
27
comment How to control Jackson serialization of a library class
Looks promising, however some more effort will be needed, as with recent Jackson addMixInAnnotations is deprecated in ObjectMapper and one needs to use a feature module.
1 2 3 4 5