« first day (1589 days earlier)      last day (2878 days later) » 

7:02 AM
Should the "canonical" answer to this question be updated:
116
Q: List of compilable functions

RojoIs there somewhere a list on the functions that Compile can compile, or the cases in which a particular function can be compiled that I haven't found? I'd be glad even with a list of some of them which surprisingly aren't compilable, and how to do without them. I am not happy every time I have ...

Since it is somewhat misleading - Tr cannot be compiled, but appears in this list
Which I think is because, as Jagra's answer (http://mathematica.stackexchange.com/a/19194/13162) explains,
"I don't think that is the correct interpretation of the list Sort[Compile`CompilerFunctions[]]. This list consists of those system functions that are pre-compiled."
 
Should I expect the first Button to work?
a = 1;
Button["Print", Dynamic[a++]]
Button["Print", Dynamic[a++];]
Button["Print", {Dynamic[a++]}]
Dynamic@a
 
7:54 AM
@OleksandrR. do you have any thoughts?
 
 
1 hour later…
9:11 AM
For those who haven't noticed:
In 10.4, ParallelEvaluate now auto-distributes definitions... mathematica.stackexchange.com/questions/111762/…
 
9:31 AM
0
Q: Evaluation leak from Dynamic in Button's action

Kubaa = 1; Button["Print", a++] Button["Print", Dynamic[a++]] Button["Print", Dynamic[a++];] Button["Print", {Dynamic[a++]}] Dynamic @ a The second Button is not supposed to change the value of a but it does. Have I missed something or is it a bug? Why it is not supposed to? Button[labe...

 
9:41 AM
@blochwave yes, I think you should certainly update it to mention that Tr is not compilable even though it appears in the list--well noticed. On the other hand, the information Jagra was given by support is indisputably wrong. I think that the appearance of Tr in the list (or the compiler's lack of support for Tr) may be a bug.
@blochwave what is even stranger, is that Tr is handled using the opcode 47 mechanism (supposed to be a jump straight to the entry point of the function code, no top-level interpretation, still fast). But unlike all other functions handled this way, the second part of the instruction contains not the function's name Tr but rather Tr[#1] &. This is like the normal and slow opcode 46 which copies data out of the VM into top-level symbols and invokes the full evaluator.
So, it seems that Tr does something special, or it's just someone's mistake not to handle it properly. I don't know if you will get any useful response if you raise this with support.
 
 
4 hours later…
2:15 PM
Needs["GeneralUtilities`"] (* Mathematica 10 package *)

BenchmarkPlot[
{Sort[#, Less] &, SortBy[#, N] &},
Array[Sin, #] &,
"IncludeFits" -> True
]
Hi, I ran the above code in V10.3, howover, it throw the following error. Did someone know why?
 
2:56 PM
26
Q: In 10.1.0 BenchmarkPlot doesn't work?

Mr.WizardBug introduced in 10.1 This bug was resolved in 10.2.0, but another bug was introduced in 10.3.0 persisting through 10.3.1 and finally resolved in 10.4 In Mathematica 10.1.0 and 10.3.0 BenchmarkPlot from the GeneralUtilities package doesn't work and we shall focus on the situation of 10.1.0...

 
3:09 PM
Quick question: Is there a built-in function that inserts a space before each capital letter in a Pascal case string? e.g. StringInsert[#, " ", (StringPosition[#, ToUpperCase@Alphabet[]][[All, 1]] /. {1 -> Nothing})] &["MyPascalCaseString"] to give "My Pascal Case String"?
 
3:21 PM
@Edmund My first thoughts were
"MyPascalCaseString" //
 StringReplace[a_?LowerCaseQ ~~ b_?UpperCaseQ :> a <> " " <> b]
 
Any ideas for the future of PackageData? I'm open to making major changes.
People have been talking about Github-based models etc. I don't rule out anything. We now have a collection of packages, that doesn't mean we can't present it differently or store and update it differently.
 
@MichaelHale Nice! Thanks. I was thinking of it as a StringInsert. Your way is much better.
 
 
4 hours later…
7:37 PM
@halirutan Can you help me?When I upload a image use SE Uploader,It will pop a error information like this
 
8:08 PM
@BobHanlon. Maybe an epiphany is just around the corner for me but why would including WorkingPrecision completely change the resulting value of a function? (I get the part about fixing round-off but doing so gives one the wrong answer: mathematica.stackexchange.com/questions/115916/…)
 
9:07 PM
@JimBaldwin He won't get the message (i.e. won't be notified) if he hasn't been to the chatroom recently.
 
10:07 PM
I am expecting the same Null behavior in TableForm[{{1, Null}, {Null, 2}}] that I get in Grid[{{1, Null}, {Null, 2}}]. Is this a bug or my misunderstanding?
 
10:31 PM
Thanks, @Szabolcs. @george2079 pointed me to the answer.
 
 
1 hour later…
11:39 PM
is there a standard way to do convex hulls in Mma? I need to do this in dimensions larger than 3
 

« first day (1589 days earlier)      last day (2878 days later) »