« first day (911 days earlier)      last day (3563 days later) » 
00:00 - 22:0022:00 - 00:00

acl
12:00 AM
@RolfMertig does this occur only when you mix patterns and literals?
 
Maybe it is because Contexts[] // Length is 388 vs. 448 ...
 
acl
seems like `Do[f[i] := f[i] = N[i] + i, {i, 400}]; First[
AbsoluteTiming[Nest[f[#] &, 1, 1000000]]]` is not slower
 
Alright @GuineaPig I'm out, I will try to take a look tomorrow, if any pro has any idea in the mean time let me know :)
Thanks @acl for testhing the code :)
 
Yep. I noticed that, too. But it really happens in larger programs: consistenly 20-25% slowdown (involving numerical calculations)
 
@Öskå Schlaf gut.
 
12:02 AM
@GuineaPig Danke, but I'm not German :P
 
acl
@RolfMertig and how about this
ClearAll[f];
f[1, x_] := 1 + x; First[AbsoluteTiming[Nest[f[2, #1] &, 1, 5000000]]]
 
@acl: around 13% slower.
need to sleep. bye
 
acl
@RolfMertig hm this is quite consistently slower
night
 
@acl Can I ask what you guys discussing? Just a curious.
 
@RolfMertig By all means. Send Wolfram Technical Support these examples. They're simple and concrete. The sooner issues like this are reported, the more likely we can get any fixes for any issues they reveal into the next build.
 
12:16 AM
Nvm, I've understood Rolf's comment.
 
Many people when they see something like this will send huge notebooks which require a considerable amount of effort to analyze and demand very concrete explanations. Tech support is probably very busy because of the release, so they may not be able to offer an explanation, but will make sure the appropriate person looks into it.
 
I'm not an expert but if it's slower, then isn't it related with computer resources?
 
1:21 AM
Awesome comment:
"Hey, that's my child!" -- "can you reproduce that?" no, each child is like a snowflake... lol — Mr.Wizard ♦ 38 mins ago
 
1:38 AM
This answer of mine never got much love, yet I think it is significantly useful:
4
A: MapThread over sublists of different length

Mr.WizardSince MapThread accepts a level specification, I think our ragged MapThread function should too. raggedMapThread[f_, expr_, level_Integer: 1] := Apply[f, Flatten[expr, List /@ Range[2, level + 1]], {level}] To solve the specific case posed in the question: raggedMapThread[ Count[{##}, 0] &

Any suggestions for how I might modify that answer to make it more interesting? Am I mistaken in thinking that this is a useful function?
 
@Mr.Wizard Getting richer (100k) only made you more greedy?
Congrats btw!
(seems I had already upvoted that one)
 
@Rojo Yes, this will be my new avatar:
It's not about the votes here; rather I put some effort into this function and I think it could be useful to a lot of people yet I don't think many people have seen it.
 
@Mr.Wizard Sauron. It doesn't look so different from your spider
 
@Rojo Thanks, btw. ;-)
 
2:11 AM
@brama What exactly do you try to do. I get for both the same error message.
 
2:27 AM
Hi @halirutan!
 
@Szabolcs Hey
 
I didn't expect to see you at this time.
@halirutan Sorry if this is a stupid question (I did read the docs...): can I turn off the IDEA complaints about semicolons?
 
@Szabolcs Had to do some paperwork and now I'm just too lazy to go to bed.
@Szabolcs Yes. Go to settings and Inspections
 
(Another thing coming, but W Community takes half a minute to load here!)
@halirutan Can you look at the last message here? I didn't reply yet.
And finally, a question to everyone in the room. How would you check that the diagonal of a matrix is all zeros, in a fast and elegant way? I have Union@Normal@Diagonal[mat] == {0.}.
 
@Szabolcs I'll do that. Thanks for pointing that out.
 
2:32 AM
@halirutan I just got 22:26:06 Throwable: Empty PSI elements should not be passed to createDescriptor. Start: PsiErrorElement:Closing ']' expected, end: PsiErrorElement:Closing ']' expected. Do you ever get these?
 
@Szabolcs yep. Just turn the inspection off. It's not finished yet.
 
got it.
 
@Szabolcs What about Norm[Diagonal[m]] == 0?
 
that looks good too!
 
2:48 AM
@Szabolcs PossibleZeroQ@*Tr@*Abs
PossibleZero not fast, right?
 
I wouldn't trust that to be fast.
OK, here's a bigger question:
I'm making an interface to a C++ class and I need to figure out how to create a nice and user friendly interface from Mathematica.
 
 
Objects are represented as Foo[id] where id as an integer. Then people would do foo = Foo[1] or something like that (actually, foo = MakeFoo[]). This part is fixed.
The objects have some properties. Some properties are mutable. There are also "methods" that can be called on the object.
I'm trying to figure out how to present all these possibilities to the user. If this is going to be user-friendly, I have to avoid potential surprises. Mutability can always be a surprise in Mathematica, so I'm trying to figure out a way how to make it very clear what operations mutate the object and which don't.
Right now I have this:
foo["SomeProperty"] will return a property.
ObjSetProperty[foo, "SomeProperty", value] will set that property. This is much more wordy, so I don't like it much, but it works.
There are also methods which can be called as foo["SomeMethod"][param1, param2]. This has two problems:
1. it's not so obvious that this can mutate the object
2. doing this prevents me from doing error checking on property names without too much fuss. I can't just do a generic definition like Foo[id_][s_String] := Message[Foo::nosuchproperty, s] because foo["SomeMethod"] would immediately evaluate trigger the error (that's because Foo[...]["SomeMethod"] has no assigned definition, only Foo[...]["SomeMethod"][...] has)
Any suggestions?
 
@Szabolcs Foo[...]@"SomeMethod"[param1, param2] ?
 
@Rojo Yes, InterpolatingFunction uses that syntax. What about the other things? Any ideas?
 
3:00 AM
@Szabolcs You mean, how to make it more explicit that the user is using a method that changes the object?
 
@Szabolcs You can use TagSet* and use SetProperty and PropertyValue with Foo objects.
 
TagSet is nice
I like it
 
Do you guys like SetProperty?
 
@Szabolcs Something similar to this is done in MATLink, I think... in error checking for valid options
 
@Szabolcs I never used the function SetProperty, I have barely used graphs
 
3:02 AM
I just really don't like that syntax due to its wordiness. But that's subjective.
 
@Szabolcs Why not TagSet as rm suggested, for everything?
 
@Rojo It's used for more than graphs now. I saw it used with MeshRegion I think.
 
@Szabolcs So something like Foo[...][method_String][param1_, param2_] := ... /; ValidMethodQ[Foo, method]?
The error message will be thrown by ValidMethodQ
 
Foo/:foo["Property"]=blah
 
This is where this question came form BTW. But I don't believe any more that it's possible to implement this reliably.
 
3:06 AM
@Szabolcs If you don't like SetProperty, then why not just overload it for Set?
Foo /: Set[Foo[prop_], value_] := Foo[prop, value]
This is also a more intuitive way to set a property (and you can mutate the object as you choose instead of a simple assignment)
 
@rm-rf But he has foo=Foo[id]
so no explicit Foo in foo["prop"]=value
Oh, but foo evaluates
 
@rm-rf I actually have objects of the form Foo[1], Foo[2], etc. Then these are assigned to variables, e.g. foo = Foo[1]. That integer is just a handle to a data structure implemented in C.
 
Damn, this is not like riding a bike
 
@rm-rf Set has the property that if f=g and f[1]=2 then it assigns a DownValue to g, not to f. But it turns out that after Set evaluates f to g here, there's no more pattern matching done, so any special properties of g won't take effect.
:16628577 No. foo is just a variable holding Foo[1].
 
@Szabolcs I know, but I didn't understand what you meant
 
3:11 AM
@Szabolcs Ok, then how about Rule?
Clear@Foo
Foo /: Rule[Foo[id_][prop_], value_] := Print@Foo[prop, value]
foo = Foo[1];
foo["hello"] -> "world"
 
AH
Got it
 
@rm-rf Interesting idea! It made me think of this:
Use the syntax foo["Property" = newValue] to set new properties? Instead of foo["Property"] = newValue. Ah, that's not possible because we can't hold in subvalue-definitions ... but maybe foo["Property" -> newValue]? Or does that look too confusing?
 
@Szabolcs I don't like the last one. Too much like an option, where you don't usually set anything
 
@Szabolcs exactly this is a framework I have implemented a few days ago
 
@halirutan What syntax did you settle on?
@Rojo I know what you mean.
 
3:16 AM
@Szabolcs The rule one is what I would (and often do) use
 
I have tested it now for several days and I still like it. I needed it for analysis results, where each each analysis is a biomedical object which has properties. In short, I use the following syntax:
 
Whoa!! Mathematica 10 does not raise an error when you make an assignment to a literal!
"foo" = 1
1 = 2
This should give a Set::setraw error.
 
@rm-rf I do get an error here
 
Did you overload Set @rm-rf ?
Would be quite a bug :D
 
Never mind.
 
3:20 AM
prop[Open] (* read file from disc *)
prop[Write] (* write but don't overwrite *)
prop[Overwrite]
prop[Properties] (*return all properties *)
prop["key"] (* return the property for key or Missing *)
prop["key"->value] (*set a new property *)
prop[{"key1"->value1, ...}] (*set several properties*)
 
All my messages were being piped to the messages notebook
 
@Szabolcs See above.
If a property key is already present it gets overwritten.
 
@rm-rf There's a setting for that.
 
Yeah, changed it back. (I don't know when it got changed, since I never use that setting)
 
@halirutan OK, you convinced me about ->. I wasn't sure for the same reason @Rojo doesn't like it.
 
3:23 AM
@Szabolcs With the new associations, overwriting properties (which is often what you want) is even easier... just add the new key->value to the existing one. Before, I'd filter rules, remove and then readd
 
@Szabolcs But my objects are not mutable. I always have to write prop = prop["key"->value] (and I want it that way).
 
@halirutan makes more sense that way.
 
I guess your situation is different and I think you're using your id as a C++ object point, right?
 
@halirutan Yes. Also using managed library expressions, which require this syntax. I have an std::map<mint, MyClass *> on the C++ side.
 
@Szabolcs Ah, ok. I used the pure pointers once without managing a map.
 
3:26 AM
@Szabolcs Yes. Best case scenario, "key"->val is natural for changing a property like associations, but if you wanted to be explicit about that op being mutable, it doesn look like it to me
 
@rm-rf Can you make an alias for called wstp? I think sooner or later we'll need that.
 
@Szabolcs What you are trying to do is not standard. Changing the state but not of the variable exlicitly being written
 
@Szabolcs Isn't there a nice Wolfram shorty for wtf? This would be awesome.
 
Perhaps you could use some other unused operator
 
@Szabolcs Which one should be the master tag? Are they identical in every aspect but the name?
 
3:29 AM
such as
 
@rm-rf It seems you haven't understand where all the 700 new functions in V10 come from :-)
 
@Rojo Yes, I hear you, it also makes me uncomfortable. I'm going to sleep on it.
@rm-rf Let's keep mathlink the master for now ... but people are already asking about wstp. Maybe in a year or two wstp will be the master.
I'm going to sleep on it.
Goodnight eveyrone!
 
@Szabolcs Can't find an operator. But something like *foo=value
where *sth is shorthand for whereItAims[sth], and you can upvalue it on Set
 
@Szabolcs Ok, let's sit on it for now and let both and evolve organically... we can merge and make one or the other master in a year or so. It is much much easier to synonymize, merge and make one the master than to do it hastily and then have to split it.
(not that I envision splitting it...)
 
@halirutan 457 are *Data stuff that seem to be as easily called from EntityValue
 
4:24 AM
Importing or exporting an mp3 just now hang my kernel
 
 
4 hours later…
7:56 AM
@Searke I did. Let's if we get a 10.0.1 pretty soon with this annoying slow-downs fixed. If I remember correctly 9.0.0 was also full of bugs.
 
 
3 hours later…
acl
10:41 AM
There was a question and someone edited it to add code blocks (it had none). I clicked on edit to add blocks myself, was presented with an interface to "approve" the edits, and approved them. Now it needs approval from one more user.
All I wanted to do was add the code blocks myself, but apparently I can't, all I can do is vote to approve someone's edits. Is this right?
it's this:
0
Q: My code is not converging using NIntegrate. Why? Help please

user18519I have been trying to see why this integration is not converging but to no avail. The output gives only the y-values but fail to give any real value for x-values. Rather I always have something like this: "0.1,-1,Re[NIntegrate[Abs[x + y - 1]^k*Sign[x + y - 1]*f[x, y, [Theta], [Rho]], {x, 0, 1}, {...

 
 
1 hour later…
12:01 PM
0
Q: The number of users - curious jumps

ArtesSometimes I check how many users of mathematica.stackexchange.com there are. I remember that a few weeks ago there were about 15 thousand and recently I've been surprised seeing that the new users are signed with numbers over 18000. Let's check this site, the new users therein have numbers sligh...

 
 
1 hour later…
1:06 PM
10
Q: Review queue vs. direct edit

halirutanI don't quite understand the logic behind the votes in the review queue. What bothers me is the following: I have enough reputation to do whatever edit I like without any approval. On the other hand, if some low-reputation user makes an edit it comes in the review queue where a single vote of me ...

 
acl
1:24 PM
@rm-rf thanks, makes sense
 
1:56 PM
Anyone knows how to change the mouse pointer color at notebook level? It is what keeps me from using a dark theme
 
@Rojo No idea. Post it. :-)
 
@Rojo that would be an OS setting, not a Mathematica setting, no?
 
@Öskå Thank you! :D
@MichaelStern Applications can control the pointer so theoretically its possible.
 
@MichaelStern I'd like that at a notebook level, not only inside a specific box
 
2:49 PM
Wow
Does AssociationMap work for you?
 
acl
3:12 PM
all, how on earth do I save a palette?
it used to be that if you made one, then moved it and then clicked to close it, you could save
now it offers to save, but saves the previously-selected notebook
@Rojo or @Mr.Wizard didn't one of you say something about this recently?
or was it someone else?
 
@acl MrWizard asked a similar (but not equal) question
I haven't checked up on it
 
acl
@Rojo ah, let me check. right now I have no palette to make indenting sticky between lines in the m editor, so it's useless...
 
@acl You can always use NotebookSave as a temporary solution.
 
acl
@Rojo yes, after I calmed down I thought of it. Well, thanks
 
@acl What do you mean? Isn't there an option that keeps indenting?
 
acl
3:17 PM
@Rojo option where?
@Rojo you mean global? I don't know, I had a button that I can press to enable this per m-file if I want
 
@acl Wait, my mma crashed
 
acl
@Rojo haha, OK :)
 
@acl I mean something set by style, a cell option
 
acl
@Rojo well, that is possible. I never messed with styles. also don't know how to edit the ones for the m editor.
 
@acl YOu mean wl editor? :P
Hehe
 
acl
3:20 PM
@Rojo ah yes. WL editor indeed.
 
@acl They seem to have StyleDefinitions -> "Package.nb"
So, we should look for that stylesheet
 
acl
@Rojo well, let me start on this tonight then. I need to first read up on how to change stylesheets etc (I did find out once upon a time, but forgot again)
maybe from one of your posts
 
NotebookOpen@
FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd",
"StyleSheets", "Package.nb"}]
 
acl
@Rojo aha. now I need to find out how to make changes stick.
 
@acl Option inspector, make it editable, saveable
 
acl
3:29 PM
@Rojo ah thanks
the options I change now (via a button) are
Cell[StyleData["Code"], PageWidth -> WindowWidth, AutoIndent -> True,
 AutoSpacing -> True, LineBreakWithin -> Automatic, LineIndent -> 1,
 LinebreakAdjustments -> {0.85, 2, 10, 0, 1}]
I don't remember how I arrived at this, probably just copied it wholesale from somewhere
yes, from the comments, from some post by David Reiss on the mathgroup
 
@acl Ah, great
I have never changed the Package.nb stylesheet. I am only assuming it works, why shoudln't it
but who knows
 
acl
@Rojo it was indeed AutoIndent
in the same palette I have a button with Dynamic[ToString[TimeUsed[]] <> "s", UpdateInterval -> 2]
when mma is sitting there doing nothing, it counts up like a clock, just a bit slower
@Rojo thanks
 
@acl Oh
So mma is always using cpu
 
acl
yes. here it is, sitting idle doing nothing, with no dynamic stuff visible apart from the palette
 
Grunf
@acl If you are still around, could you try AssociationMap?
 
acl
3:50 PM
@Rojo I did, seems to work
what is broken for you?
 
@acl It just isn't there. Only documented
Not recognized as a system symbol
 
acl
oh
 
Perhaps I messed up some way. Thanks
 
acl
it's there
 
@acl Clearly I messed up in a way that restarting doesn't help. Thanks
 
acl
3:52 PM
@Rojo maybe the init.m for your kernel?
maybe it's specific to linux?
 
@Rojo are you still here?
 
@TaliesinBeynon Hello
 
@Rojo Hi. Did AssociationMap break for you?
Can you describe the failure mode?
 
@TaliesinBeynon Yes, but it seems to be related to something in my $UserBaseDirectory. It just isn't loaded, it isn't found as a symbol. Investigating
 
Did this survive a Quit?
 
3:58 PM
@TaliesinBeynon Even a front end restart
 
ok, can i ask you to run some stuff?
first step is PacletInformation["GeneralUtilities"]
 
I load my mma with a custom user base dir. If I load it with the default one, it works (but it issues a message of a FailedQ shadowing conflict between System and GeneralUtilities)
@TaliesinBeynon On it. 1 sec
{"Name" -> "GeneralUtilities", "Version" -> "0.9.2",
"BuildNumber" -> "", "Qualifier" -> "", "WolframVersion" -> "10+",
"SystemID" -> All, "Description" -> "General utilities",
"Category" -> "", "Creator" -> "", "Publisher" -> "",
"Support" -> "", "Internal" -> False,
"Location" ->
"/home/rui/Mathematica/10.0.0/SystemFiles/Components/\
GeneralUtilities",
"Context" -> {"GeneralUtilitiesLoader`", "GeneralUtilities`"},
"Enabled" -> True, "Loading" -> Automatic}
 
acl
@Rojo oh wow, I hadn't realised that you were serious about .m->.wl
this is hilarious
(sorry to interrupt)
 
@acl Hehe. But actually, it's nice that finally mma scripts have a different extension than matlab's
 
@Rojo that's normal. Can you try SystemInformation["Small"], now?
 
4:04 PM
{"Kernel" -> {"SystemID" -> "Linux-x86-64",
"ReleaseID" -> "10.0.0.0 (5098646, 5098517)",
"CreationDate" ->
DateObject[{2014, 6, 29}, TimeObject[{19, 7, 59}]]},
"FrontEnd" -> {"OperatingSystem" -> "Unix",
"ReleaseID" -> "10.0.0.0 (5098646, 2014062703)",
"CreationDate" ->
DateObject[{2014, 6, 27}, TimeObject[{12, 25, 17.}]]}}
 
@Rojo thanks. that's normal too. it appears that somehow pacletmanager isn't creating autoloads properly
 
@TaliesinBeynon It must be someting inside the user base directory. I don'tunderstand paclets at all, but I would have expected all the default functionalit to be independent of the user base dir
However, changing the MATHEMATICA_USERBASE env variable to my old windows user base dir is making this difference
I am checking what exactly is to blame inside that folder
 
@Rojo basically, if you look at the raw PacletInfo.m files under SystemFiles/Components/* you'll see Symbols -> {sym1, sym2, ...}. The paclet manager uses this to populate autoload stubs on the actual System` symbols so that mentioning them will autoload the paclet
 
Ahh, ok
 
but in fact now that i think about $UserBaseDirectory is used to hold the PacletManager cache files
so it is conceviable that changing $UserBaseDirectory would mess with paclet manager
 
4:12 PM
@TaliesinBeynon It must be it. There's a Paclet folder in the UBDir
Btw, nice job on the Dataset
 
ok, so here's what you can try: run RebuildPacletData[] with abandon and see if it fixes anything
@Rojo: thanks! lots of work still to do, which is why we aren't advertizing it heavily yet. but i think the core idea, which is to extend the scheme used by Part to actually do computations, is quite a nice one.
 
@TaliesinBeynon Definately
RebuildPacletData[] and restarting kernel didn't help. I'll try restarting the FE
@TaliesinBeynon YESSSSS
@TaliesinBeynon Btw, the operator form of AssociationMap is not documented, not sure if it was on purpose
Thanks!!
 
4:29 PM
@Rojo, where can I find info about .wl? Or it's just a extension change, with no news?
 
@Murta Extension change I believe
 
Now in $InstallationDirectory we have MathKernel and WolframKernel
 
@Rojo What is the operator form?
 
Someone knows the difference?
 
@Murta Probably the same. MathLink also comes in two versions. One with ML prefixes and one with WS prefixes.
 
4:32 PM
@Szabolcs AssociationMap[f]@{1, 2, 3} creates <| 1->f[1], 2->f[2], 3->f[3] |>
Crap, AssociationMap is gone again
 
acl
@Szabolcs g = AssociationMap[f]; g[{1, 2, 3}]
 
@Rojo Got it. I thought there was a shorthand for it, like /@.
 
Ok, it's back afte RebuildPacletData[] again :D
I don't know if this would be doable, but having some sort of autocomplete for associations with not too many keys would be nice
 
@Rojo the big limitation is that the frontend doesn't track types of values. in other words, autocomplete is only syntactically contextual
@Rojo fortunately with the type system in TypeSystem` it becomes a bit more tractable to actually do this
@Rojo so you can imagine having somedata[[All, (* autocomplete happens here, based on the deduced type of somedata *) ]]
 
@TaliesinBeynon Exactly. It would be very useful
 
4:41 PM
@Rojo I think so too. And I think the holy grail is static type checking, with full algebraic types being inferred automatically
@Rojo it would be based on "lower bounds", so that we warn on things that CANNOT be right, rather than complaining that something is ambigious
@Rojo and then of course we can use this to do compilation via LLVM, and suddenly we're on the same footing as Julia and Rust and C++. at least hypothetically.
 
5:11 PM
@TaliesinBeynon You mentioned a type system several times. What is it exactly and how is it used?
 
5:33 PM
Any pro has any idea for mathematica.stackexchange.com/q/55127/1356? :)
 
6:05 PM
This morning I posted a pseudo-answer saying I would post a long answer to a question providing there was an indication of interest. Somebody up-voted the pseudo-anwer, perhaps ironically, but still I'm embarrassed. Maybe, I shouldn't have made that post. Any opinions as to propriety of pseudo-posts?
 
6:24 PM
@Szabolcs It is a package called TypeSystem` and it currently is used to model the type of data held by a Dataset. It's the beginning of a full algebraic data type description of data in Mathematica
@Szabolcs you can try it out by doing Needs["TypeSystem`"], and then you can things like RandomType[] and RandomData[type]. Also, there is TypeApply[func, {arg1, arg2, ...}] that does forward inference, and DeduceType[data] that infers the type of raw ata.
 
@m_goldberg In my view it's fine, especially given your disclaimer at the top. Everyone knows you're a valuable contributor here so I don't think there is any reason to be embarrassed. Personally I would either finish the post or delete it but I don't think it matters; if you leave it unfinished it will just sit at the bottom with fewer upvotes. No harm in that.
 
@mfvonh. It will either be completed or deleted. I promised that in the post.
@mfvonh. What embarrasses me is the up-vote. Don't think people should up-vote pseudo-questions.
 
@m_goldberg But that doesn't reflect on you, really. Do you feel undeserving of the rep? I can downvote it :P
 
6:40 PM
@mfvonh. No, not that. it's like someone was buying one those surprise sealed packages that go on sale often after xmas (reselling returned items). Don't understand why anyone will buy stuff sight-unseen. This feels like that and I wasn't asking for blind investment in a future answer.
 
What is the canonical way to test for the presence of a front end? Should I just check $FrontEnd === Null ? I need to test for this to make decisions about whether to use Dynamic in the output (to improve the user experience).
 
@m_goldberg Makes sense. I think it's just evidence that votes don't have a clear meaning.
But I don't think the upvote reflects on you at all
 
@TaliesinBeynon Can it do OCaml style type inference? (I don't know too much about this, I only looked briefly at OCaml years ago.)
 
7:14 PM
I just spent 10 minutes confused about an association (sigs)
Basically, sigs[First@Keys@sigs] gave Missing["KeyAbsent", "Sample Rate"]
Moral: never build an association such as this
<|"a" -> Missing["KeyAbsent", "a"]|>
 
@Rojo I won't do the -> thing for mutating object state, it is indeed horrible. What I should think hard about is how to implement these interfaces in a concise and simple way (for future projects) and preferably avoiding mutable state completely. What I usually have is some sort of "physics" simulation written in C, which I want to control from Mma. Usually I want to made the simulation interruptable and resumable and the object I was talking about contains the simulation state.
A very important point is to keep things easy enough to implement so I can focus on the work rather than the implementation details.
 
7:46 PM
@Szabolcs you mentioned in mathematica.stackexchange.com/a/43310/11116 to use ?NumericQ. How do I use it if I have an array as the argument?
 
@brama (VectorQ[#, NumericQ]&) should work :-)
make sure you use the ( ... ) after ?, e.g. vec_ ? ( VectorQ[#, NumericQ]&)
there's also MatrixQ and ArrayQ
 
@Szabolcs Thanks.
@Szabolcs you mean a space right?
@Szabolcs it worked..thanks
 
@brama no, I mean parentheses
vec_ ? ( VectorQ[#, NumericQ]&) works, but vec_ ? VectorQ[#, NumericQ]& doesn't work
 
@Szabolcs I got it..it worked too....
 
8:53 PM
I used to use Times for formulas, but it's not on Linux
Any suggestions?
 
9:50 PM
@Rojo http://www.linuxquestions.org/questions/linux-general-1/how-to-multiply-with-ex‌​pr-expr-3-*-4-doesn't-work-though-expr-3-4-does-631064/ says y=$(expr $x * 5)
 
acl
Since everybody is asking stuff of @Szabolcs, I'll abuse his time a bit more :)
I've tried to work out how the time taken by ConnectedVertices scales with the number of nodes. I created a graph $n$ nodes and randomly connect either 10 of them or $n/10$ of them, and get the timings below:
(I did each many times so timings are fairly reliable)
it looks like a power law, which is reasonable, but there's a jump.
a) do you know offhand if it really is a power law? I guess it is
b) any clue about the jump (again, offhand)?
 
@acl I bothered him..because he bothered to respond on my earlier question :)
 
acl
("no" is a perfectly good answer to both
@brama and to mine a few days ago, so...
 
@acl Then I guess we are perfectly justified in wasting his time :)
 
@ is almost transformed into invoking divine intervention
 
9:55 PM
@Rojo Sorry.. missed "\" before *
 
acl
@mfvonh well, attempting to
 
@acl No one ever swears it always works lest they have to prove it
Convenient
 
acl
@mfvonh good point
 
@acl I may have to try myself. I am determined to get to the bottom of MrWizard's step function. So far I am mostly managing to demonstrate that it works rather than why in my tinkering
 
00:00 - 22:0022:00 - 00:00

« first day (911 days earlier)      last day (3563 days later) »