Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
oblvious-earth
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
61.
▲
by
oblvious-earth
5y ago
Oh yeah, I really loved debugging Java installations on clients PCs so our applets would work correctly.
62.
▲
by
oblvious-earth
5y ago
This is a documentation issue not a framework issue. For a long time you do client side storing of data with dcc.Store: https://dash.plotly.com/dash-core-components/store For server side storing of data you should use
63.
▲
by
oblvious-earth
6y ago
That's not an existing construct, it's a LHS assignment language like the match statement but it's embedded inside a for-loop. Which means you have to implement all the grammar of the current match and it restricts to only wo
64.
▲
by
oblvious-earth
6y ago
The second version also effectively introduces a new DSL sub-language, it just puts a walrus operator at the end of it. I agree the matching is complex, you only have to see what a portion of the grammar file it takes up: https://
65.
▲
by
oblvious-earth
6y ago
I took the example from the PEP itself, feel free to list out a different one.
66.
▲
by
oblvious-earth
6y ago
So you would turn something like this: match command.split(): case ["north"] | ["go", "north"]: current_room = current_room.neighbor("north") case ["get", o
67.
▲
by
oblvious-earth
6y ago
Sometimes it's about optimizing wall time not algorithmic complexity. If you have a batch SLA of 1 hour, and your currently spending 50-70 mins to complete the batch and 20 minutes of that time is spent date parsing and you can reduce
68.
▲
by
oblvious-earth
6y ago
I've had this situation a few times. Most recently transforming large (1-50 GB) CSV files in to a format that can be digested by a proprietary bulk DB loader. Because our problem was just about reformatting we ended up reading the CSVs
69.
▲
by
oblvious-earth
6y ago
Nope, as Python continues to be popular it just increases the rise of tools to manage Python (e.g. Poetry), increase the scalability (e.g. Dash), executable distribution (e.g. python-build-standalone), improve speed for hot code (e.g. numba
70.
▲
by
oblvious-earth
6y ago
Python does support Unicode Variable names but only for characters which represent written languages: https://python-3-for-scientists.readthedocs.io/en/latest/pyt... Specifics here: https://www.python.o