Thing with JS pipes: if they had reference to result of last operation (so-called pipe placeholder), it could be useful outside of pipes as well.
a |> # * 2
same time
a ? # : b
ΔIV
@DimaYv
Make computers do periodic sins (although in past life I was priest), malgorithms or nothing. / Делаю штуки, которые решают.
ΔIV’s Tweets
and the inverse multiplexor? operator a -< selector
Show this thread
operators will be more punctuation marks
Show this thread
If I ever do a new language, there will be this:
a,b,c >- a,b -> a+b
meaning reduce a,b,c by a,b -> a+b reducer
2
Show this thread
I wonder isn't that part confusing for F# programmers:
|>, ||> and |||> call the function down pipeline with 1,2 or 3 arguments from input.
But Fira converts that to ▷, |▷ and ||▷ - which loses number of bars indicating number of arguments.
Ternary operator should really have short binary form.
a > b ? a = b;
3
1
Topics to follow
Sign up to get Tweets about the Topics you follow in your Home timeline.
Carousel
Clever use of reflecting state in attributes
Quote Tweet
When the component goes to status "connecting" it gets the attribute:
status="connecting"
I then use the :host() selector to show or hide certain parts inside the component based on this attribute:
:host([status="connecting"]) .connecting-container {
display: block
}

Show this thread
1
Chrome supports import-maps. Meaning it's possible to run modules both in node/browser without any tooling. Nice.
1
4
Wow, WeakRefs / FinalizationRegistry are just fine.
Testable via global.gc() fairly easily.
A point on off-threading stuff to web-workers.
Make sure amount of calculation is going to outweigh creating an isolated heap and garbage collector for maintaining a thread.
1
1
It's egoistical from nodejs and npm side to call `modules` `node_modules`.
There can really be things having nothing to do with node: CSS, SVG, fonts, browser libs, deno, etc.
It also makes import path look ugly and fragile:
import htm from './node_modules/htm/dist/htm.module.js'
2
a ||= b // not supported in node@14
Show this thread
let x = {y:1}
x.y++ // ok
x?.y++ // error
sigh.
1
Show this thread
Today’s success:
Porch pirate trap worked. Someone stole my amazon package full of rotten banana piles.
1
templize: template expressions for any DOM elements
2
Would be nice if github besides security bots had optimization bots - making PRs with memory leak fixes, perf/size improvements etc.
левират, кутюм, узус, сутти, узанс, авункулат, адат, свычай, сорорат, дожинки, покон, вампука
#велмог
Indeed
2
7
Curious observation:
Hindus use low order in donations as recurrent flag. Eg. donation of $100 means “that’s it”, but $101 means “let’s continue”
subscript@6 is out github.com/spectjs/subscr
-20% size (1031 byte)
+20% parsing performance
+50% eval performance
Use for you own benefit.
#math #expression #parser
2
In Javascript we trust
3
3
15
Technical debt. Everything looks fine above water… but why are we so slow?!?
22
584
2.8K
((a=0,b)=>a+b).length // 0
2
Show this thread
((a,b)=>a+b).length // 2
((a,b=0)=>a+b).length // 1
this makes me want to leave.
1
1
Show this thread
Should admit I was wrong about esbuild.
1. it doesn't generate the most minimal source, still have to apply terser
2. it deliberately wastes code formatting github.com/evanw/esbuild/
The question is - it does fast what? Generates suboptimal code? I don't mind spending extra 60ms
1
Functional subparsers provide nice leverage to corner performance. But the main formula is the flatter the better.
github.com/spectjs/subscr
Website ads is cancer.
TIL: performance intuition in JS boils down to total number of operations (compared to code size in code golfing).
One possible way to measure is to count number of function calls, esp. lookups.
1
Subscript now supports Justin JS subset: JSON with expressions.
1
3
TIL the purpose of credit card is safety buffer, a gateway between market and personal savings
And many more ads ideas for programmers that never change archive.org/details/bitsav
Show this thread
Also. Computers back days had an oven built-in.
Show this thread
Apparently anyone who wants to take screenshot😡
1
Show this thread
The hotkey that takes screenshot in Mac hibernates Windows. I wonder who in the world hibernates by hotkey
1
1
Show this thread
Maybe will come up with that sort of structure in subscript, ':' is operator afterall.
Show this thread
Objects are ordered, but arrays are not keyed.
That could be useful: [a:1, b:2, c:3]
1
Show this thread



