HNHacker News
TopNewBestAskShowJobs

Spiritus

3,606 karma · joined May 17, 2012

submissionscomments
Spiritus··on Ask HN: Looking for the best Phoenix/Elixir/Erlang Tutorials
http://learnyousomeerlang.com
Spiritus··on Rust 1.17
Alacritty is full of render issues and missing features. It's fast because it barely does anything, and doesn't even do it correct. Just check the ever growing laundry list of issues it has on Github.

With that said, it's a very interesting project. Especially with regards to its rendering engine.

Spiritus··on Shutting down public FTP services
Wow, I had no idea lftp had that feature. That's super cool.
Spiritus··on Envoy: 7 months later
I guess that's one the reasons they created https://github.com/linkerd/linkerd-tcp
Spiritus··on OpenBSD 6.1 released
https://www.tilaa.com does (FreeBSD too)
Spiritus··on Analysis of the Facebook app for iOS
Why not just remove them instead?
Spiritus··on Coming in 2018 – New AWS Region in Sweden
You're probably right. I'm not really familiar with what it takes to operate a data center.
Spiritus··on Coming in 2018 – New AWS Region in Sweden
Same thing: https://en.oxforddictionaries.com/definition/partial
Spiritus··on Coming in 2018 – New AWS Region in Sweden
I see, that makes more sense I guess. Still, I would've liked it if they put the DCs in Norr- or Västerbotten. I'm very partial though ;P
Spiritus··on Coming in 2018 – New AWS Region in Sweden
I'm actually disappointed they went with Stockholm. Though I can understand why (proximity to a large pool of talent among other things).
Spiritus··on Python past, present, and future with Guido van Rossum [audio]
What rough edges and warts? And what fundamental issues?
Spiritus··on Go Web Examples
Something like this will hopefully get the point across on how to handle "multipart/form-data" forms. It will print the content of the upload to the server's stdout.

https://play.golang.org/p/DiNGdl27kE

You can use curl to test it out (it assumes a file called "foobar.txt" is available):

    curl -v -F upload=@foobar.txt localhost:8080/upload
Spiritus··on Million requests per second with Python
The client isn't always a browser though.
Spiritus··on Million requests per second with Python
So? The API is still Python. How do think numpy got so popular?
Spiritus··on Comparing Elixir and Go
Perhaps not exactly what you/they are referring to. But this is interesting:

https://github.com/docker/libchan

Spiritus··on If I could amend PEP 8
>Line-length can exceed 79 characters, to 100, when convenient.

My issue with this is that, in reality, everything will now be 100 chars.

Spiritus··on Grumpy: Go running Python
Using Gevent[1] is quite similar to Go when it comes to concurrency in Python.

[1] http://sdiehl.github.io/gevent-tutorial/

Spiritus··on How to Use Clojure for Scripting
If you think Clojure has too much startup overhead for scripting, maybe Pixie[1] will pique your interest.

[1] https://github.com/pixie-lang/pixie

Spiritus··on Proposal to delete the r/golang subreddit
Reddit discussion https://www.reddit.com/r/golang/comments/5eqs64/proposal_to_...
Spiritus··on Using Rust for 'Scripting'
Which is why you use httplib[1] for sending HTTP requests.

    >>> import httplib, json
    >>> conn = httplib.HTTPConnection("httpbin.org")
    >>> conn.request("GET", "/get")
    >>> res = conn.getresponse()
    >>> print res.status, res.reason
    200 OK
    >>> data = json.load(res)
    >>> print data
    {u'origin': '0.0.0.0', ...}
    >>> conn.close()
[1] https://docs.python.org/2.7/library/httplib.html#examples
Spiritus··on Using Rust for 'Scripting'
>[...] the standard library is about as complete as you can get (and probably better than the classical scripting languages — all of Ruby/Python/Perl missed a good API for some things like HTTP, which led to the rise of separate packages like Faraday/Requests/etc)

What? Rust basically has no standard library. At least Python doesn't require pulling in third-party libraries to do globbing, create a zip/tar, create a tempfile or send/serve http. Hell, it doesn't even do command-line arguments outside of manually parsing and iterating over the args vector.

Spiritus··on I don't understand Python's Asyncio
Don't use lambda.

    gevent.spawn(requests.get, url)
Spiritus··on LuaTeX 1.0.0
LuaJIT != Lua
Spiritus··on Vim 8.0 released
Try cleaning your Homebrew cache for neovim.

    rm -rf /Library/Caches/Homebrew/neovim--git
    brew reinstall --HEAD neovim
Spiritus··on Dropbox prompts password resets
Why aren't they using dropbox.com instead of the suspicious looking dropboxmail.com?
Spiritus··on gRPC: Internet-scale RPC framework is now 1.0
Ugh, why does the Python driver use CamelCase method names?

    def GetFeature(self, request, context):
http://www.grpc.io/docs/tutorials/basic/python.html
Spiritus··on gRPC: Internet-scale RPC framework is now 1.0
I would like to use gRPC, unfortunately the Python driver is incompatible with Gevent[1]. And that's more or less a show stopper for us.

[1] https://github.com/grpc/grpc/issues/4629

Spiritus··on “It's The Future”

    from subprocess import Popen, PIPE
    p1 = Popen(["foo"], stdout=PIPE)
    p2 = Popen(["bar"], stdin=p1.stdout, stdout=PIPE)
    p1.stdout.close()  # Allow p1 to receive a SIGPIPE if p2 exits.
    output, _ = p2.communicate()
https://docs.python.org/3.5/library/subprocess.html#replacin...
Spiritus··on Go 1.7 is released
Then Python is a good alternative, it's basically already installed everywhere.
Spiritus··on Looking at your program’s structure in Go 1.7
It didn't have any external dependencies, only multiple packages.
← PreviousPage 4 of 11Next →