News for hackers. Stuff that matters.

johnlinvc

Re:BBS: The Documentary (2005) on Sunday December 24, 2023 @09:43AM (#38753736)
ssh://[email protected] 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.

Re:What's new in Java 12, 13 and 14 on Tuesday December 17, 2019 @10:22PM (#21821465)
Swift also have them.
Re:If You Can't Buy the Keyboard You Want, Build It Instead on Sunday December 15, 2019 @10:05PM (#21800527)
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...

Re:China Detains Former U.S. Air Force Pilot Flying for FedEx on Friday September 20, 2019 @02:17AM (#21023741)
For those who want to see them or just like Nodejs. National Palace Museum(NPM) is the place to find them.
Re:Why Go and Not Rust? on Tuesday September 17, 2019 @03:12AM (#20992495)
yes, the regex part handles the validation.
Re:Why Go and Not Rust? on Tuesday September 17, 2019 @02:36AM (#20992289)
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
Re:A high-speed network driver written in C, Rust, Go, C#, Java on Thursday September 12, 2019 @01:01AM (#20948169)
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...

Re:Sunsetting Python 2 on Monday September 09, 2019 @05:10AM (#20916446)
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
Re:Ruby's Creed on Wednesday April 03, 2019 @01:50AM (#19561073)
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

Re:Python's New Package Landscape on Thursday October 18, 2018 @09:34PM (#18253720)
Ruby's bundler is pretty neat. It's one of the first systems that introduced lock files.
Re:Pipfile for Python on Tuesday November 22, 2016 @04:06AM (#13012764)
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.
Re:Swift Programming Language Evolution on Tuesday May 10, 2016 @01:21AM (#11665298)
We can even use string interpolation

    let x = "\(number)"
It's HNed, I got 509 Bandwidth Limit Exceeded. Looking forward to play it.
Re:Uber ruled illegal in Taiwan on Sunday February 21, 2016 @11:18PM (#11148406)
IIRC, Whatsapp is the first popular app of smartphone in Taiwan. In the beginning, A.P.P stand for Whatsapp in TV talk shows, just like F.B(Facebook) & I.G(Instagram) nowadays. Hence people trend to spell the word app as A.P.P.. As more and more apps came out, the word app became more general, but the spelling didn't change at all.
Re:Prime Minister of Singapore Coded Sudoku Solver in C++ on Wednesday April 22, 2015 @04:32AM (#9419153)
He got Cambridge Diploma in Computer Science.

[1]http://en.wikipedia.org/wiki/Lee_Hsien_Loong#Background_and_...

Re:Debugging memory leaks in Ruby on Wednesday April 01, 2015 @12:45AM (#9301686)
We can also do that with unicorn-worker-killer.
Re:Drop millions of allocations by using a linked list on Friday March 13, 2015 @05:39AM (#9196301)
"The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet." — Michael A. Jackson
Re:Automating Tinder with Eigenfaces on Wednesday February 11, 2015 @04:06AM (#9032072)
Looks like the bank need a random excuse generating algorithm.
Re:Battlecode 2015 – AI Programming Competition on Sunday January 04, 2015 @11:09PM (#8837209)
How about clojure and jruby? Adding these will be pretty awesome.
For the ruby/node guys, pkgr do the same thing: http://pkgr.io/
Is it hacker newsed? I'm having 502 bad gate way.
Re:Why was '~' chosen to represent the home directory? on Monday January 21, 2013 @04:02AM (#5090622)
The ctrl location on that old machine is much more handy. I've changed my caps lock to ctrl for years.