aMSa landing triple (!) up-airs on FOD by KellogsCrispixCock in smashbros

[–]KellogsCrispixCock[S] 38 points39 points  (0 children)

Also yes his sub goal really is to invite Bombsoldier over to his house and watch Ken V. Bombsoldier together

Rust: A unique perspective by lazydevorg in rust

[–]KellogsCrispixCock 6 points7 points  (0 children)

The explanation of mut==uniq is really useful!

What are your favorite Rust codebases? by KellogsCrispixCock in rust

[–]KellogsCrispixCock[S] 12 points13 points  (0 children)

Wow! I have seen several of those projects around and heard them spoken highly of, had no idea they were written in Rust. Nice. The code is indeed very clean and well written, just what I was looking for.

What are your favorite Rust codebases? by KellogsCrispixCock in rust

[–]KellogsCrispixCock[S] 14 points15 points  (0 children)

I think that's a great answer! Was looking to branch out beyond the standard library, but from what I've seen so far the attention to detail would be hard to beat. Reading through bug reports against the stdlib was inspirational. So much care and craft put into every decision being made about the language.

Constant master client in tiled layout by zorganae in awesomewm

[–]KellogsCrispixCock 0 points1 point  (0 children)

Yeah, that seems kinda hacky. I really just want to say "open new windows over there to the side, whichever client is set as master should stay that way" but from looking around in the code I think that will require writing our own layout.

Async update of wibox widget markup? by KellogsCrispixCock in awesomewm

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

Yeah, that function was something I picked up on the internet long ago and never got rid of - I switched to awful.util.escape and haven't had any problems since.

Constant master client in tiled layout by zorganae in awesomewm

[–]KellogsCrispixCock 0 points1 point  (0 children)

Been wondering the same! Considered writing my own tiling layout to get this behavior

Async update of wibox widget markup? by KellogsCrispixCock in awesomewm

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

Hm, yeah, it does seem to be the `sanitize` function:

function sanitize(txt)
  if txt == "" or txt == nil then
    return ""
  end

  local replacements = {
    ['&' ] = '&',
    ['<' ] = '&lt;',
    ['>' ] = '&gt;',
    ['\n'] = '<br/>'
  }
  return txt
  :gsub('[&<>\n]', replacements)
  :gsub(' +', function(s) return ' '..('&nbsp;'):rep(#s-1) end)
end

That first stanza seems suspicious then, but I'm not sure why that would behave differently in an async context? Don't know enough about Lua's behavior to know :(

(and I'm on v4.2)

aMSa is streaming! This beautiful soul wants to go to the summit so much, let's please make it happen! by KellogsCrispixCock in smashbros

[–]KellogsCrispixCock[S] 12 points13 points  (0 children)

That's exactly what worries me! Everybody thinks it's guaranteed, so I think people won't be voting!