Reputation
29,397
Next tag badge:
468/400 score
65/80 answers
Badges
2 63 142
Impact
~277k people reached

6h
comment How can I effectively performance-profile Dynamics?
@episanty I don't have the code fresh in my head, but, probably, I thought the following at the time. It's not important to lose state between kernel sessions. DynamicModule wouldn't be any use (on the contrary) if we are using a multi-cell and multi-notebook apprach, and the new cell isn't spawned from a button inside the containing DynamicModule such that InheritScope works. As it is right now, if changing Module to DynamicModule works (haven't tried it) I think its because of a leak and it shouldn't
May
16
awarded  Good Question
May
9
comment How do I access the parameters in Classify using Support Vector Machine as method?
@chris I don't recall exactly, sorry. Hopefully, they will get documented
May
9
awarded  Good Answer
Apr
24
comment Can this be written well, without loops?
@JadeNB that was the spirit :)
Apr
22
awarded  Nice Answer
Apr
5
awarded  Nice Answer
Mar
30
awarded  Nice Answer
Mar
19
awarded  Nice Answer
Mar
9
awarded  Nice Answer
Feb
19
comment How do I find all the possible events that work with EventHandler?
Now you can also look at the autocomplete list when you write CurrentValue[" and some starting letter
Feb
13
comment Most efficient way of splitting a file into length-prefixed blocks
@LeonidShifrin I had tested it without the last copy to remove the $Failed, but I doubt it makes a difference and if it did, it is easy to avoid. The chunk size dependence makse sense.
Feb
11
comment Most efficient way of splitting a file into length-prefixed blocks
@Mr.Wizard So far I am finding Haskell really interesting. My guess is you would like it, very terse. You don't even need brackets to call a function ;)
Feb
11
revised Most efficient way of splitting a file into length-prefixed blocks
added 4 characters in body
Feb
11
revised Most efficient way of splitting a file into length-prefixed blocks
added 12 characters in body
Feb
11
revised Most efficient way of splitting a file into length-prefixed blocks
deleted 45 characters in body
Feb
11
comment Most efficient way of splitting a file into length-prefixed blocks
No functional benefit, and not really a stylistic preference either. It is what came to mind first. I am not sure which I prefer. I think your last offer is my favourite
Feb
11
comment Nested mapping of a function
Are you certain that you want a neat version of the first construct? Honest question
Feb
11
comment Most efficient way of splitting a file into length-prefixed blocks
I thought of not answering because the OP asks for "most efficient". However, when I saw that a naive implementation worked x1.6 slower than a solution which is 200x faster than the OP's, I thought it might be useful anyway.
Feb
11
revised Most efficient way of splitting a file into length-prefixed blocks
added 28 characters in body