60,587 reputation
6183275
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 38
visits member for 2 years, 10 months
seen 4 hours ago

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


10h
awarded  Guru
14h
awarded  Enlightened
15h
awarded  Nice Answer
1d
awarded  Enlightened
1d
awarded  Good Answer
1d
awarded  Nice Answer
Nov
20
comment How to abort silently?
@JacobAkkerboom You are probably right. I guess I just used the mental pattern I had for $Pre, automatically.
Nov
20
comment How to abort silently?
Well, you can use something like this: $Post = Function[code,Unevaluated[code]/.$Aborted->Null, HoldAll].
Nov
20
awarded  Enlightened
Nov
20
awarded  Nice Answer
Nov
18
comment $Epilog does not work when exit
It might be possible, but that would require the knowledge of the specific Front End hooks, which would need to be defined instead of $Epilog, provided that such hooks exist (if they exist, I am not aware of them).
Nov
18
comment $Epilog does not work when exit
My guess is that for both of the two methods you mentioned last, the $Epilog hook is not triggered, because they quit the kernel via a different route. Presumably because they both are initiated by the Front End. Let's wait for someone with a deeper knowledge of this mechanism to comment on this.
Nov
18
revised $Epilog does not work when exit
added 12 characters in body
Nov
18
awarded  Nice Answer
Nov
16
answered Using a held option
Nov
16
revised Quickly test if all element in list is the same
Removed the compiled version
Nov
15
answered Quickly test if all element in list is the same
Nov
15
comment Efficiently reading CSV with ReadList
@Thijs The first link I gave is to code which de facto uses Import (via ImportString), so you can give the same spec there. If Import works for you in principle (but is just slow), then that code should also work for you (but be faster / more memory-efficient). If Import can't handle your format, then it is another story. You might need to write some custom parser.
Nov
15
comment Efficiently reading CSV with ReadList
In addition, you could use this solution to transfer your file into chunked form suggested there - which would allow you to load those chunks on demand. You could combine these two, to have a workable solution. You can also look at this question (of which your question seems to be a duplicate).
Nov
15
comment Efficiently reading CSV with ReadList
Unless you have huge amount of memory, you won't be able to import this file as a whole, in any case, because typically Mathematica uses 10-20 times more memory in RAM than the size of file on disk, due to its symbolic nature (unless packed arrays and other efficient structures are utilized, which won't happen automatically during import). Have a look here for a solution which effectively uses Import, but splits the data into chunks and might work for you.