Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
akubera
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
akubera
10y ago
Most documentation is in the form of README files within the subdirectories; here is the code auto-docs: https://docs.rs/fractalide Looks like knowledge of the nix distribution system is required to use. I don't know h
92.
▲
HiFive1: Open-Source, Arduino-Compatible RISC-V Dev Kit
(crowdsupply.com)
12 points
by
akubera
10y ago
|
0 comments
93.
▲
by
akubera
10y ago
I'd recommend reading the communist manifesto to understand the issue better. Buying beer and sharing with friends week after week is a good example of capitalism, as the bar owner is profiting so much from you and your friends buying
94.
▲
C implementaion of asyncio.Task in Python3.6
(bugs.python.org)
2 points
by
akubera
10y ago
|
0 comments
95.
▲
by
akubera
10y ago
I hope they still include a physical power button somewhere on the device, though I don't see it on any leaked keyboard pictures.
96.
▲
by
akubera
10y ago
Question: Can s-expression list-of-lists really be used to represent an unordered map when it comes to operations like equality? Or rather, does one simply use expectations/context to compare this object to, say [["foo",
97.
▲
Lever: A GUI and general-purpose scripting language
(leverlanguage.com)
3 points
by
akubera
10y ago
|
0 comments
98.
▲
by
akubera
10y ago
In retrospect, "social" was the wrong word; what I really meant was "a place people already have an account and may contribute" i.e. a large, established community. I'll leave the question of "is it a social co
99.
▲
by
akubera
10y ago
I've been using macports for years and am excited by the prospects a "social" coding experience will bring with a much lower barrier to entry for contributions. They say they will stick with Trac for dealing with issues. I un
100.
▲
LHC – Fifth fundamental force has NOT been found
(dailymail.co.uk)
7 points
by
akubera
10y ago
|
0 comments
101.
▲
by
akubera
10y ago
Their Array class is perhaps unfortunately named, as it behaves as a vector or list (i.e. you can push things to the collection) rather than fixed size memory block. The important thing to notice in their example is the assignment to '
102.
▲
by
akubera
10y ago
I'm not very familiar with Go, so please correct me if I'm wrong, but this looks like this pattern was chosen due to the async-focused nature of the language; similar to many callback-laden javascript error handling strategies. Is
103.
▲
by
akubera
10y ago
> I plan on porting what I have over when 3 actually gets over the hump but not before. Don't you think that mentality is part of the problem?
104.
▲
by
akubera
10y ago
Are you implying that being a programming "technician" is equivalent to being a bad programmer? Nobody has said "good developer" before you did. I think the point is not to base the "goodness" of the developer
105.
▲
by
akubera
10y ago
The point isn't the commenter /(doesn't know how to|couldn't)/ find the site; it's the fact that the web was built to link relevant pages together, and this page (and many) fail to do that, despite it being an
106.
▲
by
akubera
10y ago
Also, if you're talking about specifically replacing a source files (i.e. modules), one could hack around with https://docs.python.org/3/library/importlib.html#importlib.r... . I think it would work with enoug
107.
▲
by
akubera
10y ago
Off the top of my head, if you write a custom MiddlewareChain class that exposed its own management port, you could inspect and modify the state of the chain at any time, checkboxes to disable middleware, change endpoints, insert debug midd
108.
▲
by
akubera
10y ago
I have not used aiohttp, but it looks like their application must be initialized with a list of middleware_factories. I do not see any logic in choosing middleware - just a straight shot. Growler apps just add functions to an internal list,
109.
▲
by
akubera
10y ago
Also pressing is the method for turning "route strings" (I call them "sinatra paths", I'm not sure where they actually originated) into a regex /foo/{bar} or /foo/:bar => re.compile(r'&#x
110.
▲
by
akubera
10y ago
No. But if it's related to the urbandictionary definition... I'm taking back the word!
111.
▲
by
akubera
10y ago
Thanks! The biggest missing piece is simple, well-tested middleware. My focus has been on very general middleware; a kind of 'meta-middleware' that actually spec out a common behavior to minimize surprises and boilerplate. For exa
112.
▲
by
akubera
10y ago
As I understand, the asyncio module was inspired by Twisted. Growler is, at its heart, a super minimal interface: passing (req, res) pairs through a pipeline of middleware (similar to node). Since this is built with the standard library, al
113.
▲
by
akubera
10y ago
For optimal performance, yes use aiopg or equivalent (it looks like there is an asyncio sqlalchemy project which might be nice.) Any middleware may be a coroutine object, so it's as easy as `await res.render("whatever")` in a
114.
▲
by
akubera
10y ago
Yes! An initial test last night of a trivial growler app (i.e. one method that replies with a simple string) saw a median response time drop from ~200ms to ~80ms. (using apachebenchmark, n=1000 c=100)
115.
▲
Growler: Asyncio Micro-Framework in Python
(github.com)
116 points
by
akubera
10y ago
|
30 comments
116.
▲
by
akubera
10y ago
Great article. I'm a little surprised they didn't mention MakerBot and their reaction to hardware clones, followed by the community's response.