« first day (2745 days earlier)      last day (1753 days later) » 

2:46 AM
@b3m2a1 I've posted a question in the main site (I guess you've noticed it, right? ): mathematica.stackexchange.com/q/202668/1871
 
3:19 AM
The issue seems to be related to Internal`Bag:
bag = Internal`Bag[]
ml = LinkCreate[LinkMode -> Loopback];
LinkWrite[ml, With[{e = bag}, Hold[e]]]
holdbag = LinkRead[ml]
LinkClose[ml]
ReleaseHold[holdbag] === bag
(* False *)
 
 
1 hour later…
4:30 AM
@xzczd there's an important difference, though, in that ReleaseHold[holdbag] still generates a valid Bag.
 
4:49 AM
@xzczd @ChrisK here's something that seems potentially inauspicious for your hope to reconstruct the StateData object. Those Bag object inside the StateData object might not all be unique. That is to say some of them might originally be the same bag and thus need to be mutable together.
On the other hand... maybe not?
fullForm[e_, head_: Defer] :=
 Module[{ml, ff},
  ml = LinkCreate[LinkMode -> Loopback]; LinkWrite[ml, e];
  ff = LinkRead[ml, head]; LinkClose[ml];
  ff
  ]

ndssdata =
  First[NDSolve`ProcessEquations[{y''[t] + y[t] == 0, y[0] == 1,
     y'[0] == 0}, {y, y'}, t, Method -> "ExplicitRungeKutta"]];
NDSolve`Iterate[ndssdata, 5]
Cases[fullForm[ndssdata], b_Internal`Bag :> Hold[b], Infinity]
 
 
5 hours later…
9:51 AM
What's the best way to export animations for the web from Mathematica these days?
Considerations: ease and speed of export (speed is always a problem with Mma), file sizes (GIF is too big!), detailed control over frame rate (I might want 7 fps not 30 fps), supported by all browsers on desktop/mobile (animated PNG is not reliable)
What workflow do most people use?
I forgot to say that decent quality is also important—video codecs are usually optimized for natural images, not sharp lines like what we'd export from Mma
 
10:13 AM
@Szabolcs Ugly topic and you already mentioned all the things that are so hard to combine.
Later, I can mention all the tools I have used so far.
 
11:08 AM
@Szabolcs Here's one possible approach (although it's not super fast, the output quality is easily controllable): Export to .avi with Mathematica, and then convert to .mp4 (you can do the conversion manually, but it should be straightforward to automate this by calling ffmpeg or similar).
 
 
3 hours later…
2:11 PM
posted on July 25, 2019 by Keren Garcia

Since I started working at Wolfram, I’ve been a part of several different projects. For Version 12, my main focus was replicating models of the uniform polyhedra with the Wolfram Language to ensure that the data fulfilled certain criteria to make our models precise, including exact coordinates, consistent face orientation and a closed region in [...]

 
2:41 PM
@b3m2a1 @b3m2a1 @xzczd @MichaelE2 I've created my first working NDSolve`StateData by copying the bits from a working one, so seems like there's nothing magical preventing us from making our own
I'm on vacation, so figuring out the internal bits of StateData will be a relaxing puzzle to work on
one thing I encountered is that the ExperimentalNumericalFunction in there seems like it can't be created from ExperimentalCreateNumericalFunction (the format is kind of different)
but it can be make manually
also, I'm using my old v10.3, since I can extract elements of test StateData's there
so... stay tuned & thanks for all your help so far
 
 
2 hours later…
4:25 PM
@ChrisK Great! I think I noticed that about CreateNumericalFunction before. Similarly, I don't think ProcessEquations uses Interpolation to construct the InterpolatingFunction. Things come out of NDSolve you can't do with Interpolation.
 
4:58 PM
@ChrisK it will be neat to see how the form of syntax carries over to newer versions! I anticipate quite well--this is my favorite kind of programming with Mathematica/Wolfram Language, when we get to pry it open as best we can and do reeeaaaallllyyy cool stuff! Looking forward to updates and seeing how best I can implement the findings in my own work!
 
5:09 PM
 
 
1 hour later…
6:36 PM
@ChrisK is this relevant at all? Or have you seen this page in v12? tutorial/NDSolveStateData
 
7:15 PM
@CATrevillian thanks but yeah, seen that one! anyhow, things seem to be going OK but there are a lot of parts to put together
 
7:30 PM
posted on July 25, 2019

Science & Technology Wolfram Research developers demonstrate the new features of Version 12 of the Wolfram Language that they were responsible for creating. Previously broadcast live on July 25, 2019 at twitch.tv/wolfram. For more information, visit: https://www.wolfram.com/language/12/nonlinear-finite-elements/?

 
 
2 hours later…

« first day (2745 days earlier)      last day (1753 days later) »