johnlinvc

๐Ÿ“… Joined in 2012

๐Ÿ”ผ 33 Karma

โœ๏ธ 25 posts

๐ŸŒ€
15 latest posts

Load

(Replying to PARENT post)

ssh://bbs@ptt.cc is the largest one in Taiwan with ~60k concurrent user at this moment. You'll need to switch to BIG5 encoding to display properly.

There's also a web version https://www.ptt.cc/bbs/index.html , which supports Unicode.

๐Ÿ‘คjohnlinvc๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Swift also have them.
๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

I don't use toggles for these common symbols like /\'[-+] . The trick is that you make the top row as same as a normal keyboard, move ]\ from second row to the bottom row as they seldom get typed (] got auto completion most of the time).

Following is my mapping. https://configure.ergodox-ez.com/ergodox-ez/layouts/zLQW4/la...

๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

For those who want to see them or just like Nodejs. National Palace Museum(NPM) is the place to find them.
๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

yes, the regex part handles the validation.
๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Not exactly the same, since there's no UInt8 in Ruby.

    require 'sinatra'
    get %r{/hello/([^/]+)/(\d+)} do |name, age|
      "Hello, #{age} year old named #{name}!"
    end
๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Seems like the Swift slowness comes from ARC.

> Unfortunately, the performance analysis shows, that the retain and release introduce a big performance hit, with little information on why exactly so many calls are necessary.

https://github.com/ixy-languages/ixy.swift/blob/master/perfo...

๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

The battle has not over yet. RHEL 8 has Python 2.7 in their Application Streams. So looks like Red Hat will provide security updates until Jun 2024 https://access.redhat.com/node/4079021
๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

It's interesting to see that languages try to get features that other languages have.

In Swift they have position argument in block from the start

    users.map{$0.name}
now they want to add Ruby's &:attr feature[1]

    users.map(\.name)
Maybe the best feature user want is the one other languages have. Or this is just Blub Paradox[2] in real life.

[1]: https://github.com/apple/swift-evolution/blob/master/proposa... [2]: http://www.paulgraham.com/avg.html

edit: grammar

๐Ÿ‘คjohnlinvc๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Ruby's bundler is pretty neat. It's one of the first systems that introduced lock files.
๐Ÿ‘คjohnlinvc๐Ÿ•‘7y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Since we can reference other requirements with `-r req-dev.txt` inside requirements.txt . Current requirements.txt isn't really machine-readable without firing up a full Python interpreter.
๐Ÿ‘คjohnlinvc๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0
๐Ÿ‘คjohnlinvc๐Ÿ•‘9y๐Ÿ”ผ14๐Ÿ—จ๏ธ2

(Replying to PARENT post)

We can even use string interpolation

    let x = "\(number)"
๐Ÿ‘คjohnlinvc๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

It's HNed, I got 509 Bandwidth Limit Exceeded. Looking forward to play it.
๐Ÿ‘คjohnlinvc๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0