Introduction
Introduction Statistics Contact Development Disclaimer Help
Post AsFyJ9XNpUDknxHJNQ by [email protected]
More posts by [email protected]
Post #AsFcJ7loCbkIKdbgbQ by [email protected]
0 likes, 0 repeats
Attention programmnters. I am making a programmmning language. I seek your opin…
Post #AsFcJ7sBosqkeQamY4 by [email protected]
0 likes, 0 repeats
@mcc i've been expecting you.in scopes we have variadic + and *- and / have…
Post #AsFcLWRPRmxfQWCzzc by [email protected]
0 likes, 0 repeats
@mcc you are making a mistake. give variadic modulo to people, see what they co…
Post #AsFcLWXR5NmXjD1oO0 by [email protected]
0 likes, 0 repeats
@jkmcnk @mcc it's a lisp, they can just give it to themselves.
Post #AsFcn7ESlaFfLqJJrM by [email protected]
0 likes, 0 repeats
@lritter in the Emily series, the one serious attempt at a language I've do…
Post #AsFd6RkSiDg8U0Un3o by [email protected]
0 likes, 0 repeats
@mcc in our present incarnation, we have a global hook for expressions which ch…
Post #AsFrBZ7Y801m9cd65g by [email protected]
0 likes, 0 repeats
Okay so here's an even awkwarder question.My LISP is going to special case …
Post #AsFrBZDZlaqeSJRuU4 by [email protected]
0 likes, 0 repeats
@mcc i find the unary div useful for audio scripting and in the REPL
Post #AsFrFtAJXpTpTnz5bk by [email protected]
0 likes, 0 repeats
@lritter fortunately i don't have to decide on this yet because the languag…
Post #AsFs1oVIBCZovDeIHg by [email protected]
0 likes, 0 repeats
@mcc i just completed porting this if you like https://git.sr.ht/~duangle/libsx…
Post #AsFuoBQWSHn1pCbt4q by [email protected]
0 likes, 0 repeats
@mcc @lritter floating point numbers can be more trouble than they are worth!
Post #AsFy7bxAM1PTSZpn9s by [email protected]
0 likes, 0 repeats
@mcc id say (op a b c d ...) === (op a (op b (op c (op d ...)))) forall op, no …
Post #AsFy7c3XyIVvmMot6W by [email protected]
0 likes, 0 repeats
@nasser @mcc Wouldn't that mean that (- 4 3) would equal -7 instead of 1? E…
Post #AsFy7c9vaZcO69nz3A by [email protected]
0 likes, 0 repeats
@nicklockwood @nasser no identity
Post #AsFy8ruMWJVtET7ecK by [email protected]
0 likes, 0 repeats
@mcc makes sense to me -- clojure already does thisuser=> (/ 2)1/2user=> …
Post #AsFy8s0k8acLYG6kYy by [email protected]
0 likes, 0 repeats
@nasser apparently inherited from common lisp
Post #AsFy8s63oos3okazqq by [email protected]
0 likes, 0 repeats
@mcc belongs on the pyre with the other originalist bullshit like car and cdr
Post #AsFy8sC5SPgw7RPoFE by [email protected]
0 likes, 0 repeats
@nasser i'm not doing this in my lisp but it's definitely the case that…
Post #AsFy8sbbvW6lObMC1o by [email protected]
0 likes, 0 repeats
@mcc i would say from my clojure experience to make the *return type invariant …
Post #AsFy9BrYKT9L7Xxh0y by [email protected]
0 likes, 0 repeats
@mcc 😤
Post #AsFy9nCPVsooux0NA8 by [email protected]
0 likes, 0 repeats
@mcc I think most Schemes and even Common Lisp do that (or equivalent, i.e. ret…
Post #AsFy9nIR9TdhDdpBYW by [email protected]
0 likes, 0 repeats
@ckafi those i make an error, because they are too likely to be a mistake. if y…
Post #AsFy9uYe9blTjwSjIG by [email protected]
0 likes, 0 repeats
@mcc One could argue that (+) should evaluate to 0 and (*) to 1, bc that's …
Post #AsFyAD3nMXNN7lArLM by [email protected]
0 likes, 0 repeats
@mcc I would consider the negative case to be clear from context, both because …
Post #AsFyADAWxUlPSeKEqG by [email protected]
0 likes, 0 repeats
@mcc an additional argument (albeit less significant and more about vibes) is t…
Post #AsFyADHGYS9RnXTcLA by [email protected]
0 likes, 0 repeats
@gsuberland @mcc I would fully agree if this wasn't about arithmetic on an …
Post #AsFyADMaEgPA41xrd2 by [email protected]
0 likes, 0 repeats
@brouhaha @gsuberland *thinks*unsigned integers comprise a field. signed intege…
Post #AsFyADSxqxVcNowxZg by [email protected]
0 likes, 0 repeats
@mcc @gsuberland Unsigned integers aren't a field. Division isn't (near…
Post #AsFyADYdVs2ufPbUPo by [email protected]
0 likes, 0 repeats
@brouhaha @gsuberland Sorry, I was unclear— an unsigned integer type *in a co…
Post #AsFyAuj50uwwYFowAC by [email protected]
0 likes, 0 repeats
@mcc @gsuberland I thought the definition of a field required every element oth…
Post #AsFyBGSWDAm3xGF1P6 by [email protected]
0 likes, 0 repeats
@mcc How are - and / variadic?
Post #AsFyBGYXqlawFx3pnU by [email protected]
0 likes, 0 repeats
@oblomov foldl(- 2 3 4 5) => 2 - 3 - 4 - 5(/ 2 3 4 5) => 2 / 3 / 4 / 5
Post #AsFyBZXTGz1d87hkGG by [email protected]
0 likes, 0 repeats
@mcc make it variadic, but such that it is compatible with `/`, i.e.`(% a b c d…
Post #AsFyBZeCrwPfT0r7lA by [email protected]
0 likes, 0 repeats
@fogti this… I think you've just said something very interesting but I do…
Post #AsFyBZkwStnhnu0VG4 by [email protected]
0 likes, 0 repeats
@mcc @fogti i would be hapy to write : (% x 60 60 24) to get the number of seco…
Post #AsFyBZqc7oL05Uf26C by [email protected]
0 likes, 0 repeats
@Aedius @fogti Ah… hm… crud… you may have just given me a use case D:
Post #AsFyBwnum0qRHmZhaK by [email protected]
0 likes, 0 repeats
@mcc @fogti yeah, i'm good for that !it always give me side quest when i wr…
Post #AsFyJ9XNpUDknxHJNQ by [email protected]
0 likes, 0 repeats
@mcc That's the Common Lisp way and people mostly seem ok with it?
Post #AsFyJ9eTP7tN9wayQa by [email protected]
0 likes, 0 repeats
@tkalvas is it. well that's a strong argument in favor then.
Post #AsFyJSM1rvQbAF70oi by [email protected]
0 likes, 0 repeats
@mcc it makes sense that the omitted element is the identity element for the op…
Post #AsFyJST7RZ6DWEQfrs by [email protected]
0 likes, 0 repeats
@nesaro that's a good observation
Post #AsFyKEAg5QrvSwAcmu by [email protected]
0 likes, 0 repeats
@mcc no. why would you even use / without exactly two elements, even?
Post #AsFyKEGhj1gnlczRBI by [email protected]
0 likes, 0 repeats
@dysfun why would you use - without exactly two elements? and yet i suspect if …
Post #AsFyKNRJcwWcD91XTE by [email protected]
0 likes, 0 repeats
@mcc / is not the inverse of -
Post #AsFyKSF5loib6gLLc0 by [email protected]
0 likes, 0 repeats
@dysfun @mcc I don't see anything implying that it was. The observation is …
Post #AsFyKmyUgiv3PHjt9k by [email protected]
0 likes, 0 repeats
@mcc I agree that (/ 5) feels wrong. 0.2 is (/ 1 5) surely?
Post #AsFyKn4WKJjvhyYhY8 by [email protected]
0 likes, 0 repeats
@benhamill Right, but if you're going to argue that, then why not say that …
Post #AsFyKwSFRT4EoAjHHc by [email protected]
0 likes, 0 repeats
@mcc I think my answer basically boils down to "historical reasons". …
Post #AsFyLaP6uYKCi1ZKwi by [email protected]
0 likes, 0 repeats
Unfortunately if there is one thing I have learned by writing MLs it is that pe…
Post #AsFyMK2LFXRcEjGnqK by [email protected]
0 likes, 0 repeats
@mcc is it more work to make % different? what’s the easiest thing that coul…
Post #AsFyMK80uRyuWJvKgS by [email protected]
0 likes, 0 repeats
@quitthebiz I can imagine a test case. Can I imagine a *use* case?
Post #AsFzwvW9TSWkrPEQVM by [email protected]
0 likes, 1 repeats
@mcc Having written more Haskell than Lisp in recent years, my brain thinks (/ …
Post #AsG2qcNW1KPFcrsLIm by [email protected]
0 likes, 0 repeats
@lritter @mcc I’ve seen unary % where x% means x/100, but with binary % as mo…
Post #At9XroOWc4KnSMC1Lc by [email protected]
0 likes, 0 repeats
You know, thinking about it, allowing variadic >, >=, <, <= would a…
Post #At9XroX26R8jskAobo by [email protected]
0 likes, 0 repeats
@mcc That's what Lisps usually do.
Post #At9XrodlhOWmDdKC6i by [email protected]
0 likes, 0 repeats
@pkhuong @mcc TIL
Post #AuHkZsvDwP8mkqSrAW by [email protected]
0 likes, 0 repeats
@mcc I definitely miss python's `if a < b < c < d:` comparison cha…
You are viewing proxied material from pleroma.anduin.net. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.