1,156 reputation
1723
bio website inspirehep.net/…
location Duchy of Grand Fenwick
age 42
visits member for 2 years, 3 months
seen 21 hours ago
stats profile views 202

Experimental particle physicist. These days I'm doing neutrinos.


Apr
11
comment Rock Paper Scissors
Wouldn't this be better as a [king-of-the-hill] or [ai-palyer]?
Apr
11
comment Outputting ordinal numbers (1st, 2nd, 3rd)
A user flagged this saying "is incorrect: doesn't loop at all, i.e. it works just for a given number, not _all_ numbers below it. see ideone.com/pO6UwV ." That's not a reason to flag as moderators do not judge correctness, but it may be an issue.
Apr
7
comment Reverse each word in a line of text while keeping the order of the words, and capital letters/punctuation must remain in the same place
How should contractions be treated? That is does Don't touch that! map to t'noD hcuot taht! or to noD't hcuot taht!?
Mar
29
comment shortest possible python pascal triangle code
Having seem this thread on the mother meta I know this is not going to be what you want to hear, but ... with the very limited exception of the "Tip" series of questions (python version) we don't actually answer "Help me to golf this particular code" questions here. We pose open challenges and compete on the answers. And, yeah, that's a little different from most Stack Exchange sites, But in any case, welcome. Please stay around.
Mar
21
comment Generate regular expressions for matching natural numbers between `m` and `n`
"Write a program that output a valid PCRE such that it matches all natural numbers between m and n" Presumably "and fails to match all other inputs", no? Lest some smart arse offers print .* in some language.
Mar
18
comment Matlab/Octave Eratosieve using minimal big-O iterations
Is this really in a form appropriate for CodeGolf.SE? Perhaps it would be better on CodeReview?
Mar
16
comment How to determine if a number is odd or even without mod -or- bitwise operations?
This has been around for quite a long time, but there doesn't seem to be a winning condition of any kind, which to my mind means there is no game here.
Mar
8
comment Pong in the shortest code
Just for reference there are some other [code-golf]s that run to pretty long. Build an engine for a maze game, Noughts and Crosses (aka Tic-Tac-Toe) (both could use additional entries, who likes to "win" by default?), Write a small HTTP server, Self-Interpreting Interpreter, Self-compiling compiler, Compile Regexes ...
Mar
3
comment Detect loops in a linked list
With no winning criterion whatsoever this does not seem to belong here at all.
Mar
3
comment Branch differently in x86 / x86-64 using only printable visible ASCII characters in the machine code
Nice. Odd, but nice. Since you are setting the winning condition as "shortest" I'm going to change the tag to [code-golf] and add a some new descriptive tags. If you don't like them, let me know.
Mar
1
comment Implement an IEEE 754 64-bit binary floating point number through integer manipulation
Hmmm...perhaps it would be better to define intstruct in terms of uint8_8, uint16_t and so on as the absolute sizes of short, int and so on are not defined by the standard (each type has a minimum size and there is a strict ordering in size, but that's it).
Mar
1
comment Implement an IEEE 754 64-bit binary floating point number through integer manipulation
Yikes! Tell me you have a solution.
Feb
28
comment Group adjacent values
Is all that cruft at the top (Sequence Sequence\n ... ======== ======== =====\n) part of the expected input and output? If not, can you please specify the expected formats?
Feb
27
comment Collect all even numbers from a list
Hi, Keikoku. This is not a general help site, but a place where we pose certain classes of puzzles for the amusement of other users. It is expected that these puzzles be interesting and have multiple types of solutions so that we can explore different approaches, and to insure this you generally need to have a solution in hand. Please have a look around.
Feb
25
comment Write a program to print squares of integers up to 25 in java without using variables?
Strongly related to Implement a sorting algorithm with no change, and I continue to think the whole business displays a lack of deep understanding about what your computer is doing. Furthermore, you got answers on programmers that are completely equivalent to what a pure functional language does under the hood.
Feb
19
comment Print ASCII histogram
Related to an oldie on Stack Overflow: Code golf: Word frequency chart.
Jan
27
comment Make a pattern alternate
Any requirement that a particular letter start the sorted sequence?
Jan
25
comment Build a readability index
I have now a least followed Strigoides' lead and made the adjustments on the basis of who the text comprehension makes errors rather than a purely ad hoc tweak to ring the three test cases into agreement.
Jan
25
comment Render the Utah Teapot
I like, but how "rendered" counts?
Jan
25
comment Build a readability index
if len(w)>2 and w[-1]=='e'and w[-2]not in v and w[-3]in v:c-= 1 Simple minded but a good approximation. I like it.