Echo JS 0.11.0

<~>

sylvainpv comments

sylvainpv 163 days ago. link 3 points
The README could be improved. I don't understand what does the flatten array look like in the code example.
sylvainpv 224 days ago. link 4 points
Just because we don't like JSX does not make us "HTML oriented engineers", if such a job exists. This is something I often hear and it always sounds arrogant to me.

I find it very presumptuous to claim that JSX will survive the next trend in web dev. JSX came with React and already cause issues today when used with other trendy tools like TypeScript (hence TSX). It is also very close to standard-compliant alternatives such as hyperx using template strings. Considering that JSX is far from reaching consensus outside of React community, I doubt that this is a lasting solution.
sylvainpv 224 days ago. link 1 point
The "cognitive load" for Vue templates is totally exaggerated: the syntax is very readable and easy to remember. Do you really think that v-if and v-else are harder to remember than all the inline JSX tricks using && || ?: operators ? In the end, people reinvent the wheel and create their own custom DSL in JSX with utility functions/components like this one: https://github.com/sospedra/mayre 

Vue developers can use JSX since Vue 2.0 but most of us prefer using templates and single file components because they are clean, readable and easy to write. Also, JSX requires a transpilation step whereas it is optional for templates. It's hard to tell how JSX could be an improvement for us.
sylvainpv 230 days ago. link 1 point
I tried it with Vue + Typescript, TS works perfectly but loading .vue files gives me trouble. Would be great if you could make a getlibs-vue-hello-ts repo as a starting base
sylvainpv 246 days ago. link 5 points
How is this different than { condition && <MyComponent {...props} /> } ?
sylvainpv 251 days ago. link 1 point
Roses are red, violets are blue. 
I'm not native but I saw it too.
sylvainpv 253 days ago. link 3 points
Magic strings everywhere ? Ugh... A few more arguments for constants:
1. Autocomplete 
2. Autodocumentation (basically having a list of available actions by ctrl+spacing)
3. Namespacing actions (ADD.EVENT.SUCCESS instead of "ADD_EVENT_SUCCESS")
4. Minification. It's easier to mangle constant references than magic strings
sylvainpv 253 days ago. link 2 points
It's a one man project and you're the man. Please show some humility and less marketing BS.
sylvainpv 258 days ago. link 2 points
The goal is to evaluate the function with a runtime condition, so that prepack is forced to keep the dynamic evaluation. This can be done with Math.random() or +(new Date()) or many environment properties, but none of them are supported by Prepack. Any runtime-dependent expression throws an IntrospectionError:

console.log(Date[Math.random() > 0 ? "now" : "nope"]())
sylvainpv 264 days ago. link 2 points
Wow, I think this may be a game-changer. Already got significant gains on many libraries bundles.
[more]