Reputation
165,201
Next tag badge:
428/400 score
56/80 answers
Badges
20 321 713
Newest
 Nice Answer
Impact
~2.1m people reached

3h
comment Why is Random[ ] faster than RandomReal[ ]?
At least somewhat related: (75303)
3h
comment Why is Random[ ] faster than RandomReal[ ]?
I seem to recall this being discussed before but my search skills and memory are failing me. In my opinion since the new functions are optimized for generation en masse, and support multiple PRNG methods, it seems reasonable that they have a moderate overhead for individual calls.
5h
comment Why is Random[ ] faster than RandomReal[ ]?
Random uses an older and poorer PRNG algorithm. Let me see if I can find some references.
6h
comment Evaluation of Alternatives
"We have some improvements in the pipeline and ideas on how to completely clean this up, but unfortunately completely squashing all these issues is a ways off." I am really happy to know that development continues on the core functions, and not only on library extension.
6h
comment Evaluation of Alternatives
"Beyond the fact that evaluation may have undesired side effects, we would have a true circularity problem given that evaluation is done via pattern-matching!" I never thought of it like that, but it makes perfect sense. Thanks for a pithy summary of the evaluation thing.
16h
comment How to make an empty list inside a module program? It consatly spews errors
Also: (17808)
16h
comment Is there a guideline about when to end expressions with semicolons?
Related: (33861)
18h
comment Partitioning a list when the cumulative sum exceeds 1
I just updated my answer with one that's a bit faster, but IMHO not enough faster to justify the ugliness. ;^) I shall try to improve it further.
19h
comment Partitioning a list when the cumulative sum exceeds 1
Related: (2304)
19h
comment Partitioning a list when the cumulative sum exceeds 1
Are you most concerned with "a neat way" or absolute performance? I posted the cleanest method I could think of but I doubt it will perform as well as a simple procedural loop in Compile.
20h
comment what do those signs #1, #1^2, #1^3, & mean here?
Likely duplicates: (13767), (19035)
23h
comment How to create a histogram of annual events, such as cherry blossom time
+1 for introducing me to a new function, even if I don't have it in 10.1. Something I wonder about is that you are giving every day a year of 2015, whereas the OP wrote: "based on actual temperature data from over 40 years" and "a more straightforward way than converting to integer dates and adjusting for leap years" -- I imagine ideally this should be plotted in sidereal time?
2d
comment How to modify wrong time zone in a Date object?
@hippo3773 I am glad I could help. Since you say this is exactly what you were looking for please consider Accepting this answer.
2d
comment Evaluation of Alternatives
@Daniel Yeah, I probably should have included that. Thank you.
2d
comment Is there a method to enumerate the keys/values of System`Utilities`HashTable
Nice answer! Are you sure you want it to be a community wiki? It will probably get a fair number of votes. :-)
Feb
4
comment Evaluation of Alternatives
@jjc385 That's a good question, and one I wish I could answer at the moment. I think at one time I did work my way to a better understanding with Rojo's help but it seems to have slipped from me now. Anyway take a look at these Q&A's: (304), (5067), (18060)
Feb
4
comment Except[] with levelspec
@Fred Would you care to post an answer?
Feb
4
comment why MatchQ is fast and Replace slow?
@Daniel Sorry. :-s
Feb
4
comment Substitute arguments before evaluating variables in Block
Proposed duplicates: (11461), (69590)
Feb
4
comment why MatchQ is fast and Replace slow?
@Daniel I am getting funny results in 10.1.0. Please have a look at this.