62,127 reputation
6188280
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 38
visits member for 3 years
seen 1 hour ago

Ok, an obligatory note: opinions expressed here are mine and not those of my employer.


10h
revised I define a variable as local to a module BUT then the module uses its global value! Why?
Restructed the answer to be more logically consistent
10h
revised I define a variable as local to a module BUT then the module uses its global value! Why?
Added a note on Daniel's suggestion to use the StrictLexicalScoping option to avoid this behavior
2d
revised Why can AppendTo modify a referenced list in-place but Part cannot?
added 8 characters in body
2d
revised Why can AppendTo modify a referenced list in-place but Part cannot?
Added a bit of extra explanation
Nov
27
revised Can a Trie be implemented efficiently?
Updated with an implementation based on Associations
Nov
18
revised $Epilog does not work when exit
added 12 characters in body
Nov
16
revised Quickly test if all element in list is the same
Removed the compiled version
Nov
5
revised A smarter nested With?
Added intermediate variable for threading over symbols, per OP's request
Nov
5
revised Mathematica taking too long to calculate recursive function
Changed the post as memoization apparently wasn't really an issue.
Nov
5
revised Mathematica taking too long to calculate recursive function
added 220 characters in body
Nov
5
revised Mathematica taking too long to calculate recursive function
added 220 characters in body
Nov
5
revised Mathematica taking too long to calculate recursive function
added 220 characters in body
Nov
5
revised A smarter nested With?
Fixed the evaluation leak
Nov
5
revised Mathematica periodic moving map
Added a more general case
Nov
3
revised Generating compiled functions from inactive expressions
Corrected a localization bug
Oct
17
revised Detect Messages within an expression without losing the return value?
Added an alternative version to address the request in comments
Sep
25
revised Evaluating arguments of module (inside compile)
Corrected to fight listability in Plus and Times
Sep
16
revised Applying a function to a Dataset column conditional on another slot's value
Replaced with a more general code
Jul
26
revised AssociationMap to query Dataset across levels?
Modified keyStrip. Added a slightly different method
Jul
24
revised AssociationMap to query Dataset across levels?
added 19 characters in body