News for hackers. Stuff that matters.

mgradowski

Re:The Reason So Many Autistic Adults Can't Stay Employed on Monday March 02, 2026 @11:04AM (#47219752)
Hennecke seems to be just one of many "udarniks" [1], common in countries east of the iron curtain.

There isn't really a lineage between that and contemporary capitalist culture IMO.

[1] https://en.wikipedia.org/wiki/Udarnik

Re:Many Hard LeetCode Problems Are Easy Constraint Problems on Friday September 12, 2025 @07:04PM (#45227751)
Isn't it trivially [1]?
Re:AI Is Different on Saturday August 16, 2025 @03:13PM (#44926142)
I jokingly alluded to antirez as HN crowd pars pro toto. I agree it doesn't pass as an intellectually honest argument.
Re:AI Is Different on Saturday August 16, 2025 @12:26PM (#44924821)
Sorry boss, I'm just tired of the debate itself. It assumes a certain level of optimism, while I'm skeptical that meaningfully productive applications of LLMs etc. will be found once hype settles, let alone ones that will reshape society like agriculture or the steam engine did.
Re:AI Is Different on Saturday August 16, 2025 @07:34AM (#44922328)
I wouldn't trust a taxi driver's predictions about the future of economics and society, why would I trust some database developer's? Actually, I take that back. I might trust the taxi driver.
I'm really confused because I had to scroll half the comment section for the word `semaphore`.

This seems to be an interview question about JS esoterica, not concurrent programming.

Re:Contra Wirecutter on the IKEA air purifier on Wednesday January 10, 2024 @06:58PM (#38945403)
UNIX philosophy is alive and well.
Re:FF4J – Feature Flags for Java on Wednesday June 07, 2023 @08:10AM (#36225798)
The "4j" suffix literally means "for Java" and is commonly used to indicate that the project is a Java library, e.g. log4j, slf4j, &c.
What you're really saying is that the database presented in OP is not useful because it only handles DQL.

1. SQL can be thought of as being composed of several smaller lanuages: DDL, DQL, DML, DCL.

2. columnq-cli is only a CLI to a query engine, not a database. As such, it only supports DQL by design.

3. I have the impression that outside of data engineering/DBA, people are rarely taught the distinction between OLTP and OLAP workloads [1]. The latter often utilizes immutable data structures (e.g. columnar storage with column compression), or provides limited DML support, see e.g. the limitations of the DELETE statement in ClickHouse [2], or the list of supported DML statements in Amazon Athena [3]. My point -- as much as this tool is useless for transactional workloads, it is perfectly capable of some analytical workloads.

[1] Opinion, not a fact.

[2] https://clickhouse.com/docs/en/sql-reference/statements/dele...

[3] https://docs.aws.amazon.com/athena/latest/ug/functions-opera...

Re:Checkmake: Experimental Linter/Analyzer for Makefiles on Sunday August 14, 2022 @02:09PM (#32461463)
Excellent name.
Re:Ask HN: Tools to visualize data in SQL databases? on Sunday February 13, 2022 @06:03PM (#30326483)
I'm curious why do you think of DAX as a virtue. My poor SQL-shaped peg brain has never really fit the DAX hole of MS software.

Also, it always struck me as something too complex for the non-technical folks, and not expressive enough for tech-literate analysts/data engineers &c.

Re:An Infinitely Large Napkin [pdf] on Friday February 11, 2022 @01:28PM (#30305165)
This book exposed me to proper math back in high school, I liked it.
Re:What would it take to recreate dplyr in Python? (2020) on Monday January 17, 2022 @02:54PM (#29971004)
Huh, even though I would prefer a universal SQL layer, ibis looks quite nice.
Re:What would it take to recreate dplyr in Python? (2020) on Monday January 17, 2022 @02:29PM (#29970709)
TIL there's an actual 'botched' library with the same name; I actually came up with it independently on a lazy office afternoon :^)
Re:What would it take to recreate dplyr in Python? (2020) on Monday January 17, 2022 @08:53AM (#29966534)
That's what I do at $dayjob whenever I have to do windowing &c. Figuring out this stuff in Pandas is a waste of time. Before I discovered DuckDB, I would re-learn the API every damn time. I came up with a little utility function, which you can implement yourself :)

``` def sqldf(df: DataFrame, query: str) -> DataFrame: ... ```

Re:What would it take to recreate dplyr in Python? (2020) on Monday January 17, 2022 @08:46AM (#29966480)
I like interface-only packages in the Julia ecosystem e.g. Tables.jl enables the development of several packages for querying tabular data that work across many concrete implementations; Plots.jl separates the high-level plotting interface from the plotting backend.
Re:What would it take to recreate dplyr in Python? (2020) on Monday January 17, 2022 @08:19AM (#29966238)
DuckDB and Polars are my bets in the Python data-wrangling space. I grew tired of Pandas' weird-ass API.
Re:macOS Setup after 15 Years of Linux on Friday December 31, 2021 @04:42AM (#29746392)
I have found this setting to break some apps (e.g. Spotify, my bank's app) though.
Re:Better SQL JOINs on Sunday December 26, 2021 @04:52AM (#29691025)
Neither did I. I tend to avoid RBDMS-specific syntax extensions of questionable benefit.

The only thing I really miss in PG is ASOF JOIN. It's possible to implement it via CROSS JOIN LATERAL, but in my case it resulted in nested loops — coming from ClickHouse it bothers me that there is no way (that I know of) to hint PG to use a specific join strategy.

Re:Better SQL JOINs on Saturday December 25, 2021 @05:01PM (#29687368)
Related — Postgres (other RDBMS's too, probably) has JOIN b USING (column, ...) and NATURAL JOIN. IIRC, both fail when there's ambiguity in column names.
Re:Fast CSV Processing with SIMD on Saturday December 04, 2021 @04:53PM (#29444636)
Nice one!
Re:Fast CSV Processing with SIMD on Saturday December 04, 2021 @06:33AM (#29440226)
Also, you will sleep better at night knowing that your column dtypes are safe from harm, exactly as you stored them. Moving from CSV (or god forbid, .xlsx) has been such a quality of life improvement.

One thing I miss though is how easy it is to inspect .csv and .xlsx. I kinda solved it using [1], but it only works on Windows. More portable recommendations welcome!

[1] https://github.com/mukunku/ParquetViewer

Re:SSH Tunneling Explained on Sunday October 10, 2021 @04:26AM (#28816763)
I use WireGuard with a server in my pantry as a router. Dynamic IP of the server is handled by DuckDNS, and WireGuard gracefully handles client roaming e.g. I can switch from home wifi to mobile internet without interrupting my SSH sessions. Would recommend.
Re:Ripgrep 13.0 on Monday June 14, 2021 @04:38PM (#27507994)
If you like fzf, give skim [1] a go. It's basically faster (anecdotally) fzf, but can also be used as a Rust library. I made a little personal to-do manager using it, together with SQLite for persistence. I also improved my fish shell ergonomics with [2].

[1] https://github.com/lotabout/skim [2] https://github.com/zenofile/fish-skim

Re:Ask HN: Show me some most beautiful fonts on Wednesday May 26, 2021 @06:19PM (#27296820)
Source Serif Pro is my Google Docs workhorse .
Re:Ask HN: Dotfiles Management Tools? on Monday April 19, 2021 @05:51PM (#26868329)
I use GNU Stow with a dotfiles git repo placed in $HOME. Works well.
Re:Functorio on Tuesday February 16, 2021 @03:55PM (#26158699)
Dependent types could presumably capture this idea. They are very expressive – see [1] for a perfectly type-safe printf implementation in Idris.

[1]: https://gist.github.com/chrisdone/672efcd784528b7d0b7e17ad9c...

Nice spelunking! If there is hope of avoiding C++ altogether, then I'll try testing it again on something beefier than my laptop. Thanks for taking the time and effort.
That's a nice and tidy codebase, real pleasure to read.

> I believe many (most?) opencv & numpy operations release the GIL.

Any idea how I can determine this? I am prototyping a real time machine vision application targeting 2x720p@240fps and I want to avoid writing any C++ for as long as possible.

Regarding [1], many OpenCV functions in Python support an optional dst argument, similar to how they do in the C++ API. This makes the memory management situation not completely hopeless.

In my experience, the only drawback of the Python API is the fact that it cannot utilize the multithreading module (probably does not release the GIL for long calls).

Older »