« first day (544 days earlier)      last day (1950 days later) » 

3:08 AM
@Dennis Can you add Appleseed? HW is "Hello, World!"
 
3:21 AM
Added to the list.
 
 
2 hours later…
5:18 AM
@Dennis BTW, after tonight's commits, Hello World has changed a bit:
(load library)
(def start!
  (lambda (event)
    (print! "Hello, World!")))
 
Appleseed is practical btw
 
^ (although it doesn't have much for documentation at the moment)
 
 
8 hours later…
1:44 PM
@DLosc @Pavel tio.run/#appleseed
 
 
3 hours later…
4:31 PM
@Potato44 tio.run/#ork
 
4:56 PM
Thanks much!
 
@Dennis thanks, nice choice of scribe name.
 
5:50 PM
:)
 
how does TIO mathematica take input?
args or input?
 
@Riker it can do either, what's the function for input called
 
input[]?
seems to do args
 
stdin
unless on a Mathematica tool, in which case it shows a dialog box
 
Input[] and InputString[] should read from STDIN. Not sure why that isn't working.
 
6:05 PM
looks like it is, nvm
 
@totallyhuman tio.run/#fantom
Please share.
 
sweet, thanks
 
I'm getting weird results, that's all
 
I definitely wouldn't call that "working".
 
6:07 PM
15 messages moved from The Nineteenth Byte
Might be the wrapper I'm using to fix the encoding issues.
#!/usr/bin/env bash

cat > wrapper.m <<- '.'
        $CharacterEncoding = "UTF-8"
        Get[".code.tio"]
.

/opt/mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript -file wrapper.m "$@" < .input.tio
It's possible that I somehow have to pipe input into the Get command. No clue how though.
It's not the wrapper per se. -file doesn't seem to open STDIN, while -script does.
But I can't switch to -script; that would break all permalinks that use -print.
 
I'm surprised this has gone on for so long
 
The vast majority of PPCG submissions in Mathematica are functions, so I'm not that surprised.
 
6:24 PM
fair but I'd expect somebody to use Input in their footer at least
 
Hm, but -script doesn't display an input stream either. Still works.
@Riker @totallyhuman This works.
 
6:46 PM
@Dennis Would it help to implement an Input function that operates on $ScriptInputString that you could add to the top of Mathematica programs?
 
No. I don't want to modify how Mathematica usually works. If Input[] doesn't work with -file, so be it.
 
I think it's InputString, not StringInput.
 
@Dennis yes it is ._.
 
In retrospect, I regret my decision to use -file. I'm not sure if this is actually a bug, but the encoding issue definitely is.
 
@Dennis Can you change it?
 
I can't change it to -script without breaking permalinks that use -print, and I can't change it to -code without breaking permalinks that do not.
 
7:16 PM
@Dennis Gotta love legacy compatibility, eh?
 
Seems like it's not a bug.
8
A: Difference between "wolframscript -f" and "wolframscript -script"

Itai SeggevThe -script mode is an interface to the wolfram.exe's -script mode, which is a command-line version of Get. It essentially rewrites the command line, launches a kernel using the equivalent command, and then exits. It can only ever be used with a local kernel, and $ScriptInputString will always...

 
@Dennis you can change it to -code and add ; "" to the end of the footer if there wasn't -print
 
7:33 PM
What about -print all?
Also, that's once again a modification I'm not comfortable with.
I guess the only sensible option to to offer -file and -script. I'd rather not implement that as two separate languages though.
 
Version selector drop-down? Could work for more than just Mathematica
 
7:50 PM
Yeah, something like that.
 
 
2 hours later…
9:40 PM
@Potato44 I love this language now. ^_^
 

« first day (544 days earlier)      last day (1950 days later) »