Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joshlk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
joshlk
6y ago
Nand to Tetris: how a computer is built from the ground up. Starting from nand logic gates all the way to OO programming https://www.coursera.org/learn/build-a-computer
92.
▲
Ask HN: Top Coursera Courses?
486 points
by
joshlk
6y ago
|
157 comments
93.
▲
Welcome to Flatland. Valve's handbook for employees (2012) [pdf]
(steamcdn-a.akamaihd.net)
4 points
by
joshlk
6y ago
|
0 comments
94.
▲
by
joshlk
6y ago
> FYI, here in tke UK, almost all Uber cars are older diesel saloons / estate cars, and mostly just a normal taxi with an extra "Uber" sticker. That’s not true in London. Most Uber cars in London are Toyota Prius hybrid ca
95.
▲
by
joshlk
6y ago
Is this a reputable news source (genuine question)? Some of the lines are hyperbole: "Plug-in hybrids are fake electric cars, built for lab tests"
96.
▲
by
joshlk
6y ago
Good idea. What do you mean exactly by improv lessons?
97.
▲
by
joshlk
6y ago
DataClassFrames also takes the approach of storing lists of dataclasses as a “dataclass of arrays” - know as data orientated design: https://gitHub.com/joshlk/dataclassframe (Full disclosure I’m the author of the proj
98.
▲
by
joshlk
6y ago
I do actually - just dug it out: https://imgur.com/a/0uIQW6f This was an experiment I did against a very slow API. It's 5 years old and so I was using Python 2.7. The graph shows number of completed requests per s
99.
▲
by
joshlk
6y ago
A collections of recommendations that I have built up during my 5+ year experience using Pandas in a variety of commercial projects. I would like to ask the wider community for feedback or any other recommendations they would like to add. F
100.
▲
Show HN: Pandas style guide for production code
(github.com)
1 points
by
joshlk
6y ago
|
1 comments
101.
▲
by
joshlk
6y ago
That would be a good idea, but it's non-trivial in Python as multi-processing async support is patchy. If you have to choose multi-processing vs async for HTTP requests, from experience, async is much faster (as your not CPU bound but
102.
▲
by
joshlk
6y ago
Its not simple to just "swap out" the requests library with an async one. This is why I wrote this package :) It deals with a lot of the headaches one would run into by trying just that.
103.
▲
by
joshlk
6y ago
All running in a single thread - but the work is executed asynchronously. This is preferred for I/O heavy throughput such as many HTTP requests.
104.
▲
by
joshlk
6y ago
This wont work for a large number of requests as the throughput plateaus quit rapidly with a large number of threads due to the GIL and blocking I/O. This is the main reason async was introduced into Python. Also `many-requests` has fu
105.
▲
by
joshlk
6y ago
Needed when executing 1 million API requests for example. Use the full force of your machine by utilising async IO via the excellent library Trio. It has been tested in the wild with more than 10 million requests. Automatically handles erro
106.
▲
Show HN: Dead easy Python for executing many HTTP requests asynchronously
(github.com)
46 points
by
joshlk
6y ago
|
23 comments
107.
▲
by
joshlk
6y ago
This wasn't implemented as I think it would be very hard to do/impossible in Python.
108.
▲
by
joshlk
6y ago
Yes - you can use nested dataclasses. But you will loose some of the nice features
109.
▲
by
joshlk
6y ago
This is what this package aims to prevent. Providing rigidity to the data structure while giving the performance and API benefits of Pandas
110.
▲
by
joshlk
6y ago
I came to the idea as I wanted to use the ergonomics and efficiency of Pandas DataFrames but realised it makes messy production code thats hard to maintain. This package provides the best of both worlds. Description: A Python dataclass cont
111.
▲
Show HN: A Python container for dataclasses with multi-indexing and vector opps
(github.com)
122 points
by
joshlk
6y ago
|
14 comments
112.
▲
DataFrame use Anti-Pattern (2018)
(devanla.com)
1 points
by
joshlk
6y ago
|
1 comments
113.
▲
by
joshlk
6y ago
I have frequently fallen into this pattern before. I generally saw DataClasses and NamedTuples akin to Structs and thats why C++/Java programmers used them. However, I know see their advantages
114.
▲
Ask HN: Coding interview advice or tuition/mentor
1 points
by
joshlk
6y ago
|
0 comments
115.
▲
by
joshlk
6y ago
Yes the argument is trivial. But it illuminates design choices of each language which is interesting
116.
▲
by
joshlk
6y ago
Could you compile Python to Web Webassembly instead of JavaScript? Presumably that would have better performance.
117.
▲
by
joshlk
6y ago
For some systems even with the Lagrangian/Hamiltonian setup your solving differential equations with numerical techniques that has error. It might be that the neural networks has less error than the standard techniques. This is a gues
118.
▲
by
joshlk
6y ago
I personally find the Python plotting landscape a mess and confusing. It always seems to be a lot harder than is necessary to do anything and make it look good.
119.
▲
by
joshlk
6y ago
Does this break the user agreement for macOS?
120.
▲
Guide to Allyship
(guidetoallyship.com)
1 points
by
joshlk
6y ago
|
0 comments
More ›