2,010 reputation
712
bio website lauschkeconsulting.net
location Rahway, NJ
age
visits member for 2 years, 1 month
seen 5 hours ago

Mathematica, Java, Scala, C#, F# afficionado. Mooney lover. Steak lover. Linux lover (Fedora). German citizen. Politically: anti-bullshit. Financially: pro-bullshit. Apple hater. Pear lover. Hobby jurist.

Visit my Scala for Java Developers Class on udemy.com: http://www.udemy.com/scala-for-java-developers-transition-up


Jul
25
comment Using J/Link with Wolfram Programming Cloud
initial testing revealed that OnlineM lets you load JLink with Needs["JLink`"], but then upon ReinstallJava[] the kernel quits. I've also seen that it uses Java 7 update 13, which is quite depressing, given that the current Java is Java 8 update 11 since Jul 15. I'd assume that CloudM uses the same as OnlineM, but haven't been able to test yet.
Jul
21
comment Mathematica policy for correctness of results
a) What you describe is not warranty, it would be liability. b) WRI DOES actually provide warranty, if you read the terms. If the disk is broken, they'll send you a new one, and that is the maximum remedy. c) Liability in software is generally not offered, and if it's contractually agreed, then it's based on a custom contract, and not for standard software. But such contracts are rarely done, and the terms will usually specify things like free from liability, hold harmless, and indemnify. d) you really don't seem familiar with the regular business practices in the software industry.
Jun
28
awarded  Yearling
Mar
11
comment Elliptic curve cryptography in Mathematica
@Tyler: yes, I know Python is popular for crypto work. But you can't easily integrate it with M (at least to my knowledge), whereas with JLink it's right at your fingertips to leverage over from M to the JVM, and you mentioned "practical" in a comment.
Mar
11
comment Elliptic curve cryptography in Mathematica
As you want something practical, consider not writing it yourself, and instead using JLink to use EC algorithms from Java 7's JCA/JCE API: docs.oracle.com/javase/7/docs/technotes/guides/security/…
Jan
21
comment GUI Maker? Is there a perhaps drag and drop GUI maker for Mma?
Yes, create your own, using Java Swing, JavaFX, or WinForms, and then use JLink or NETLink. There are plenty of professional GUI builders out there. Note that JavaFX is the official replacement of Swing, so unless you have a deep background in Swing and have to learn one from scratch, learn JavaFX and ditch Swing.
Jan
1
comment Is Mathematica comparable to C++ for creating standalone applications?
That already makes it valid to nix this question. But ultimately, I think this question should be discussed in a much broader context, maybe on the community platform, because it's valid outside a uni context.
Jan
1
comment Is Mathematica comparable to C++ for creating standalone applications?
"stock" M defer to Java, we just don't realize it, because it's "hidden" in code that calls into Java under the hood. Ultimately, this group should decide what they/we mean by referring to M. The language, or the technology platform. The hobbyist users in this group, which comprise a large chunk, if not the majority, will see M as the language only. They want to see solutions only that can be punched into the M f/e. But M is much more. M is an enabling platform (again, I'm using official marketing materials). And what also doesn't help is the o/p's reference to a uni project.
Jan
1
comment Is Mathematica comparable to C++ for creating standalone applications?
Both posters below (as of 20140101, evening EST) confirm the problems you're getting into when trying to develop UIs. Obviously, you can create UIs in M that you can't create in the JVM or .Net, but also likewise, you can create UIs in the JVM and .Net that you can't create in M. In the end, what's possible vs. what's not possible depends on the question. The M f/e and the CDF are great if all you want is features already supported by the M system. Go beyond it, and you're stuck. Already the first item in the o/p's list, timers, is not really doable in a practical manner. And the timers in
Jan
1
comment Is Mathematica comparable to C++ for creating standalone applications?
valid. In addition, by using the JVM or .Net you have multiple programming languages available as well. I think the misunderstanding that many/most M hobbyist users have is that they are too much in love with the M language that they forget that M in and of itself is primarily a technology platform (I can support this with official marketing materials). WRI claims publicly that all of Java has become part of M (same would be true for .Net, by analogy). And you simply can't control threads from M, you need a parallelism framework such as is implemented in the JVM and in .Net.
Jan
1
comment Is Mathematica comparable to C++ for creating standalone applications?
Although I regularly, consistently get 2 downvotes everytime I post a solution that uses JLink, I want to mention the fact that using JLink and/or NETLink for several tasks is not only an "acceptable", but even recommended way to implement solutions that require features that go beyond "stock" M. JLink and NETLink and MathLink are officially part of M, and the marketing materials support this. The o/p is talking about threads and kernels, and you obviously can get more threads than kernels (which is a licensing restriction, not a technical one), so linking to the JVM or .Net is perfectly
Dec
31
awarded  Good Answer
Dec
20
comment ParallelTable and DistributeDefinitions
+1. Also note from the documentation: "DistributeDefinitions applies itself recursively to any symbols appearing in the definitions of the symbols s_i."
Dec
20
revised ParallelTable and DistributeDefinitions
edited body
Dec
18
comment Threads vs Cores: How many kernels need to launch in parallel Mathematica?
@OleksandrR."such as symbolic calculations in Mathematica, SMT should be quite helpful." -- yes, this is what I have included under "objects". Symbolic calculations in M are based on pattern matching, more specifically, term-rewriting. That is the foundation of M's symbolic engine, at the very core M is a term-rewriting system. But this is not what I was referring to when I mentioned "compute-intensive". No doubt that symbolic calculations benefit from HT. But those are not computations. HT does nothing when it comes to computations. Symbolic manipulations, yes, absolutely.
Dec
17
comment Threads vs Cores: How many kernels need to launch in parallel Mathematica?
For compute-intensive tasks, every thread needs its own ALU, and HT doesn't give you that. You have turned 4 physical cores into 8 virtual cores, but you haven't doubled the number of ALUs. You're almost back at square 1. I have done a lot of this type of benchmarking, and in my own comparisons turning HT on improved execution times 5 - 10% compared to the runs when I had turned HT off.
Dec
17
comment Threads vs Cores: How many kernels need to launch in parallel Mathematica?
HT is not a solution when your task is mostly compute-intensive, and most M tasks, especially when done in parallel, are done for compute purposes. When two threads run over the same core, they still share the same ALU, load/store units, etc. HT is great when you have to handle a lot of objects, for example for webservers, where you handle a lot of connection objects, request objects, etc. But for compute-intensive applications, HT gives you only a very small improvement, namely to the extent that the parallel threads don't use the same ALU -- and there is very little of that.
Dec
10
comment How to find the vertices of a regular tetrahedron? a dodecahedron?
@user64494:, yes that is indeed a difficulty. I never said it was easy, I wanted to show a very generic method that computes the coordinates of the nodes of polytopes, returning exact numbers (rationals). You could automate this, generate the equations/inequalities and rhs and objective functions from PolyhedronData, but a) this also wouldn't be very easy and b) why compute them if you can look them up directly? But, computing them was your requirement.
Dec
10
answered How to find the vertices of a regular tetrahedron? a dodecahedron?
Nov
29
awarded  Nice Answer