67,542 karma · joined April 20, 2011
occasional c⊎k⊎haskell⊎erlang hacker
#76d6ff fold[max] y # maximum
fold[min] y # minimum
Those two characters have no connection with the operation they stand for | — logical-or, min
& — logical-and, max
0|1
1
1|42
42That’s intensive. And sad.
for x in 3 1 2 5 4; do (sleep $x; echo $x) & done sort ≡ head ∘ sort ∘ permutations
I wonder if there is some neat (and totally useless) algorithm for sort using that info. fun(F)->fun(X)->F(fun(V)->X(X(V))end)end(fun(X)->F(fun(V)->X(X(V))end)end)endBut I think Perl6 is the only language that can do this magic:
> 'Déjà vu' ~~ /:ignorecase:ignoremark deja \s vu/
「Déjà vu」 > $*COLLATION.set(:!secondary:!tertiary:!quaternary)
collation-level => 1, Country => International, Language => None, primary => 1, secondary => 0, tertiary => 0, quaternary => 0
> '12' coll '12'
Same > "\c[latin small letter e]\c[combining acute accent]" eq "\c[latin small letter e with acute]"
True
Edit: And of course > "\c[dog face]".chars
1
and not 2 as in the article.PS: WTF? HN strips emojis :/ (and does it incorrectly when they are emoji sequences).
> system tap, ktap, lttng, ftrace, etc
That's why I'm talking about NIH.
Even with ebfp, they intentionally choose different tracing syntax (just look at it, it's comical). Didn't use ready-to-use CTF. Etc etc etc.
Dogs can fly^Wrun without remote control.
$ dtrace -n 'pid$target::strlen:entry { print(arg0) }' -c './a.out 2'
CPU ID FUNCTION:NAME
⋮
4 22139 strlen:entry int64_t 0> how do you write all those non-ASCII symbols using a standard OS and text editor?
Modifier+KEY or PrefixKey KEY
All symbols are in Unicode. No special tools required.
]KEYB
US Keyboard Layout:
╔════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦═════════╗
║ ~ ║ !⌶ ║ @⍫ ║ #⍒ ║ $⍋ ║ %⌽ ║ ^⍉ ║ &⊖ ║ *⍟ ║ (⍱ ║ )⍲ ║ _! ║ +⌹ ║ ║
║ `◊ ║ 1¨ ║ 2¯ ║ 3< ║ 4≤ ║ 5= ║ 6≥ ║ 7> ║ 8≠ ║ 9∨ ║ 0∧ ║ -× ║ =÷ ║ BACKSP ║
╠════╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦══════╣
║ ║ Q ║ W⍹ ║ E⋸ ║ R ║ T⍨ ║ Y¥ ║ U ║ I⍸ ║ O⍥ ║ P⍣ ║ {⍞ ║ }⍬ ║ |⊣ ║
║ TAB ║ q? ║ w⍵ ║ e∈ ║ r⍴ ║ t∼ ║ y↑ ║ u↓ ║ i⍳ ║ o○ ║ p⋆ ║ [← ║ ]→ ║ \⊢ ║
╠═══════╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩══════╣
║ (CAPS ║ A⍶ ║ S ║ D ║ F ║ G ║ H ║ J⍤ ║ K ║ L⌷ ║ :≡ ║ "≢ ║ ║
║ LOCK) ║ a⍺ ║ s⌈ ║ d⌊ ║ f_ ║ g∇ ║ h∆ ║ j∘ ║ k' ║ l⎕ ║ ;⍎ ║ '⍕ ║ RETURN ║
╠═════════╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═════════╣
║ ║ Z ║ Xχ ║ C¢ ║ V ║ B£ ║ N ║ M ║ <⍪ ║ >⍙ ║ ?⍠ ║ ║
║ SHIFT ║ z⊂ ║ x⊃ ║ c∩ ║ v∪ ║ b⊥ ║ n⊤ ║ m| ║ ,⍝ ║ .⍀ ║ /⌿ ║ SHIFT ║
╚═════════════╩════╩════╩════╩════╩════╩════╩════╩════╩════╩════╩══════════╝ Also in Version 12.0, the following Unicode Standard Annexes have notable modifications ⟨…⟩
UAX #14, Unicode Linebreaking Algorithm
UAX #29, Unicode Text Segmentation
UAX #31, Unicode Identifier and Pattern Syntax
UAX #38, Unicode Han Database (Unihan)
UAX #45, U-Source IdeographsWait several months.
Good idea to learn both, anyway :-P
Edit: compilation speed too, huge difference
There is dialyzer, a static type (and not only) analysis tool for Erlang. It is part of Erlang/OTP (i. e. built-in.)
> Linux 4.13 and 4.15: fsync() only reports writeback errors that occurred after you called open()
No. Not even close.