13,317 reputation
12360
bio website
location Germany
age 21
visits member for 2 years, 1 month
seen 8 hours ago

Just another {Perl,Java,Python,Scala} hacker.

AFK until August.


20h
comment Do compilers un-inline recurrent expressions?
If you don't mean common subexpression elimination, you might be interested in Threaded Code, which is a technique for extremely space-efficient compilation. It was popular when using the Forth language, but today it's not generally useful outside of embedded programming.
20h
comment Do compilers un-inline recurrent expressions?
This optimization is known as Common Subexpression Elimination, and is fairly common for off-line compilers.
2d
comment What is the best way to call overloaded functions?
Note that your second solution behaves differently, in that setString(str) will set s2 and s3 to null. The other alternatives will retain the previous value. So which solution you choose depends a lot on what you actually want your code to do.
Sep
19
comment Language to implement GNU toolchain type pipelines?
My (expert) opinion: I'd suggest you consider Perl. It's ideal when you essentially want to write a shell script, but actually need a real programming language, or want more performance. The LWP::UserAgent (or more versatile: Mojo::UserAgent) classes make web requests fairly easy – you wouldn't need to call existing tools like sed or curl. Python would be quite similar as long as you avoid the builtin urllib library…. Golang is far to verbose for your requirements.
Sep
17
comment Are Git branches, in fact, “homeomorphic endofunctors mapping submanifolds of a Hilbert space”?
This answer is likely to be correct, but it's not currently easily verifiable. Could you add an explanation why the statement is false, or were you only guessing when writing this answer? I for one suspect that there might actually be an equivalence between sequences of diffs and Hilbert spaces, but this comment is too small to prove it.
Sep
16
comment Is my understanding of the license for JQuery.xmleditor correct?
License compatibility isn't a symmetric relation. "Apache 2.0" --> "GPL v3" is true, but "GPL v3" --> "Apache 2.0" is not.
Sep
16
comment How to mark code lines licensed on MIT?
@Marqin The term “MIT license” is used for a number of free software licenses. My answer specifically deals with the Expat License, which allows sublicensing. To avoid misunderstandings, make it clear under what license your code is being distributed, and that the recitation of the MIT license is just an acknowledgement for the original source. A reasonable person should be able to figure out using common sense what part is the license, and what is the acknowledgement. You do not have to cater to complete morons.
Sep
16
revised How to mark code lines licensed on MIT?
disambiguated licenses
Sep
15
comment Why do some programming languages have break statements, but not higher-order break statements?
Could you please back up the opinions expressed in this answer with objective facts or reliable sources? As it stands, another user could simply post a contradicting answer like “Using break clearly expresses programmer intent and is on a much higher level than goto. Setting boolean flags to break out of nested loops is far less clear than using a labeled break”.
Sep
15
comment How to mark code lines licensed on MIT?
why are you talking about the GPL? This is about the MIT License.
Sep
15
answered How to mark code lines licensed on MIT?
Sep
11
awarded  Good Answer
Sep
11
awarded  Nice Answer
Sep
10
answered What is the purpose of a Code Review
Sep
10
awarded  Enlightened
Sep
10
awarded  java
Sep
9
awarded  Nice Answer
Sep
9
answered Which is a better pattern (coding style) for validating arguments - hurdle (barrier) or fence?
Sep
9
comment What is a “lifted representation”?
@Frank I read the Wikipedia article before writing my answer, and didn't understand it either. Instead, I found the Haskell Wiki on Lifting to be more accessible. Note that we don't really have four types. We have four concrete types, but only three type variables: two types A and B, and a functor F which is a type constructor.
Sep
8
awarded  Nice Answer