« first day (1813 days earlier)      last day (3140 days later) » 

10:00 PM
@Zirak real story ?
 
@Abhishrek Based on a true story, #nomakeup
github.com/emacsfodder/emacs-soothe-theme is my bread-and-butter theme
 
yes, a good color theme is pleasing and not distracting.
 
@Zirak same here, I cannot sustain > 20% brightness or head starts exploding on most devices.
 
/me is having theme problems
The suggested one for ES6 JS is not the ES5 one with highlighting for new ES6 stuff.
 
emacs for osx is pissing me off.
open file dialog doesn't show hidden dotfiles even though i have that turned on in finder
 
10:11 PM
The less I deal with finder, the happier I am
 
indeed.
it'll be the one thing that drives me away from osx
 
Yeah. Finder is just awful.
 
coded myself into another corner, hurrah!
 
@Luggage Open file dialog?
You have C-x C-f
 
yes
yea, that'll work better
 
10:14 PM
That's "The Way" to do it. I forgot there were dialogs.
 
gotta stop myself from hitting :wq
 
You can turn on ido mode for an arguably nicer C-x C-f
 
Bit by bit
 
Or do that later in your learning path
 
trying to make my theme save first..
 
10:15 PM
Yeah, sorry
Oh, you were trying to open your .emacs
 
yup.
 
I've been cargo culting
do I need new in throw new Error('pnats')?
 
Testing something out but its not working uhg jsfiddle.net/9pm1Ltwm/1
regex surely gives me a headache
 
@SomeKittens MDN says yes
 
sounds good
@Zirak ping
 
10:29 PM
@SomeKittens pong
 
FP theory
 
@SomeKittens no
 
you're at least vaguely familiar with how Gustav works?
@BenjaminGruenbaum Why?
 
@SomeKittens Nope! es5.github.io/#x15.11.1
 
Currently, you can only really manage one ongoing data flow - but I want to manage n flows.
 
10:30 PM
@SomeKittens because that's how the language works.
 
@SomeKittens I'm relatively weak at FP so I can rubber duck, but don't take me as an authorative anything.
 
@BenjaminGruenbaum You mean that's how Error works
 
@SomeKittens This is also true for all other error types, for example TypeError, ReferenceError, EvalError etc.
 
@Zirak ah, neat
 
@copy that because is a part of the language, obviously I'm not suggesting every constructor works the same as calling the function without new.
 
10:32 PM
So in OOP, I'd have a Workflow class and instantiate a new one whenever I wanted to create a data flow
but I want to be able to compose workflows
wat do.
 
@BenjaminGruenbaum Right
 
@SomeKittens That's not mutually exclusive
 
@Zirak I mean, I could create a Node class, and have Workflow inherit from that but that's inheritance.
hmm
 
Functions returning a bunch of data is basically what a constructor is. What do you mean when you say "compose workflows"?
Because that sounds like an operation on a workflow
 
or, I could define what it means to be able to be attached in a workflow, and give that ability to both nodes and workflows. Duh.
Trying to FP in TS is screwing with my brain.
 
10:36 PM
What's a workflow? A bunch of nodes which can be treated as one node?
Like how, say, (1 + 2) is an expression comprising of several subexpressions?
 
Let's take the three nodes from earlier: genNumbers, timesTwo, consoleLog
I could combine (compose?) those into a workflow of genNum -> times2 -> console
then call .init and have everything run
 
are those all functions, or do they need some other structure?
 
BUT say I wanted a source that only gave me prime numbers.
@KendallFrey it's complicated and involves RxJS
So I could add an isPrime filter node.
 
That's too bad
it would be easy in Haskell
 
but I want to reuse that a lot, so instead I create a Workflow of genNum -> isPrime named genPrime
 
10:39 PM
What you describe sounds like functions and lines of code.
Like regular code flow.
 
Or the IO monad
 
@BenjaminGruenbaum turns out all programming is functions and lines of code.
 
That's exactly how function composition works
 
No, I mean, that's what it sounds like you're trying to abstract.
 
@Zirak yep
 
10:39 PM
genPrime = compose(genNum, isPrime)
 
@Zirak right.
 
Why do you need a DSL inside your already perfectly good programming language?
 
@BenjaminGruenbaum Zirak wanted to know how Workflows worked
 
@Zirak or heaven forbid - we don't eta reduce it
 
@BenjaminGruenbaum because the DSL is a GUI.
 
10:40 PM
Oh, that changes things
 
@BenjaminGruenbaum You're just being silly
 
If it needs to be strictly simpler it makes sense to make it weaker to serve that goal.
 
define 'weaker'
 
Strictly less expressive than a general purpose programming language.
 
ah, yes
 
10:41 PM
Not in the "not turing complete" sense.
 
@SomeKittens I don't see where the problem is, if I remember how you created filters/whatnot. If a node is something which accepts an observable and feeds data into it, then composing is creating that observable.
 
so yes, workflows & nodes don't need some inheritance thing.
@Zirak I pinged you when I first thought of workflows - they're an entirely new thing to Gustav
so if it sounds like I haven't thought this through, you're right.
 
oke. I think you stumbled upon your own initial idea again, just in plural form, and you can make it work without changing nearly anything
 
Subclassing Observable is actually very common in .NET land.
 
@Zirak good news!
 
10:44 PM
Good news? @Loktar's adopting me?
FINALLY
 
though I might name a composed workflow something different than the full thing so as not to confuse the non-programming users
 
@SomeKittens well, you can "lift" a function to have it accept observables as parameters and then produce a result observable. Whenever any of the inputs generates a new value the output generates a new value with current values as parameters - it has to wait until all values arrive so there might be backpressure issues.
Then the fact things are observables and not functions become invisible, you just compose functions.
That's probably way too confusing to the people you're building this for.
 
@BenjaminGruenbaum Yeah, I've talked with another guy about lifting, etc
 
So the big question now is...
Do u even lift bro
 
@KendallFrey You are the pizza burn on the roof of the world's mouth.
 
10:49 PM
ok, off to make IRL friends.
thanks all
 
Have fun
 
@SomeKittens Adopting a kitten?
 
Whoo! Just hit 10k rep! :D
 
@Zirak Hey, I just ate pizza tonight. And last night. Stop that.
 
10:52 PM
@Zirak the painful reminder of deliciousness
 
My pizza had liver on it. So not as much deliciousness :(
 
I've not had liver, but I hear it's delicious
 
You can hear it's delicious all you want, but you'll never taste it's delicious.
 
11:10 PM
@KendallFrey Never?
 

« first day (1813 days earlier)      last day (3140 days later) »