Reputation
4,609
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 19 52
Impact
~156k people reached

Apr
28
comment V10's Operator Forms - what are they good for?
@Mr.Wizard , I think your last example is even simpler to understand written this way because operations are written in the same order they are processed: Range@9//partition[3]//Map[Append[11]]//Map[SortBy[mod@5]] . I use the style described in this post mathematica-guide.blogspot.co.uk/2011/12/…
Apr
28
comment Best way to represent a complex time schedule?
This is intersting but I need a need a regular schedule involving week days.
Apr
14
comment Compiling more functions that don't call MainEvaluate
As a comment having learned some Python recently, the solution presented above is similar to what Cython brings (a big acceleration to normal Python code) except that you don't need here to define local variables in a special manner, everything is basic Mathematica code. This solution should be useful to a lot of people should they find this post ...
Apr
9
comment Shaving the last 50 ms off NMinimize
Yes it has, I'm using it.
Apr
9
comment Shaving the last 50 ms off NMinimize
The code in this miminizer contains many methods I haven't seen anywhere else, plus it works well, this is one of my favorite post on this site.
Apr
5
comment Filtering Query Nested Data (Dataset and Association)
In fact each # in the Select is an association, so this is not a special syntax. Useful post anyway !
Apr
5
comment Filtering Query Nested Data (Dataset and Association)
Indeed, after reading this useful answer, I haven't found a reference for this syntax in the documentation. Maybe it exists, but it's likely not easy to find.
Mar
16
comment How to evaluate a function on a list until stable?
There's a FixedPoint function.
Mar
13
comment Missing elements using FinancialData
this will help mathematica.stackexchange.com/q/46760/66
Mar
9
comment Where can I find examples of good Mathematica programming practice?
Ok, I've found another source for the doc and updated the list.
Feb
13
comment Wolfram Workbench - Mathematica Development Alternatives
Wolfram Workbench is still useful for big projects involving several packages. I don't think you can rename a function accross several packages with notebooks in one command.
Feb
7
comment Smart pointer for Mathematica?
My goal would be to do Class[object].delete[] when the reference would be garbage collected. So even if Temporary were a solution, I would still need to know when the deletion of the temporary symbol happens.
Feb
1
comment Using up-values and down-values
Thanks but G[2,e] can be an intermediate state. An object e[2] might call the definition of f stored in G, the call will then be G[2,e].f[]. But if I return just the object, I want it to be returned as e[2], ie it's main representation.
Feb
1
comment Using up-values and down-values
e[2] is the main representation of G[2,e] in what I do, so it's ok for me, I agree with you warning, but it doesn't impact me (at least for now, if it backfires I'll go back to my previous way of doing).
Feb
1
comment Using up-values and down-values
The way you handle Stack is interesting in order to just get the useful information from the stack.
Feb
1
comment Using up-values and down-values
Note that I never have pure patterns in my use cases, so Simplify is not useful in this case, although it's still interesting to know this.
Feb
1
comment Using up-values and down-values
I have quite a big project with such data structures as underlying objects as described in my post on structs in Mathematica mathematica.stackexchange.com/a/999/66, I have improved the ideas exposed on this site a lot, since posting them here, I will probably release a package publicly at some point. So your solution with my slight modification doesn't crash the system so it's very likely the right solution.
Feb
1
comment Using up-values and down-values
@ybeltukov , your solution works for my use case with this slight modification: h_[a___, G[x_, , y], b_] /; h =!= Dot ^:= h[a, y[x], b] . Thanks a lot for helping me, thanks to Leonid also for trying.
Jan
31
comment How to implement the Observer design pattern?
@LeonidShifrin your answer is so useful, I think it should be included in the language as a means for asynchronous programming. Maybe Java could be used also in Mathematica for asynchronous programming, although I haven't looked at this yet.
Jan
28
comment Mathematica style guide?
I thought it was an interesting question. If it's too broad so be it, you can delete it ...