Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
svieira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
811.
▲
by
svieira
11y ago
Release build failed - https://github.com/nodejs/node/pull/6383#issuecomment-214844... New one is running, and should be out soon-ish.
812.
▲
Defeating the NPM Worm
(davidbruant.github.io)
17 points
by
svieira
11y ago
|
7 comments
813.
▲
by
svieira
11y ago
I've always done two-phase migrations. Phase 1: Upgrade schema for new code. Migrate initial data from old schema to new schema. [Deploy: New code starts taking requests, writing to new schema. Old code is drained from the pool of ha
814.
▲
Artificial Intelligence Outperforms Human Data Scientists (2015)
(spectrum.ieee.org)
4 points
by
svieira
11y ago
|
0 comments
815.
▲
by
svieira
11y ago
Ultimately, that's what makes HList / HMap / Records so interesting to my mind - heterogeneously typed containers without the manually-generated boilerplate.
816.
▲
ES2015 Proxies landing in Chrome 49
(chromestatus.com)
2 points
by
svieira
11y ago
|
0 comments
817.
▲
by
svieira
11y ago
Python is UTF-8 by default and only upgrades to UTF-16 / 32 when it would make sense to do so given the characters in the string. > UTF-32 is wrong, [because] it's wasteful and still doesn't accomplish what people naively
818.
▲
by
svieira
11y ago
I'm actually building one right now using Scala + skinny-micro-framework [1] + Slick and it's going pretty well. Very nicely composable, easy to work with Futures (unlike Scalatra) and very easy to extend to handle new types glob
819.
▲
by
svieira
11y ago
It is not live (unless I am mis-understanding what you mean by live) - it is evaluated once . That is to say: def magic(a, b): return f"{a} and {b}" s = magic(4, 8) print(s) a, b = 3, 7 print(s)
820.
▲
by
svieira
11y ago
I like the general thrust of PEP 498 (`f""` is explicit, unlike Ruby or Bash's magic `"` vs. `'`). That said, I think it would be much improved if it went the way of Scala and JavaScript (2015+) and made `r`, `u`, `
821.
▲
by
svieira
11y ago
Several good ones have already been suggested, but here's a few more: - https://github.com/mahmoud/boltons : utility functions, but well documented - https://github.com/KeepSafe/aiohttp : a P
822.
▲
by
svieira
11y ago
Lots of discussion about why that isn't possible (and other tangents) here [1] [1]: https://what.thedailywtf.com/t/plane-not-actually-commandeered-by-wi-fi-that-was-not-actually-hacked/47922
823.
▲
by
svieira
11y ago
Unfortunately, due to hoisting decorating top-level functions is a real pain [1]. What should the behavior of: myMagicFunction(); var myDecorator = require('myDecorator'); @myDecorator function myMagicFunction(
824.
▲
by
svieira
11y ago
Back when I was doing Python deployments (~2009-2013) I was: * Downloading any new dependencies to a cached folder on the server (this was before wheels had really taken off) * Running pip install -r requirements.txt from that cached folder
825.
▲
by
svieira
11y ago
This is directly addressed in the PEP [1] - the short of it is, without the `async` modifier if you have two functions: def important(): await something() def something(): # ... stuff ... await something_else()
826.
▲
by
svieira
11y ago
The fact that `typeof` is no longer safe [1][2] is news to me - it feels like they put in air bags and removed the seat belts. [1]: https://github.com/airbnb/javascript#14.1 [2]: http://es-discourse.com&#
827.
▲
by
svieira
11y ago
A couple of different ways that I have heard of: * SO_REUSEPORT - not reusing the socket, but allowing multiple sockets to bind to a single port. [1] * Fork / Exec - have a parent process signal the child process to terminate after it
828.
▲
by
svieira
11y ago
> Various intelligence services seem to be treating the Internet like a battleground in a war, potentially creating new risks for hundreds of millions of people. The internet was designed to survive a war. Can it handle being the batt
829.
▲
by
svieira
11y ago
They do and they are (at least where I have worked) but it seems that Google et. alia are smart enough to not follow links marked containing text with the value "Unsubscribe".
830.
▲
by
svieira
12y ago
Chuckles IE used to support this with something called Inter-Page Transitions [1] - every time I saw it it made me double-take. <META http-equiv="Page-Exit" CONTENT="progid:DXImageTransform.Microsoft.Slide(Duration
831.
▲
by
svieira
12y ago
Erlang on Xen[1], mayhap? [1]: http://erlangonxen.org
832.
▲
by
svieira
12y ago
Chuckles - Gödel's Inanity Theorem sounds suspiciously like the game of "Cheat the Prophet" from G. K. Chesterton's The Napoleon of Notting Hill [1]: > The human race, to which so many of my readers belong, has be
833.
▲
by
svieira
12y ago
A few thoughts: I like the setup - the layout is very nice, and once you get used to the concepts involved it becomes much easier to see what you can do with it. That said, "Loop" is not the word I would use to describe the mai