User Tools

Site Tools


newsletters:2024-09

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
newsletters:2024-09 [2024/10/01 02:46] – [Handheld Folk gadget] osnrnewsletters:2024-09 [2024/10/01 03:47] (current) – [New parallel evaluator] osnr
Line 1: Line 1:
-====== September 2024 newsletter (WIP) ======+====== September 2024 newsletter ======
  
 ===== What we've been up to ===== ===== What we've been up to =====
Line 5: Line 5:
   * Andrés will be giving the opening keynote at [[https://berlin.causalislands.com/#program|Causal Islands Berlin]] on this Friday, October 4.   * Andrés will be giving the opening keynote at [[https://berlin.causalislands.com/#program|Causal Islands Berlin]] on this Friday, October 4.
     * The talk will use a Folk gadget to control slides, demonstrate Folk, and explain the technology and vision behind Folk. We'll link the recording of the talk in the newsletter next month.     * The talk will use a Folk gadget to control slides, demonstrate Folk, and explain the technology and vision behind Folk. We'll link the recording of the talk in the newsletter next month.
-    * It looks like [[https://ti.to/causal-islands/berlin-2024|livestream tickets are also available]] if you're interested+    * It looks like [[https://ti.to/causal-islands/berlin-2024|livestream tickets are also available]] for anyone interested 
 +  * Our next [[https://partiful.com/e/62C2MjzYBVIpLP7qG330|Folk open house is on the night of Monday, October 21]], at our studio in East Williamsburg, Brooklyn.
  
 ==== Applications and demos ==== ==== Applications and demos ====
Line 41: Line 42:
   * Naveen [[https://github.com/FolkComputer/folk/pull/177|fixed a mailbox leak]] when a subprocess terminates   * Naveen [[https://github.com/FolkComputer/folk/pull/177|fixed a mailbox leak]] when a subprocess terminates
   * Omar made a new live-build .img that has a working default up-to-date setup.folk   * Omar made a new live-build .img that has a working default up-to-date setup.folk
 +    * (it was broken because it had no default camera/display selection statements)
     * Still need to make git pull work (its remote origin is set wrong because we copied the repo)     * Still need to make git pull work (its remote origin is set wrong because we copied the repo)
     * I should write a script to do this automatically...     * I should write a script to do this automatically...
 +  * Omar [[https://github.com/FolkComputer/folk/commit/386de35b2efad57f3abbc94d77005e64a846a1a6|fixed the statements graph]], which was broken because the 3D-calibration-related statement node labels were too long (over 16384 chars)
  
 ==== Handheld Folk gadget ==== ==== Handheld Folk gadget ====
Line 57: Line 60:
     * + tell libcamera to configure (reduce) camera exposure time so that projected tags for calibration don't get washed out     * + tell libcamera to configure (reduce) camera exposure time so that projected tags for calibration don't get washed out
  
-These fixed the worst issues -- it now actually calibrates! We can project onto programs! +These fixed the worst issues -- it now actually calibrates! We can project onto programs! (it's still fairly annoying to calibrate, takes 20-30 minutes, but it's doable, and you ideally only have to do it once. I feel like we should ultimately be able to calibrate it really well because the projector is a laser scanning projector and has no lens distortion, also.)
  
 First calibrated use of Omar's gadget (gadget-blue) and of Andrés's gadget (gadget-red), respectively: First calibrated use of Omar's gadget (gadget-blue) and of Andrés's gadget (gadget-red), respectively:
Line 82: Line 85:
 } }
 </code> </code>
-  * Changed the 'page fault' mechanism to run ''curl'' in background so it doesn't block the gadget awkwardly when you're pointing it at random programs+  * [[https://github.com/FolkComputer/folk/commit/db6b83cc346759a46dc3975f1cd0da606fb81d6a|Changed the 'page fault' mechanism to run ''curl'' in background]] so it doesn't block Folk awkwardly when you're pointing it at random programs
  
  
Line 88: Line 91:
 ==== New parallel evaluator ==== ==== New parallel evaluator ====
  
-sustain/TTL+Omar has been continuing to work on the new evaluator -- it really does feel like the biggest remaining issues in Folk are performance & reliability issues, so this is important.
  
-sysmon is extended (maybe will rename to custodian) to also handle reaping sustained statements when they hit their deadline+There's a mix of little reliability/safety issues and big semantic issues with the evaluator (how do we schedule stuff onto threads? how do we make sure things don't blink out or, conversely, transiently get multiple states at once? when/how do we abort invalidated work items?)
  
-fixed some keyboard issues+=== Sysmon and thread pool ===
  
-workqueue display on threads page+Started working on sysmon thread which wakes up every few milliseconds and manages the size of the thread pool (too many threads looking for work? kill some; too few threads compared to number of CPUs? spawn some).  
 + 
 +There are subtleties here where you want to avoid churning the thread pool and constantly killing and re-spawning stuff. Haven't figured out yet. It needs heuristics about what threads are occupied and how long they'll be occupied (microseconds? milliseconds? seconds?) to determine this.  
 + 
 +=== Sustain / time-to-live field on statements or Holds === 
 + 
 +Idea: sustain/TTL field where statements can get held for some number of milliseconds after their parent is retracted. 
 + 
 +sysmon (which previously was just managing the size of the thread pool) is extended (maybe will rename to custodian) to also handle reaping sustained statements when they hit their deadline. it feels nice to do it here rather than complicating the priority queue further, since sysmon is already waking up every couple milliseconds anyway (and it doesn't need to run any more than that, fixed ticks are fine). 
 + 
 +We had a good discussion about this proposal in Discord: 
 + 
 +{{:newsletters:pasted:20241001-034059.png?550px}} 
 + 
 +<details> 
 +<summary>More discussion of sustain/TTL</summary> 
 + 
 +{{:newsletters:pasted:20241001-034119.png?550px}} 
 + 
 +{{:newsletters:pasted:20241001-034138.png?550px}} 
 +</details> 
 + 
 +=== Other new evaluator stuff === 
 + 
 +Added workqueue display on /threads Web page, which made it clear that many of the random issues with folk2 are just that work-stealing was breaking down and work items would get permanently stuck on some thread that was stuck running a permanent task (instead of the work getting stolen and executed elsewhere).  
 + 
 +Fixed some keyboard issues where the keyboard process was erroring or exec-ing stuff all the time (because of lack of persistence / because of blinking), and where the grabber was broken because it wasn't inter-thread-safe. 
 + 
 +Scheming about this memory management idea again, since it could simplify a lot of the implementation: 
 + 
 +{{:newsletters:pasted:20241001-033956.png?550px}} 
 + 
 + 
 +<details> 
 +<summary>More discussion of memory management</summary> 
 + 
 +{{:newsletters:pasted:20241001-034016.png?550px}} 
 +</details>
  
 ==== Friends and outreach ==== ==== Friends and outreach ====
  
   * Our open house this month was well-attended, and we got to show off the gadgets and eink device:   * Our open house this month was well-attended, and we got to show off the gadgets and eink device:
-    * {{:newsletters:pasted:20240930-185145.jpeg?0x250px}} {{:newsletters:pasted:20240930-185232.jpeg?0x250px}} {{:newsletters:pasted:20240930-185249.jpeg?0x250px}} {{:newsletters:pasted:20240930-185257.jpeg?0x250px}}+    * {{:newsletters:pasted:20240930-185145.jpeg?0x250px}} {{:newsletters:pasted:20240930-185232.jpeg?0x250px}} {{:newsletters:pasted:20240930-185249.jpeg?0x250px}} {{:newsletters:pasted:20240930-185257.jpeg?0x250px}} {{newsletters:6139bbb4-952e-4898-a2a1-855fb01e5103.jpg?0x250px}}
     * Andrés practiced his talk for Causal Islands Berlin:     * Andrés practiced his talk for Causal Islands Berlin:
       * {{:newsletters:pasted:20240930-185206.jpeg?0x250px}} {{:newsletters:pasted:20240930-185311.jpeg?0x250px}} {{:newsletters:pasted:20240930-185325.jpeg?0x250px}}       * {{:newsletters:pasted:20240930-185206.jpeg?0x250px}} {{:newsletters:pasted:20240930-185311.jpeg?0x250px}} {{:newsletters:pasted:20240930-185325.jpeg?0x250px}}
Line 106: Line 146:
  
   * **Our next [[https://partiful.com/e/62C2MjzYBVIpLP7qG330|Folk open house is on the night of Monday, October 21]], at our studio in East Williamsburg, Brooklyn.**   * **Our next [[https://partiful.com/e/62C2MjzYBVIpLP7qG330|Folk open house is on the night of Monday, October 21]], at our studio in East Williamsburg, Brooklyn.**
-  * Andrés giving talkfollowing up +  * Andrés will give their talk about Folk at Causal Islands Berlin 
-  * Daniel continuing to work on hand tracking +    * Maybe some tasks afterward around merging the slides system they built and following up with people 
-  * Omar will respin the gadget and meet with Ultimems +  * Andrés continuing docs and desksaver projects 
-  * Omar continuing to work on new evaluator+  * Andrés and Omar will work with our new partner [[https://www.kosmik.app|Kosmik]] on knowledge management and phone/laptop integrations and demos with Folk 
 +  * Daniel continuing to work on hand tracking now that the Kinect data is in Folk 
 +  * Omar wants to respin the gadget to make the front panel more solid, maybe add a second camera, & is meeting with Ultimems (the mini projector supplier) 
 +    * Maybe also see if there is low-hanging fruit on performance 
 +  * Maybe also add a second camera to folk0 
 +  * Omar continuing to work on new evaluator, work out thread pool management and sustain/retract behavior (and fix general instability) 
 +    * Maybe finally implement statement or match arenas so we can unify memory management 
 +  * Omar needs to get back on the 3D calibration refinement and UI (I think even adjusting exposure, without an additional refinement step yet, could make a big difference, & reporting tag detect results during calibration so you can see if it's iffy) 
 +    * could also include livestreaming the camera feed to the browser
  
 ===== Links we've enjoyed ===== ===== Links we've enjoyed =====
newsletters/2024-09.1727750798.txt.gz · Last modified: 2024/10/01 02:46 by osnr

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki