Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uryga
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
uryga
5y ago
https://www.r-bloggers.com/2018/07/about-lazy-evaluation/ tldr: basically, R passes all function arguments as bundles of `(expr_ast, env)` [called "promises"]. normally, they get evaluated upon firs
32.
▲
by
uryga
5y ago
EDIT: i gotta admit, you sound like you've got more experience with teaching R than me. so perhaps my opinions here are a bit strong for what they're based on, i.e. tutoring a couple of non-programmer friends and my own learning p
33.
▲
by
uryga
5y ago
i would recommend getting comfortable with doing stuff with base R, then trying tidyverse. Starting with dplyr might get you results quick, but its "special evaluation" actively confuses your understanding of how the base language
34.
▲
by
uryga
5y ago
pedantic addendum: looks like i messed up my PEPs -- i linked to PEP622, which was superseded by PEP635 [1]. the gist of it hasn't changed though. --- [1] https://www.python.org/dev/peps/pep-0635/#the-mat
35.
▲
by
uryga
5y ago
> Judging by the votes you got, your proposal is not well-liked. i'm at peace with that :) [1] > In general, breaking Python's syntax rules to introduce block expressions or what you want to call it seems like a steep pri
36.
▲
by
uryga
5y ago
x = match y: case 0: "zero" case 1: "one" case x: y = f(x) y+y print(x) it can require semicolons or parentheses or even braces somewhere if that's necessary to make the grammar
37.
▲
by
uryga
5y ago
iirc for some reason the amount of antibodies you have falls sharply after 1-3 months and you're vulnerable again. anecdotally, a friend of a friend (EMT) had covid like 4 times before vaccines were available.
38.
▲
by
uryga
5y ago
> why `m a -> (a -> m b) -> m b` but not something else? it's basically continuation-passing-style (`a -> m b` is the "continuation"), you might as well ask "why can you represent so many control-flow thin
39.
▲
by
uryga
5y ago
a detail that doesn't contradict anything you said but may be useful for someone unfamiliar with it: "avoid success at all costs" is usually meant to be parsed as "avoid [success at all costs]" i.e. don't compr
40.
▲
by
uryga
5y ago
from a look at the readme, you combine those `$.TYPE` things to build a validation function that checks if its argument matches some pattern (and throws an exception if it doesn't). import * as $ from '@appliedblockchain/
41.
▲
by
uryga
5y ago
> https://play.nim-lang.org/#ix=2lK1 which part of the link shows using tuples? i can't really see anything tuple-like really
42.
▲
by
uryga
5y ago
probably because that's a very niche usecase and most people just want some video captions :) (don't get me wrong, what you describe would be cool and useful! but i can't imagine a lot of people would use it)
43.
▲
by
uryga
5y ago
in this case i'd interpret "forward/backward" as "closer towards you / further away from you", with the metaphor being that you're standing on a timeline looking "in the future direction" an
44.
▲
by
uryga
5y ago
what niche language?
45.
▲
by
uryga
5y ago
> one would expect to annotate the return type as > foo(x : int) : string > since the pattern is showing foo applied to x. kind of like the C/C++ "declaration mirrors use" thing, i.e. int *foo; which means
46.
▲
by
uryga
5y ago
> libs for 64bits floats (decimal.js, big.js) both of those libraries are for arbitrary precision decimals, not floats.
47.
▲
by
uryga
6y ago
following the same logic (AFAICT): People self-replicate. People are alive. Societies are composed of people. Therefore, societies are alive. (may or may not be a hole in your argument depending on whether you think a society is "alive
48.
▲
by
uryga
6y ago
hey if there's anyone who understands this: > ELECTRIC ENERGY is a wave that travels via a column of charge. what's a "column of charge", and where could i read more about those (preferably online)? i found the term
49.
▲
by
uryga
6y ago
sorry but i feel like this is backwards. the error - incorrectly assuming an `any` will be a `Thing` - is in `getThing`, and that's where the error message should be. getting an error in code that calls `getThing` instead would just ob
50.
▲
by
uryga
6y ago
> Because graphical programming are just textual programming languages which are just overly complex (xml) i don't think that's fair. i mean, on a computer, you have to serialize everything into sequences of bytes. you could
51.
▲
by
uryga
6y ago
> It really is beyond me why the Unicode consortium thought that putting emojis in a character set would be a good idea. iirc some japanese character sets already had them (introduced by telecoms for text messaging?), so originally they
52.
▲
by
uryga
6y ago
i'm aware Java has type inference now. but i've got some not-so-fond memories of learning it when it didn't :)
53.
▲
by
uryga
6y ago
> I can't speak to why run-time checking wasn't built into the language as a default behavior tldr: you other get either huge overhead or need to type annotate everything like it's Java, and it'll still be pretty li
54.
▲
by
uryga
6y ago
sounds like you want something like Vue baked into the browser. but i'd prefer React baked into the browser! we can't have both, so it's probably best we have neither :) seriously though, why not just write a simple wrapper a
55.
▲
by
uryga
6y ago
ah gotcha! for some reason i thought you were talking at the component level, not app level.
56.
▲
by
uryga
6y ago
> html documents inside browser windows are naturally stateless content systems what about inputs? or do you consider them stateless because their entire¹ "state" is reflected in the DOM, i.e. <input type="checkbo
57.
▲
by
uryga
6y ago
i like a nice combinator as much as the next person! but consider this: if python already had multiline lambdas, would you be arguing for using a narrow-purpose combinator instead of `lambda x: foo(x); bar(x)`? [this kind of reminds me of
58.
▲
by
uryga
6y ago
> if a function is doing something complicated enough to need multiple lines of code, it's doing something complicated enough to merit an explicit name. def foo_and_bar(x): foo(x) bar(x) whew! good thing i named that
59.
▲
by
uryga
6y ago
i haven't used gnuplot before, what's your setup for getting these? a monthly-cumulative plot is exactly what i'm missing from hledger-web.
60.
▲
by
uryga
6y ago
> If you share your finances with N people (family) or N companies (free-lancer/consultant, etc), the path of least resistance to financial sanity is a well-maintained ledger. that was it for me! i started using hledger because of
More ›