Skip Navigation
قلب | a non ascii programming language that uses arabic script
  • Going by the example in the Github, it looks like a right-to-left Lisp with Arabic keywords. Does that fully describe the language or is there more to it than that?

    I'd be interested in hearing about the parts that are more influenced by Arabic than Scheme. Are there any beyond the keyword language and writing direction? Like a new keyword that does something useful but has no equivalent in Scheme because the concept isn't easily expressed by an English keyword?

  • A proposal for java's "throws" in python: Extend type hints to cover exceptions
  • Hey, I like checked exceptions too! I honestly think it's one of Javas's best features but it's hindered by the fact that try-catch is so verbose, libraries aren't always sensible about what exceptions they throw, and methods aren't exception-polymorphic for stuff like the Stream API. Which is to say, checked exceptions are a pain but that's the fault of the rest of the language around them and not the checked exceptions per se.

  • [DISCUSS] Pros/cons of videos for technical documentation?
  • The one case where I prefer video is when I know next to nothing about the topic and the other choice is mediocre to low-quality writing. Most people aren't great technical writers, and it's easy to skip over steps either because the writer assumes too much prior knowledge or simply because it takes effort to put that information in. On the other hand, videos are the opposite where it takes effort to cut stuff out, so you usually get all the steps which is what I need when I don't know anything.

    If I have the option of a well-written, step-by-step tutorial though, or if I already know the topic and have a vague idea of what I'm looking for, then text is much better for being able to search/skim/go back and forth at my own pace.

  • How weird it feels to call holoEN members by their nickname vs real name tier list
  • I consider YabaIRyS more of an epithet than a nickname. I can't imagine anyone using it to replace her name like "I wonder what YabaIRyS (IRyS) is doing", only as a description replacing yabai like "Bruh, YabaIRyS (yabai)" in response to something she did/said.

    Forgetting Faufau is pretty indefensible. It's been a long time, but that puts it in the same boat as Kronini and Sanana which I did remember.

    I wasn't sure if Fuwa-chan and Moco-chan count as nicknames or if they're just how you say their names in Japanese. I guess dropping the last syllable is what makes it a nickname as opposed to just their real name + Japanese honorific?

  • I Don't Use Exceptions in C++ Anymore
  • At a library level, couldn't you have an opaque sum type where the only thing you can do with it is call a match method that requires a function pointer for each possible variant of the sum type? It'd be pretty cursed to use but at least it wouldn't require compiler plugins.

  • C and C++ Prioritize Performance over Correctness
  • The behavior is defined; the behavior is whatever the processor does when you read memory from address 0.

    If that were true, there would be no problem. Unfortunately, what actually happens is that compilers use the undefined behavior as an excuse to mangle your program far beyond what mere variation in processor behavior could cause, in the name of optimization. In the kernel bug, the issue wasn't that the null pointer dereference was undefined per se, the real issue was that the subsequent null check got optimized out because of the previous undefined behavior.

  • Programming.Dev Feature Requests
  • No idea how hard it would be but it would be nice to have code blocks with syntax highlighting like on Github, so you could write something like

    ```python
    def f(x):
        return x
    ```
    

    and get syntax highlighted code def f(x): return x

  • Deleted
    *Permanently Deleted*
  • lesswrong.com: I remain unconvinced by the central AI doom and Effective Altruism stuff, but the peripheral posts on rationality, math, short-form sci-fi stories, musings on random topics, etc. have been massively influential on me.

  • What is the best memory model for a Tic Tac Toe grid? (References and ownership)
  • Do you care about modeling the cells? If not, you could represent each row with just a number. When X plays, add 1 to all the rows that include the position they played, and when O plays, subtract 1. If any row reaches +3 or -3, that player wins.

    As for rotation/reflection invariance, that seems more like a math problem than a Rust problem.

  • Connect the World archive expires in a little over 24 hours
    spwn.jp SPWN

    SPWN(スポーン)は、ライブハウスをはじめとする全国の劇場、映画館、イベントスペースなどのあらゆるステージを世界に届けます。

    SPWN

    Apparently there's a recut version of the archive with some extra footage. If you watched the original version, you might have missed it. Bae is hosting a watchalong which will be the perfect excuse to rewatch the concert VOD before it goes away.

    1
    PRQL (Pipelined Relational Query Language)
  • > My main point is that PRQL makes no distinction. If you didn’t inspect that SQL output and already know about the difference between WHERE and HAVING, you would have no idea, because in PRQL they’re both just “filter”.

    Hmm, I have to disagree here. PRQL has no distinction in keyword, but it does have a distinction in where the filter goes relative to the aggregation. Given that the literal distinction being made is whether the filter happens before or after the aggregation, PRQL's position-based distinction seems a lot clearer than SQL's keyword-based distinction. Instead seeing two different keywords, remembering that one happens before the aggregation and the other after, then deducing the performance impacts from that, you just immediately see that one comes before the aggregation and the other after then deduce the performance impacts.

    > As far as removing arbitrary SQL features, I agree that that is it’s main advantage. However, I think either the developers or else the users of PRQL will discover that far fewer of SQL’s complexities are arbitrary than you might first assume.

    That's fair, I was just thinking of things that frustrate me with SQL, but I admittedly haven't thought too hard about why things are that way.

  • PRQL (Pipelined Relational Query Language)
  • What are the implications of WHERE vs HAVING? I thought the only primary difference was that one happens before the aggregation and the other happens after, and all the other implications stem from that fact. PRQL's simplification, rather than obscuring, seems like a more clear and reasonable way to express that distinction.

    I don't know if PRQL supports all SQL features, but I think it could while being less complex than SQL by removing arbitrary SQL complications like different keywords for WHERE vs HAVING, only being able to use column aliases in certain places, needing to recompute a transformation to use it in multiple clauses, not forcing queries to be in SELECT... FROM... WHERE... order, etc.

  • holoEN BEEGsmols Karaoke Relay

    Council is doing a karaoke relay into a collab in about an hour! All karaokes are unarchived.

    Original announcement tweet: https://twitter.com/hakosbaelz/status/1679510538966167552

    !Stream timetable

    Streams: Ceres Fauna Karaoke Ouro Kronii Karaoke Nanashi Mumei Karaoke Hakos Baelz Karaoke IRyS Karaoke Group Collab

    I tried to post this before and I don't think it went through, but maybe it did so sorry if this is a duplicate post.

    1
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)QW
    qwertyasdef @programming.dev
    Posts 5
    Comments 32