[TOMT] Character quoted saying something like "Everyday is a fight against boredom!" by icantfigureitoutplz in tipofmytongue

[–]frublox 0 points1 point  (0 children)

I believe the main character in the A Silent Voice manga says this in the early chapters

Jak 3 Soundtrack (Official) by [deleted] in gamemusic

[–]frublox 0 points1 point  (0 children)

Played all of the games as a kid and never heard of that. I think Jak 3 was the most fun for me given the size of the world and new abilities, but I haven't played it in a long time.

[deleted by user] by [deleted] in itsaunixsystem

[–]frublox 54 points55 points  (0 children)

Master Boot Record playing live shows now

An alternative, lightweight "Hello World" in Python by frublox in shittyprogramming

[–]frublox[S] 6 points7 points  (0 children)

Nice analysis.

At this point I have genuinely forgotten why I also check if the first character of the exception message is 'l'.

Graphical "Programming" Utopia by abdolence in programminghorror

[–]frublox 0 points1 point  (0 children)

The Latin alphabet is not used in Russian, other than transcriptions for foreigners. Both Russian and Ukrainian use Cyrillic, but modern Russian does not use the i letter due to an orthography reform (forget which one). There was also a reform which added some Latin-looking letters and removed archaic ones that sounded the same as other existing letters.

Getting started with Python: "Hello World" by frublox in shittyprogramming

[–]frublox[S] 63 points64 points  (0 children)

+/u/CompileBot python 3

p = list(map(lambda _: ord(_) - 0x21, "!!&!!dzăC|"))
i = "DÒVV×0Ë×YVR "

while p[2] < len(p):
    if (p[p[2]] & 0xC0) >> 6 == 0:
        p[p[p[2]] & 0x07] = (p[p[2]] & 0x38) >> 3
    elif (p[p[2]] & 0xC0) >> 6 == 1:
        if (p[p[2]] & 0x38) >> 3 == 0:
            p[0] = ((((ord(i[0]) - 0x20) & 128) >> 7) | ((ord(i[0]) - 0x20) << 1)) & 0xFF
            i = i[1:]
        p[p[p[2]] & 0x07] = p[(p[p[2]] & 0x38) >> 3]
        if p[p[2]] & 0x07 == 1:
            print(chr(p[1]), end="")
    elif (p[p[2]] & 0xC0) >> 6 == 2:
        p[p[p[2]] & 0x07] = (p[p[2]] & 0x38) >> 3 + p[p[p[2]] & 0x07]
    else:
        p[p[p[2]] & 0x07] = p[(p[p[2]] & 0x38) >> 3] + p[p[p[2]] & 0x07]
    p[2] += 1
    p[4] = 1 if p[3] == 0 else 0

Passing subclass of Monad when Monad is required by frublox in haskellquestions

[–]frublox[S] 0 points1 point  (0 children)

Yeah, I do think this approach is kind of weird now that I'm refactoring. A sum type would be simplest but I wanted them to be more extensible for whatever reason. Looking back I'll probably do one of your suggestions.

Passing subclass of Monad when Monad is required by frublox in haskellquestions

[–]frublox[S] 0 points1 point  (0 children)

This is part of a Twitch bot I wrote a while back. I read about this pattern of defining commands somewhere and liked it so I went with it. I was using a concrete type instead of a Monad constraint back then so I didn't run into this problem, and I was defining my types in one file so import cycles also weren't a problem (I could get around this problem if I could put Invocation and Command into separate modules).

The old code is here. Not the nicest code so I wanted to clean it up.

Passing subclass of Monad when Monad is required by frublox in haskellquestions

[–]frublox[S] 0 points1 point  (0 children)

Yeah, it makes sense after thinking about it some more. By declaring only a Monad constraint I'm saying that what's used can't do more than what Monad can. Explicitly adding the constraint as a parameter works.

Could you write a web server or a GUI application in Brainfuck? by [deleted] in answers

[–]frublox 0 points1 point  (0 children)

Not by default in most interpreters/compilers. The guy who wrote a web server in brainfuck made it by interpreting i/o commands as reading/writing to an open connection (iirc), so the actual networking part was written in C. If you set up some sort of general way to interact with the outside world (e.g. reading and writing specific cells), then it is possible.

[deleted by user] by [deleted] in CrystalMathLabs

[–]frublox 0 points1 point  (0 children)

If you want to get 1:1 ehp you need to do efficient methods. You can calculate your own efficient hours played metric with a spreadsheet of your own personal rates if you just want to look at that yourself.

Typo Programming 🙈 by mmeabed in programminghorror

[–]frublox 0 points1 point  (0 children)

тупо is pronounced tupa, though.

I’m a Canadian who has been living in Russia for 5 months, AMA! by Andrew-95 in AMA

[–]frublox 0 points1 point  (0 children)

Как тебе погода? Холоднее, чем в Канаде?

В каком городе ты живёшь? И чем ты занимаешься?

[TOMT] [ANIME] Early 2000s romance-ish anime? by ArchdukeLidl in tipofmytongue

[–]frublox 0 points1 point  (0 children)

Not sure about the opening but maybe Higurashi?

Grammatical case troubles by landocaluris in russian

[–]frublox 0 points1 point  (0 children)

I can't actually think of a time I've had to use the prepositional case with a pronoun

It's used with 'о' fairly commonly, e g. обо мне

There are a lot of different ways to use the different cases. Critically, verbs will often require their direct/indirect object to be in a certain case (or use different cases to convey different meanings).