about summary refs log tree commit diff stats
path: root/html/apps
Commit message (Collapse)AuthorAgeFilesLines
* 6143Kartik Agaram2020-03-142-50/+52
|
* 6139Kartik Agaram2020-03-121-1/
# example program: copy one file into another, character by character
# BEWARE: this will modify your file system
# before running it, put some text into /tmp/mu-x
# after running it, check /tmp/mu-y

def main [
  local-scope
  source-file:&:source:char <- start-reading null/real-filesystem, [/tmp/mu-x]
  sink-file:&:sink:char, write-routine:num <- start-writing null/real-filesystem, [/tmp/mu-y]
  {
    c:char, done?:bool, source-file <- read source-file
    break-if done?
    sink-file <- write sink-file, c
    loop
  }
  close sink-file
  # make sure to wait for the file to be actually written to disk
  # (Mu practices structured concurrency: http://250bpm.com/blog:71)
  2020-02-17
1-3935/+3975
|
* 6016Kartik Agaram2020-02-171-5/+5
|
* 6015Kartik Agaram2020-02-1718-223/+304
|
* 6012Kartik Agaram2020-02-161-6330/+6264
|
* 6001Kartik Agaram2020-02-0912-7083/+7290
|
* 5995Kartik Agaram2020-02-081-7408/+7804
|
* 5975Kartik Agaram2020-02-021-7427/+7137
|
* 5972Kartik Agaram2020-02-011-6480/+6703
|
* 5966 - document all supported Mu instructionsKartik Agaram2020-01-311-9/+9
|
* 5963Kartik Agaram2020-01-301-3956/+3992
|
* 5958Kartik Agaram2020-01-302-2537/+2550
|
* 5954 - 'factorial' working!Kartik Agaram2020-01-291-0/+79
|
* 5952Kartik Agaram2020-01-291-2231/+2573
|
* 5949Kartik Agaram2020-01-292-6293/+7058
|
* 5944Kartik Agaram2020-01-281-5289/+5461
|
* 5941Kartik Agaram2020-01-271-5176/+5289
|
* 5937Kartik Agaram2020-01-272-3231/+3271
|
* 5933Kartik Agaram2020-01-271-2/+2
| | | | Expand some buffer sizes to continue building mu.subx natively.
* 5932Kartik Agaram2020-01-271-0/+70
|
* 5931Kartik Agaram2020-01-271-1/+1
|
* 5930Kartik Agaram2020-01-271-5132/+5290
|
* 5925Kartik Agaram2020-01-2722-2719/+2761
|
* 5922Kartik Agaram2020-01-261-5556/+5674
|
* 5917Kartik Agaram2020-01-221-4299/+4293
|
* 5912Kartik Agaram2020-01-201-4115/+4450
|