Repository navigation
v0.1.0-beta.4
Pre-releaseFourth beta, two weeks after beta.3. It is the code W718's comparison measured: five complete timed passes against XPPAUT 8.0, AUTO-07p and Python, on binary 53b8305, with one later fix to the core (W937, which lets the page's settings through with no model open). The largest changes:
-
Native code in two tiers: TinyCC compiles a model at once and MIR's code takes over for long runs; start-up is faster, array equations compile to one loop, and a model TinyCC refuses no longer hangs.
-
autoX: one worker pool kept across runs, collocation threads from a smaller mesh, faster short runs, a Run dialog for a person, every label type with its own mark, Follow all branches without repeats, and a torus curve's branch point and resonances found at any Newton tolerance.
-
The page: Open model, save and load open the file picker at once; "Save first?" follows one rule; the start screen follows the theme; notices cover no control; a run's end says what it found and what can be followed.
-
Security: the browser page's token comes from the system's random source, or xppautX does not start.
-
The page's settings are accepted with no model open: the start screen's theme toggle and the panels' settings (
settings.configureandsettings.resetof the user's settings.json) were refused with "No model is open", and the errors covered the page (W937 The page's settings are accepted with no model open, #1020); a model folder's setting (scope folder) still needs a model. -
autoX's collocation uses its threads from a smaller mesh: workers start once dimension x dimension x mesh intervals x collocation points reaches 256 (was 1024), since W912's pool, kept across runs, made threads pay at every size measured (lecar's cycles 1.12x faster on 2 threads at 512); the numbers are the same at any thread count.
-
A model whose native code TinyCC refuses no longer hangs: the compile waited on its own lock while it threw away the refused code, and the run waited on the compile (W924 Windows unit tests hang in test_exact_jacobian since W895, #1006); the run now goes on with MIR's code or the interpreter, TinyCC's error logged once. On Windows TinyCC refused every model with a function whose stack frame is a page or more (mu26, motoneuron6c: "unresolved reference to '__chkstk'", its stack-probe routine, which a compile without TinyCC's runtime library lacked), so those models ran on the interpreter until MIR's code was built; TinyCC is now given the routine and compiles them.
-
Exporting the animation as frames or a GIF from the page writes its pictures: the page drew the animation's frames only on screen and answered the core's request for a frame's picture with a cancel, so the export ended with "The client gave no picture of frame 1" (W923 Two web2check checks are FLAKY: updates with the switch off, and clicking File, #1005); the page now draws the frame it holds off screen, at the size of a kinescope frame.
-
The browser page's token comes from the system's random source or xppautX does not start, and a request longer than 1023 bytes is refused with 414 instead of cut (W904 The local server's token comes from the system's random source or the server does not start; request targets too long are refused, not cut, #986): where /dev/urandom could not be read the token was made from a seeded
rand(), which a local user could guess; now the failure is shown at start and no port is opened. A request target of exactly 1023 bytes is served (it was refused), and one longer is refused with 414 whole, never cut. -
Stop reaches the diagram of a stopped autoX run sooner, and a page that reads slowly holds up no command (W903 ab.odex's live-jobs check races the diagram limit, and Stop takes 20 s to the join, #985): with a diagram of 400 000 live points the page drew the join's points as they came, 120 times, a diagram's draw taking up to 0.8 s each, and read nothing meanwhile, so Stop to the join took 7 to 11 s here (20 s on a slower machine); the join's points now wait for the run's end and are drawn once, and it takes 3 to 4 s. The program's event streams are written under a lock of their own, so a command (a Stop) never waits for a page that reads slowly.
-
autoX's collocation threads and a sweep's runs go on one worker pool that the session keeps from one run to the next (W912 One worker pool for autoX and the sweeps, kept across runs, #994): each autoX run and each sweep started its threads and stopped them at its end, so every run of a session paid again for the thread starts; the pool is started by the first run that needs threads, resized only when the thread count asked for changes, and joined when the session ends. ode_ma23's second cycles run at 4 threads starts none of its 3 threads (3
clone3calls in its window before, none now); values are unchanged at every thread count. -
A run on a machine with a spare processor starts on the interpreter while TinyCC compiles its code on a thread of its own: the first row of a short model comes sooner (W895 Compile TinyCC's code on a spare core while the interpreter starts the run, #977): izh_2003_rs's first row 2.2-2.4 ms to 1.8-1.9 ms, kuramot100's 4.3-4.6 ms to 2.8-3.3 ms on 2 to 8 cores; values are unchanged.
-
A torus curve's branch point and 1:2 or 1:1 resonance are found at any Newton tolerance (W898 forced_pp_ns's converged exact run lost the BP and R2 on ns_up since W617, #980): at tolerances like 1e-10 the corrector cannot converge close to theta = pi, where the curve's equations are singular, and the point was lost; the search now ends at the last point it converged on when that is within the square root of the special-point tolerance of the zero, where the curve's parameters (stationary in theta there) are within the tolerance of it, and a branch point and a resonance that close are one point.
-
A file read in pieces (autoX's run files kept at a run's end) stops at the first short piece instead of opening the file once more to find its end (W893 forced_pp_pd's steady rows: the first autoX run's extra syscalls and page faults, #975); docs/protocol.md's
changednow says what W884 made it. -
A short autoX run is faster: forced_pp_pd's steady run (100 steps, finite-difference Jacobian, one CPU) takes 1.53 ms instead of 1.78 ms, W617's being 1.23 ms (W892 forced_pp_pd's steady rows are still 1.5-1.8x W617's after W865, #974): the unsaved-changes flag no longer writes the whole session state at the first state event of a running command or after a run that stored rows or points, the session's random generator and every string the state text quotes are written without a character-by-character copy, a folder walk stats one level below its anchor instead of every level above it, a scratch check of a path that names no scratch folder touches no file, and a formatted line is appended in one piece.
-
After Stop the page stops drawing the live points of the stopped autoX run it has not drawn yet: the join's diagram replaces them, so the window is ready sooner (W885 After Stop the page skips the live points the join replaces, #967)
-
A session saved or opened with nothing changed since is not asked to be saved again when another model opens, is reloaded or quit (W880 A session just saved is not asked to be saved again, #962); a change, or an autoX run, after the save is still asked about
-
"Save first?" and the unsaved-changes dot follow one rule: the session file the next save writes differs from the last one saved or opened, so a closed autoX view, a graph's labels or any other change the file keeps counts, not only the values (W884, #966); before, leaving after such a change discarded it without asking.
-
The start screen follows the theme and has the title bar's theme button (W875 The start screen follows the dark theme, #957): it drew light whatever the page's theme was (the dark theme came only from the first render), now the theme in force, the page's own choice included, with the same toggle as the title bar.
-
A notice (a file saved or downloaded) covers no control at any width (W881 The download toast does not cover the Values panel, #963): it floated over the lower part of the Values panel and the plot's axis names; it now has a strip of its own between the work area and the status bar.
-
On the dark theme a color too dark to read is drawn lighter (W874 The page lightens a color too dark for the dark theme, #956): unstable periodic orbits'
#0000ffis a lighter blue there, the core's colors and the pickers unchanged -
Every open, save and load opens the file picker at once (W873 Every open, save and load opens the file picker at once, #955): a File-menu command that took more than its file showed a form first; now its extra choices come from the file's extension (a graph, diagram or array plot export's pdf, svg or gif; Import values file's
.paror.ic; an animation's.gifor.ppm), from the active window, the value in force or the menu item, and a command left without its format takes it from the name picked (an extension that names none or two is an error listing them). Open a recording no longer asks whether to play (playis optional, left out: false), and a browser opens its picker from the click itself. Fit data, Edit table, Tabulate column, Array plot range and Output keep their form. -
autoX continues a model that uses t at a frozen t, chosen by name (W867 autoX continues a model that uses t at a frozen t, chosen by name, #949): the option
continuation.frozen_time(a number, off by default: empty) holds t at that value for every equation the run evaluates, and the run's Output says once what t it holds and which equations use it. Without it a model whose equations use t is still refused, now naming the option. The same in the window,--serverand--silent; XPPAUT has no such option, so a.odemaps nothing. -
A run's end says what it found and what can be followed from it (W860 A run's end says what it found and what can be followed from it, #941): with Follow all branches on, a branch with only a fold and two ends at limits.parameter_min looked unchanged; now autoX's Output says per branch what it found and why it stopped ("Branch 1: fold (LP 23) at hfix = 0.2701; stopped at point 57: ..."), then "From LP 23: a two-parameter continuation", and "No branch point or Hopf point to follow" once when nothing found could be followed. The same text goes in the new
autox.summaryevent for the page. -
Codes that meet in the autoX diagram are written apart (W871 Two diagram labels at one point have their codes run together, #953): EP 1 and AH 2 on one spot printed "EP 1AH 2", and EP 17 and LPC 16 touched at a phone's width; a code now keeps 2 px clear of the next one, and one that would touch an earlier code moves down or up a line, in the diagram's picture (the same placement as before for codes that already stood apart).
-
File > Open model opens the file picker at once, with no form in front (W853 File > Open model opens the file picker at once, with no form in front, #934): the menu item showed a form with Example and Recent fields before the picker; a command whose form would ask only its file (Open model with its examples and recent models, a file-only export or import) now goes to the picker at once, as the start screen's Open model does, and the recent models and examples stay on the start screen.
-
Forms, menus and errors show user text only (W856 Forms and menus show user text, never the protocol's, #937): descriptions no longer name
hello,--server,autox_run,autoxinfoor a command id, an option's label is its name with dots and underscores as spaces ("Limits parameter min", not "Limits.parameter min"), and a .autox run that names an option the Numerics lack is refused at that option's own line and column, naming the run ("h up") and the nearest option names. -
Opening a
.autoxopens the autoX window with its script (W854 Opening a .autox opens the autoX window with its script, #935): from the command line, File > Open model or Explorer/Finder, the autoX window is the active tab at once, its Script panel listing the runs, where before the time-series graph showed ("No trajectory yet") and the autoX window waited for autoX > Open. Nothing computes;.odeand.odexare unchanged. -
Every label type has its own mark in the autoX diagram (W863 Every label type has its own mark in the diagram, #945): the shape gives the kind of point and the fill says what it lies on (filled for an equilibrium's label, hollow for a cycle's: LP a filled triangle, LPC a hollow one); a small filled square is a two-parameter point (BT, CP, ZH, GH, R1-R4, LPPD, LPNS, PDNS, NSNS); a bar is where a branch ended, and its code says how (EP, SNIC, HOC, HEC, HBE, CL); the code is drawn beside every special point, even in a dense diagram; the key draws the same marks. The mark table is one place (web2/src/plot/diagramModel.ts LABEL_MARKS), tested by web2/test/labelMarks.test.ts.
-
autoX > Run is a dialog for a person (W855 autoX Run: a dialog for a user, not the registry's flat form, #936): five steps in the order a person thinks, where to start (a labelled point or the current state), what to compute (only the kinds that start allows), the parameter with its direction and the range it stops outside, the branches, and the numerics as one group prefilled with the values in force. It sends the same
autox.runa script sends; Both runs the start once each way, as two runs in turn. -
A branch started at a label takes a number no branch in the diagram has (W869 A branch started at a label can take a number another branch has, #951): a periodic run from a Hopf point, a branch switch, a boundary value or an optimisation restart numbered its branch as the label it started from, so its cycles could share a number with an equilibrium or Hopf branch (ode_motoneuron6c's cycles from label 10 and its Hopf curve); the branch now takes the next free number, and its
fromkeeps the label. -
A boundary value or homoclinic branch's points have no stability: the diagram CSV writes
not_applicablewhere AUTO-07p's sign + read as unstable (the info strip names the kind ("Boundary value solution") with a Stability row "Not applicable", the legend and branch rows name the kind, the page draws a thin solid line, the protocol'styis 5 andcalcnames the kind); the numbers are unchanged (W866 Boundary-value and homoclinic branches are not written unstable, #947). -
A script's run that is refused before its first step adds nothing and says so (W857 A .autox script runs only what it names: no repeated or stray branches, #938): a run that follows all branches from a start outside the parameter window (the lab's "h down", which began at hfix = -7e-5 and stored a one-point branch) now ends in an error naming the start and the bounds, with no branch and no point; the Script panel shows the error on that run's row instead of Done, the
autox.script_runsevent carries it (error), andxppautX script.autox --silentexits non-zero. Variant (b) of the same card: follow all branches stays on in scripts, and a script run whose start lies on a branch the diagram already holds is not made (its row shows Skipped and why, the log says it once, no error), instead of tracing the branch again (the lab's pvn_bif_current script wrote its 476-point cycle branch three times). A script's periodic run from a Hopf point whose cycles a follow-all job already traced replaces that copy (W868 Follow all branches traces a Hopf point's cycles twice, #950): the named run runs with its own options, the copy leaves the diagram before the run stores its branch, and the log says once which branch it replaced; the lab's pvn_bif_current script then stores its cycle family once, from "cycles". -
Follow all branches no longer computes a branch twice (W862 Follow all branches recomputes branches already in the diagram, #943): the equilibria through the end of a cycle branch at a SNIC or a Hopf point started again, and retraced a branch the diagram held, when the end was a little off the fold or Hopf point the equilibria's run had found (the lab's HCN model: 20500 of 42206 points repeated). A start that lies on an equilibrium branch already in the diagram now starts no job, and a note says why.
-
autoX runs no longer copy their result files into place (W865 autoX's kept run files are moved into place again, not copied, #946): a run's end renames its .b, .d and .s files over the session's own, as before W739, instead of streaming each one into a new file; a few tenths of a millisecond per run. The files hold the same bytes.
-
A model's derived parameters are worked out by one compiled function instead of one a formula (W846 The derived quantities as one native function, #927): a fit or an autoX run with a difference Jacobian works them all out at each evaluation, so on a model with many (ode_mu26_control, 257) one call a formula was most of a short run; its equilibrium continuation took 66.9 ms and takes 56 ms. The values are the same bit for bit.
-
xppautX starts faster (W839 xppautX's start-up is 1.3-1.5x XPPAUT's on the small models, #920): a start with no page (
--silent,--convert, a recording) no longer probes the program's folder for the update plan (a file made and removed, after a listing of the folder), and loading a model no longer probes$HOMEfor a place for autoX's files, which the first autoX run chooses anyway; izh_2003_ch's one step from process start runs 0.85 M instructions fewer (8.16 M to 7.31 M, 10%) and about 0.5 ms sooner (2.5 to 1.9 ms) on a quiet machine, the results unchanged. -
A run starts on TinyCC's compiled code at once, and MIR's code takes over for long runs (W821 TinyCC compiles first, MIR takes over for long runs, #902): the IR of a model is lowered to C text that TinyCC (LGPL-2.1, vendored again) compiles in memory, bit for bit the values of MIR's code (a unit test compares both on every construct, Repeat included), so a short run pays no MIR compile; MIR is built on a thread when a processor is spare, else once the work done in TinyCC's code is worth its compile (the node evaluations a run has made, counted with the module functions its calls run, against the nodes of the code; the measurements are in model_native.cpp, where the constants are), and every right-hand side's check for a build to start or take is a few loads now, which took 3 M of izh_2003_rs's 22 M instructions. One pinned CPU, instructions, W617 / master before W821 / now: lecdiff800 4.94 / 3.95 / 3.93 G; lecdiff1600 4.66 / 3.68 / 3.62 G; kuramot100 31.6 / 28.08 / 28.10 G; mu26 400 time units 2.77 / 2.62 / 2.63 G; lecdiff200 Runge-Kutta 399 / 338 / 338 M; clustor 843 / 1451 / 867 M (MIR never starts: its compile is worth more than the run; TinyCC's lowering and compile cost more at load than W617's); mu26 Euler 113 / 167 / 107 M; amari 793 / 873 / 795 M (user instructions); lecar 23.7 / 26.0 / 19.1 M; izh_2003_rs 22.4 / 21.2 / 18.8 M. On two CPUs the long runs are at or below both: lecdiff800 3.93 G (4.93, 3.97), lecdiff1600 3.62 G (4.62, 3.66), mu26 400 2.63 G (2.77, 2.74), kuramot100 28.1 G (31.6, 28.2).
Added
- The options panels group their rows in sections that fold on their own, with the option count: a section starts folded when all its options are advanced or none applies to the method, a low and a high option of one range show as one field, and each switch keeps its label beside it. The "Options not used by this method or model" disclosure is gone (W811, #892).
- The option
global.min_step_fraction(keyglobal_min_step_fraction, default 1e-10): the smallest fraction of a step a global event's crossing is placed at. XPPAUT has only the fixed STOL (W804, #885).
Fixed
- A page that cannot close its window, or cannot tell whether a downloaded update is newer, says why in its log: before, the close failed and the update's offer was dropped with no word (W906, #988).
- After autoX's Close, the page sends no command for the closed view: a zoom its chart reported while the close was in flight was held and sent at the close's own done as
autox.set_display, which the core refused withUnknown window "diagram_1"(W886, #968). The page drops that change, and any it holds for a view it closes. - A follow-all branch job whose points repeat another branch says so in autoX's Output and the summary, once: "Job [1, 10] repeats branch 4 of job [0, 46]: its points are not kept". Before, the join dropped it silently, and a run that followed a point with no kept job said "No branch point or Hopf point to follow" (W882, #964).
- autoX's Grab goes straight to picking on the diagram: its form, empty, no longer opens first (the row's arguments are all optional and it has a pick mode,
pickin the registry row; W878, #960). - The autoX script panel's runs fit at 375 px: each run's Run stays on its row, and the run list scrolls above the status bar, Run all below it (W879, #961).
- A periodic orbit's no-convergence stop at the smallest step names mesh.intervals and its value as the option to raise (W876, #958; W877, #959): lecar's cycles from its Hopf point at the default 15 intervals stop at iapp 0.083257, near the SNIC on the fold, which 30 intervals reach; the default stays 15, XPPAUT's (maintainer, 2026-11-25). An equilibrium branch, which has no mesh, does not say it
- A steady state's first point of a run or a branch is stored with the eigenvalues of its own Jacobian and the stability they give, and a periodic run's first point with its own Floquet multipliers (the same orbit's values where a stored point gives them, else the pencil's; a Hopf start's exp(lambda T)): before, it had zeros ("not computed") and a sign that read unstable, and an equilibrium's period was the solver's leftover (W858, #939). A steady state's period is now not applicable (
nan, written asnanin the diagram CSV and the session file, and the info'sperisnull), except at a Hopf point or on a Hopf or neutral-saddle curve, where the orbit it starts has that period (AUTO-07p's value there). The Hopf point's period and the other point types are unchanged; the autoX baselines change accordingly. A stable first point, now signed -1, is still the first point when the diagram is redrawn or exported as PostScript. A periodic branch started at a Hopf point is critical: its first point takes the stability of the branch's next point (the limit of its cycles' stability as the amplitude goes to zero), its multipliers staying exp(lambda T) (W858, #939). - TinyCC's code, the first tier of a run, calls
negagain for a unary minus (W840, #921): W838 gave it TinyCC's-x, which stores the double, flips one byte and loads it back, a store-forwarding stall in every minus; clustor's silent run took 94.5 ms against 65.6 ms before, and takes 65.5 ms now (430 M cycles to 304 M, one CPU). MIR's inline flip, and W838's gain, are unchanged. The values are the same bit for bit. - A unary minus in native code is a sign flip, not a call (W838, #919): MIR's code called
negfor every-u, and with thousands of equations each making two calls the CPU mispredicted the indirect call about 40% of the time; clustor on backward Euler took 1.33x W617's time, now 0.84x (8.7 s to 5.3 s here, 35.4 G cycles to 25.6 G). The values are the same bit for bit. - Exiting while MIR's build thread still compiles no longer aborts the Windows program with
std::system_error(W837, #918): the thread tells the core it is done through the build's own mutex and condition variable, notstd::atomic's wait and notify, whose waiter pool libstdc++ keeps in a static object that exit destroys where the platform has no futex. A failed run replayed from a recording, which exits at once, met it (CI run 44589021460). - A
session.get_statetaken during a computation sends itssession.statebefore itsdone, as every command does, showing the values the run runs with. Before, it sent only thedone, and a state event came from the run's first stored row, whenever that fell in the client's window (W825, #906). - The native code of a large exact Jacobian compiles in time linear in its size (W816, #897): the terms are written as each is computed, in an order that holds few values at once, so MIR's register allocation no longer grows quadratically: a 1000-state ring's Jacobian compiles in 0.4 s (was 2.5 s), 2000 in 0.8 s (was 15.9 s), 5000 in 2.3 s (about 18 min); the values are unchanged.
Changed
-
The autoX view after a run (W859, #940): the plot keeps most of the height (the branch list under it, or beside it from 80 rem); the toolbar is Run, Grab, Script, Fit and a ⋯ menu that holds Axes, Numerics, Mark values, Hide earlier branches, Reset zoom and the sets; the key is one line; a branch list (an eye, the parameter range, where a periodic branch started, chips that grab the special points it found, why it stopped) replaces the per-branch legend; a run's end fits the axes to its new branches with Undo; output points are faint dots with no number; the status is one line, Output at its end.
-
autoX's Special points (the continuation options) is a set of check boxes, one per codimension-two kind and labelled as a choice is, not a text of raw names (W870 The Special points option is a list of choices, not raw names, #952)
-
sinis faster for arguments below 1/16 in size (W833, #914): our copy of CORE-MATH's correctly rounded sin takes a new first path there, rounding by a test relative to the result, where CORE-MATH's absolute one failed for nearly every argument below 0.1 and sent the call to its 128-bit path (29 to 42 ns a call against 2.3 ns now). kuramot100-dopri8's one-step row, whose phase differences are 1e-4 to 1e-2, spent more than half of its cycles in sin. Every result is the same bit as before. -
autoX's collocation threads spin for up to 100 us for the next dispatch before they sleep (W835, #916), as AUTO-07p's OpenMP threads do: a Newton step's three dispatches follow within tens of microseconds, and a sleeping thread took as long to wake as the small mesh gave it work. ode_ma23's cycles at 4 threads take 0.097 s (was 0.109 s; AUTO-07p 0.079 s); the values are the same bits.
-
autoX's collocation workers no longer share one counter (W834, #915): each right-hand side call of a worker added to the native-code counter of the Session, a data race and a cache line all the cores fought over, which held a four-thread periodic run to 1.6x of its one-thread speed. Now each worker counts into its own run, in the right-hand side and the exact Jacobian alike, and the caller adds the counts after the dispatch; the same diagrams to the last bit. A solve condenses and reduces every chunk of intervals in one dispatch and back-substitutes in one (3 per Newton step, were 7), and the workers set up their own intervals' blocks, pseudo-arclength rows and, for the periodic family, integral conditions: at 4 threads forced_pp_pd's pd_down takes 0.22 s (was 0.38 s), ns_up 0.084 s (0.115), torus_down 0.072 s (0.107), ode_ma23's cycles 0.118 s (0.161).
-
The period-doubling and torus (Neimark-Sacker) curves differentiate their system as AUTO-07p does: the orbit's block takes the model's own Jacobian, only the orbit's columns are differenced (twice for the period-doubling system, three times for the torus one, the variational blocks no longer), so a Newton step evaluates the model's Jacobian a third to a half as often and the curves of forced_pp_pd take 0.60 s at 1 thread (was 0.71 s; AUTO-07p 0.54 s). The curves' digits change at the 1e-9 level (and a near-double multiplier at a strong resonance by more, its split being the square root of the error): seven autoX baselines were rewritten (W832, #913).
-
autoX's collocation workers condense each interval's right-hand side too, where only the matrices were shared before: forced_pp_pd's period-doubling curve at 4 threads takes 0.35 s (was 0.39 s); the values are the same bits (W832, #913).
-
A start no longer reads every entry of the system's temp folder: a stale scratch folder there (a killed run's) is removed when the next scratch folder is made there, not at each start, which took about 1.3 ms on a temp folder of 4,400 entries (W831, #912); a model folder's
.xppautx/tmpis still swept at start -
The exact Jacobian's code of an array's copies is one native loop too (W822, #903): a run of equations whose derivatives are one formula at consecutive indices is one loop over the copies, not one copy each, in MIR's code and in TinyCC's. lecdiff800's Jacobian compiles from 529 IR nodes, not 228,927; an exact-Jacobian lecdiff800 run with an explicit method takes 44% fewer instructions (3.27 G to 1.82 G, one pinned CPU), a backward-Euler one 13% fewer (11.0 G to 9.6 G). Values are the same bit for bit.
-
The native code of an array equation (
v[j]' = ... for j in 1..1600) is one loop over its index, not one copy of the formula per element (W820, #901): runs of four or more equations that differ only by the index of their variables, parameters and output are written once and MIR compiles them once, so the compile no longer grows with the array (a 3200-cell chain's 60 steps: 3590 M instructions, 1302 M now); the elements a loop cannot cover (the bounds' neighbours, an element with its own equation) stay as they were, and every value is the same bit for bit. -
The native code is compiled at MIR's optimization level 1 for every function (W817, #898): a 45k-node right-hand side compiles in about 0.4 s of CPU instead of 1.6 s, and lecdiff1600 runs in 1.3 s on one CPU instead of 3.5 s; the values are unchanged, and a long run's code is 0-6% slower (mu26's 400 time units 2742 M instructions against 2593 M).
-
A run kept to one processor (taskset, a cpuset) compiles its model's code itself instead of on a thread that shares the processor, and the thread count
autoof autoX and sweeps counts only the processors the process may use (Linux; W817, #898): the build is due after 100 interpreted operations a node (a spare processor keeps one million) and the run waits for it, so a run no longer interprets at half speed through the whole compile or ends having paid for a compile it never used. A long right-hand side or exact Jacobian is compiled as functions of about 50 equations (compile time linear in the model: lecdiff 3200 cells 885 M cycles, one function 1544 M), MIR's heap is a pool, and an expression's temporary values share registers: on one CPU lecdiff1600 takes 7.3 G instructions and 0.66 s (the first MIR build 10.1 G, 0.98 s; TinyCC's 8.1 G, 0.69 s), lecdiff800 7.6 G (8.9 G), izh_2003_rs 16.4 M (34 M; TinyCC 18.3 M), mu26 euler 145 M (261 M; TinyCC 106 M), lecdiff200 455 M (704 M; TinyCC 384 M), clustor qualrk 1.39 G (2.26 G; TinyCC 0.83 G); the values are unchanged. -
On Windows too, the processor count a run uses (the native compile's thread, autoX's and sweeps'
autothreads) counts only the processors the process may run on (start /affinity, a job object) (W819, #900). -
The options of the equilibrium and continuation searches are named by their sections (W809, #890):
equilibria.newton.max_iterations(wasmax_iterations),newton.tolerance(newton_tolerance),newton.jacobian_step,newton.search_limitand therange.*rows (range_*); the continuation'slimits.*,step.*,mesh.*,newton.*andoutput.*rows (max_stepsislimits.steps,step_sizeisstep.initial,min_step_sizeisstep.min,mesh_intervalsismesh.intervals,full_newton_afterisnewton.full_after_steps, and so on);switch_one_directionisone_way_branch_switch. The protocol'sautox.configure_numerics,autox.runandequilibrium.configuretake these names, and a .odex, a session file or a recording written with the old names fails to load. Each option row also says whether it is advanced (the schema'sx-advanced,advancedinhello's options rows): one that tunes a method's inside, whose default is right for almost every model; the panels fold them in W811. -
The JSON Schema of a .odex's options block gives each option its
default(the value a session with no model gives it), each numeric option and the method itsx-key(the numerics event's key), and the method itsx-methods(names, set-file labels and XPPAUT keys). The Python integrators read their defaults from the schema, not from the C++ source (W804, #885).
GPL v2, as upstream XPPAUT (Bard Ermentrout). The source of these binaries is the source archive of this tag, on this release page.