Reputation
4,889
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 19 54
Newest
 Announcer
Impact
~159k people reached

Feb
11
revised Where can I find examples of good Mathematica programming practice?
added 329 characters in body
Feb
8
awarded  Announcer
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
6
asked Smart pointer for Mathematica?
Feb
5
revised Where can I find examples of good Mathematica programming practice?
added 140 characters in body
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
accepted Using up-values and down-values
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.
Feb
1
revised Using up-values and down-values
added 76 characters in body
Feb
1
asked Using up-values and down-values
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
30
awarded  Nice Question
Jan
28
revised Struct equivalent in Mathematica?
added 198 characters in body
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 ...
Jan
28
revised Where can I find examples of good Mathematica programming practice?
deleted 52 characters in body
Jan
28
revised Struct equivalent in Mathematica?
added 101 characters in body