56,262 reputation
5158249
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 37
visits member for 2 years, 6 months
seen 1 min ago

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


Dec
6
comment File-backed lists/variables for handling large data
@MarkusRoellig Thanks:). Well, it's been already a while ago, time's running.
Dec
6
comment Putting large amounts of data inside a self-contained Manipulate
I second Yves. Welcome, Seth!
Dec
6
comment Putting large amounts of data inside a self-contained Manipulate
@Ajasja Which is not dissimilar, since Compress is effectively used by images.
Dec
6
comment Installing RLink on Linux
@murray I am fully aware of that, thanks. There are some technical problems for Macs, hopefully they will be resolved soon, as I already mentioned.
Dec
6
comment Using a different version of R with RLink on Windows 7
@murray Well, it has been reported that you can use external R on at least some flavors of Linux. I can't promise anything, but I hope to be able to address this issue for the 9.1 release.
Dec
5
revised Is learning to use Mathematica useful for pure theoretical research in Mathematics and Computer Science?
added 31 characters in body
Dec
5
comment Is learning to use Mathematica useful for pure theoretical research in Mathematics and Computer Science?
@murray Well, I sort of implicitly included them into the checks I was talking about. But may be it is worth mentioning explicitly. Edited.
Dec
5
comment Using a different version of R with RLink on Windows 7
@Szabolcs Why don't you make that an answer? Because that's the only sensible answer there is. And if it fails, I really want to know about it.
Dec
4
comment Can I make a default for an optional argument the value of another argument?
Very nice, +1. The reason I did not go this way is that you will have to hunt down all occurrences of z and replace them with z/.Automatic -> y, and if you forget some, there isn't any easy way to see that, so for functions with more complex / larger bodies this will be harder to maintain. But for a simple function, this is quite elegant.
Dec
4
comment Reading in Huge Text Files
ReadList (and especially BinaryReadList) are good, but Java buffered reads can beat the hell out of them sometimes.
Dec
4
comment Reading in Huge Text Files
But that's really not an answer, I don't answer anything specifically. Here is my advice: narrow down the question, provide a sample file format, provide a download link to a sample file, and then perhaps someone will come up with a more specific answer. But first, try all those suggestions. If they work and you get an answer which is any general (so that it could be useful for future visitors), post your own answer and accept it, if no better one appears.
Dec
4
comment Can I make a default for an optional argument the value of another argument?
@rm-rf Well, redefinition of Module means that anyone who does that is solely responsible for the consequences. OTOH, assigning to a formal symbol is something much more innocent. At the end, we are talking about encapsulation, and I do prefer to use some built-in means for that. Module was made for encapsulation, while formal symbols can (may be, sometimes) be used for it. Re: readability - yep, WB, and also I do code in other languages (C, Java, js, R), frequently or occasionally, and this also forms certain mindset which gravitates to text editors and such.
Dec
4
comment Can I make a default for an optional argument the value of another argument?
@rm-rf Besides, what makes you think that \[FormalY] has not been uprotected and assigned a value? :)
Dec
4
comment Can I make a default for an optional argument the value of another argument?
@rm-rf Probably not, but from the point of view of language purity they are someting external. I want my code such that I would have no problem reading it from any editor, not necessarily Mathematica FrontEnd. And just typing \[FormalY] etc puts me off. A matter of taste, I guess.
Dec
4
comment Can I make a default for an optional argument the value of another argument?
@rm-rf I dislike anything which mixes typesetting and coding, when I solve a coding problem, so also formal symbols in this context :)
Dec
4
comment Can I make a default for an optional argument the value of another argument?
@Gabriel One must be careful with saying "x is impossible in Mathematica", I think most of us got into this trap at least once. Never say never :)
Dec
4
comment Reading in Huge Text Files
Well, I think that answer you refer to should be pretty clear, I gave a working example there. As for this comment: I meant to say that BinaryReadList can give you more speed than Import - you can see one of the links in comments above for an example. Also,I linked to another answer of mine, where I used Java to get the file read into Mathematica 50x faster than with BinaryReadList. That answer was tailored to the specific question, but it shows how to do that.
Dec
4
comment Can I make a default for an optional argument the value of another argument?
@Gabriel Sure, no problem :)
Dec
4
comment Can I make a default for an optional argument the value of another argument?
@Gabriel Well, a number of constructive uses of nested scoping constructs formally create variable collisions. Those who use that stuff know exactly how they are resolved, but it makes sense for the highlighter to generally warn about those. In this particular case, the way it works is that Block does localize the special variable created by Module, not the top-level yy, so things are fine.
Dec
4
comment Reading in Huge Text Files
Do you mean my comment or the answer I linked to?