Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aldanor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
361.
▲
by
aldanor
6y ago
Uhh, so: Python has a language library feature that allows creating contiguous arrays, and hence it cannot be done in Python. Ok. // Pretty much the entirety of CPython is written in C, including lists, dicts and everything else,
362.
▲
by
aldanor
6y ago
Maybe read a bit on Deref: https://doc.rust-lang.org/std/ops/trait.Deref.html Any time you have a &String reference, it triggers coercion to &str.
363.
▲
by
aldanor
6y ago
Plus you have to learn their stupid formatting rules no one else uses, e.g. to insert code. If it's so targeted at developers, why not use a monospace editor in markdown with easy code highlighting instead of the abomination they have?
364.
▲
by
aldanor
6y ago
If you're talking about non-contiguity due to multi-dimensionality (or strided slicing), PyBuffer already internally supports that (and thus memoryviews, stdlib array, etc) - [0], is that "pure Python" enough? [0] https:
365.
▲
by
aldanor
6y ago
”Can not express this data structure"? It can of course, there's not much to express. Go and write a (slow) tensor library yourself in pure Python. To be fair, there's even a standard library `array` module that is a direct w
366.
▲
by
aldanor
6y ago
It's ok because HN is much smaller; on Reddit, there are posts with 20k+ comments - for those, thread collapsing kinda makes sense (which doesn't validate collapsing comment threads everywhere else though).
367.
▲
by
aldanor
6y ago
Read it as "give me ${1}", paused to think for a bit.
368.
▲
by
aldanor
6y ago
I was always baffled at why Slack doesn't support syntax highlighting? It's almost as if Slack developers themselves never use their own product or never share any code - otherwise how come they're not frustrated at it? Subje
369.
▲
by
aldanor
6y ago
Or maybe use the best of both worlds, with soldered-in ultra fast ram, plus large amount of dimm ram. Same as you can have a storage driver and a smaller nvme.
370.
▲
by
aldanor
6y ago
Well, this repo is definitely about data analysis pipelines and not about production trading systems, no one is arguing that writing live prod trading systems in Python is inappropriate. And in order to write "new analysis" in ano
371.
▲
by
aldanor
6y ago
Not much more of a headfuck than the flavours of Linux distros and their package managers and guis. "More unixy" is also a bad pun, there's nothing more unixy about it, just a package manager - pick one and use it. Been using
372.
▲
by
aldanor
6y ago
It's mostly not about "we need to mine these 100gb of data", but rather pandas-like comfort of messing around with humongous amount of data that is stored in ram, applying some common aggregations, filters, searches etc, and
373.
▲
by
aldanor
6y ago
It's not the Python itself but the ecosystem and tooling around it, especially in machine learning / data science area. I find it strange that many people don't understand it and instead compare languages is. "Just use J
374.
▲
by
aldanor
6y ago
Your GPU has a few hundred gb of ram?
375.
▲
by
aldanor
6y ago
That is, until you collect a few dozen thousand pocket bookmarks at which point you are at "there was this thing... how was it called?... have I saved it to pocket? Maybe I did... or not?"
376.
▲
by
aldanor
6y ago
Many macOS users don't have a single App Store app installed, or a few free default Apple ones. Don't talk out of your ass please.
377.
▲
RipTable – multi-threaded Python data analytics tools for numpy arrays/datasets
(github.com)
79 points
by
aldanor
6y ago
|
14 comments
378.
▲
by
aldanor
6y ago
That's pretty awesome indeed. (And of course, the main source file is named hooy.cpp)
379.
▲
by
aldanor
6y ago
Hm... unsafe {} + use pointers and you're back to c++-style? You've had unsound code in one language, now you have unsound code in other language, how come it's suddenly worse other than having to type unsafe explicitly? I&#x
380.
▲
by
aldanor
6y ago
+1, that's how things typically work these days. Note that "processing previous tick" may take a very-very long time (up to fractions of a millisecond) to execute, in which case you still want that part to be as fast as possi
381.
▲
by
aldanor
6y ago
XTX Markets uses Go, I think.
382.
▲
by
aldanor
6y ago
From what perspective exactly is Rust a middle ground Java and C++?
383.
▲
by
aldanor
6y ago
nobrowser.club? nointernet.club?...
384.
▲
by
aldanor
6y ago
If you know C++, do you also know that `a[i] = i++` is UB... but only until C++17? If not, I hope that answers the question. That's one of the reasons some newer languages like Rust purposefully avoided increment operators, where inste
385.
▲
by
aldanor
6y ago
Games often use arena-based allocation systems, slotmaps etc to manage myriads of instances. I don't see how any of that is a problem in Rust?
386.
▲
by
aldanor
6y ago
If only speedcrunch supported currencies :/
387.
▲
by
aldanor
6y ago
Holy cow. Which market data provider in their sane mind would send decimals as floats? I don't think I've ever encountered binary market data using anything but fixed-point decimals (so essentially, integers) for representing pric
388.
▲
by
aldanor
6y ago
512GB for a dev laptop? Yes I would. For 16GB RAM you pay +$200, even with that added the total price is still pretty low given what you get.
389.
▲
by
aldanor
6y ago
It's funny that I could say the opposite about Rust if you asked what I enjoy most about the ecosystem - many third party libraries have outstanding documentation. Wonder why is that - in the end, it's just some folks like you an
390.
▲
by
aldanor
6y ago
For some user categories, Linux is simply not a choice, whether you like it or not. E.g., for musicians. There's Reaper/Bitwig, but you no longer have Live/Cubase/Logic/etc. Your multi-$k audio interface no longer w
More ›