36 karma · joined Mar 27, 2012 (14y ago) · 20 submissions
comment 1y ago · link · parent
https://thephd.dev/_vendor/future_cxx/technical%20specificat...
Discussion:
https://thephd.dev/_vendor/future_cxx/papers/C%20-%20Improve...
comment 1y ago · link · parent
This is how it worked:
They had a documentation-writing branch. And you (developer) knew that if you don't write documentation, they will. And then if will cost you _more_ time and frustration to review and correct what they wrote than to write it yourself and give to them.
So you did write it (and they proofread it, corrected grammar etc.).
comment 3y ago · link · parent
I take an issue though with this assertion:
> The order [...] is quite different to english but very similar to functional programming.
The most widely accepted (imo) order of function composition is right to left:
send(makeUrl("http://..."))
just like in English "blue fish": transformation stands to the left to the object that is being transformed (*). Whereas "transformation follows the object" is an OO tradition, as shown in your examples. "Take object, apply transformation (method) yielding another object, apply transformation to that new object, etc."(*) In quintessentially functional Haskell, you can compose functions both ways, but right-to-left is more traditional:
{-
- Find numeric value of the first figure of the decimal representation
- of a number:
- 1. convert it to a string of decimal characters (show)
- 2. take the first character of the string (head)
- 3. convert the character to a string containing one charcter (:[])
- 4. convert the string of one decimal character into an integer (read :: Int)
-}
main = do
let
firstfigure1 :: Int
firstfigure1 = read . (:[]) . head . show $ 413
print firstfigure1
{-
- Reverse the order of composition. Define "right-pointing" versions for
- (.) and ($)
-}
let
(.>) = flip (.) -- it will become infixl 9 by default
($>) = flip ($)
infixr 0 $> -- We need value lower than the above. Use the same as $
firstfigure2 :: Int
firstfigure2 = 413 $> show .> head .> (:[]) .> read :: Int
print firstfigure2comment 3y ago · link · parent
People are mostly motivated by gratification. You've written _functioning_ code - you can instantly see how it solves the problem at hand. You've written _beautiful_ code - you can stare in satisfaction at the negative total in `git diff --stat`.
You've written secure code - you reward comes in the form of nobody talking about your code for the next twenty years ;)
comment 3y ago · link · parent
I've recently stumbled upon an article on the same topic, but containing competent and accurate information, I have a link because I recommended it to a friend: https://thevaluable.dev/guide-terminal-shell-console/
comment 3y ago · link · parent
Ability to trade for fiat currency proved to be a mixed blessing at best, and a downfall at worst, of this approach. When a system is so lucrative as a vehicle for ponzi schemes, it inevitably gets hijacked, and becomes unable to serve its declared purpose.
comment 4y ago · link · parent
But the results are not even promising, let alone useful, which is very sad.
(I tried "haskell gloss terminate animation normally". That was my real search a couple of days ago.)
comment 11y ago · link · parent
That is why my bet is on Musk. With lots of low orbit transmitters each covering a small area you have "space division" like in a cellular network. I.e. less endpoints competing for the bandwidth to the same transmitter.