58,167 reputation
6165258
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 38
visits member for 2 years, 8 months
seen 15 mins ago

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


Dec
25
revised Symbolic computations with already assigned variables
Modified to enable selective evaluation, per OP's request
Dec
25
comment Symbolic computations with already assigned variables
@RolfMertig HoldForm is often invisible, when you forget about it, and can confuse. Besides, I have this as an option - the evalWithFrozenSym function accepts the wrapper head as a second optional argument.
Dec
25
comment Symbolic computations with already assigned variables
@swish See my edit
Dec
25
revised Symbolic computations with already assigned variables
Added automation
Dec
25
answered Symbolic computations with already assigned variables
Dec
25
comment Once more on object orientation in Mathematica: does it have to be so hard?
@OleksandrR. So, I am very much looking for feedback on this, particularly from you. On my side, I will make sure that this stuff is more accessible and easier to start playing with, as well as using for more serious things.
Dec
25
comment Once more on object orientation in Mathematica: does it have to be so hard?
@OleksandrR. As for the usefullness of OO in Mathematica, I used to think the same way (that it is not that useful), but then we usually use Mathematica for problems with high degree of algorithmic content. But some problems are not like that, but much more ad hoc. In particular, the problem that prompted me to start with this OO stuff was the version control system for Mathematica projects based on Github gists, which I am currently working on in my free time. It became much more tractable after I started using there the OO extension I described in my answer.
Dec
25
comment Once more on object orientation in Mathematica: does it have to be so hard?
@OleksandrR. Well, thanks :). I just felt that I finally found an answer to some of my problems when developing larger apps in Mathematica, and since I tested it already on a couple of real use cases, I wanted to share it. I might have done it a bit prematurely, perhaps should have tested it more. Time will tell, but so far I think this stuff can really help for certain tasks (it helped me, at least). And I wanted the feedback from the community as well (I already got a bunch of good suggestions and plenty of food for thought). I will soon document this much better, add more expamples etc.
Dec
25
comment Once more on object orientation in Mathematica: does it have to be so hard?
@Szabolcs Yes, absolutely. That's the plan, actually. I know that it may seem like I've forgotten all my promises regarding the blog, but this isn't so. And for this topic, I posted this here since I wanted to attract more attention to this topic and make the core of this more accessible to anyone. I have much more stuff regarding OO, and that stuff will go into the blog post. For example, here I wasn't able to consider more meaningful / complex examples of applying this stuff to practical problems, but the blog will give me such an opportunity.
Dec
24
revised Once more on object orientation in Mathematica: does it have to be so hard?
Added some clarifications, corrected wording
Dec
24
comment Can I redefine a list as a set of variables?
Nice stuff,+1 (upvoted alread a while ago). Just for fun - here is an alternative implementation of listAliases based on Block: SetAttributes[listAliases, HoldAll]; listAliases[list_Symbol, {names__Symbol}] /; Length[{names}] == Length[list] := Block[{alias, list, Part, names}, Thread[alias[{names}, Thread[list[[Range[Length[{names}]]]]]]]].
Dec
23
awarded  Nice Question
Dec
23
awarded  Nice Answer
Dec
23
comment How do I make an image “nearly” black and white?
I do confirm that it works in V7, but gives black rectangle in both V8 and V9.
Dec
23
comment Once more on object orientation in Mathematica: does it have to be so hard?
@Mr.Wizard Yep, looks good to me too. Actually, I like it even better than your previous suggestion. Should have figured those out myself, shame on me :) (getting old, I guess).
Dec
23
comment Once more on object orientation in Mathematica: does it have to be so hard?
@Mr.Wizard Probably yes. I guess the first one was a remnant from some original code, and I did not rethink it after changes. Thanks, I will edit this in soon.
Dec
23
comment Once more on object orientation in Mathematica: does it have to be so hard?
@Mr.Wizard I have to go now, but will do it later today.
Dec
23
comment Once more on object orientation in Mathematica: does it have to be so hard?
@NasserM.Abbasi This is not just on V9 - the form I used in undocumented. But it is the form I needed, and there isn't an easy replacement for it within the documented functionality.
Dec
23
comment Once more on object orientation in Mathematica: does it have to be so hard?
@NasserM.Abbasi It is not free for one thing, and I really want a simple and short implementation for another one.
Dec
23
answered Once more on object orientation in Mathematica: does it have to be so hard?