News for hackers. Stuff that matters.

iamlucaswolf

Re:ExplainDB: A Database System Built for Understandability on Monday October 05, 2026 @10:15AM (#49965196)
This is a system for teaching undergrad students how RDBMS work, not a DBMS for modeling human understanding.
Re:OpenAI begins rolling out GPT-6 Astra on Thursday September 03, 2026 @04:37PM (#49556572)
Yes. But I think that misses the point.

In 1799, Paolo Ruffini published a 500 pages long proof showing that there is no closed algebraic solution for the roots of a polynomial of degree five or higher. The proof is extremely verbose and brute-force, essentially enumerating and checking hundreds of cases by hand. It is by today’s standards insignificant.

About 25 years later, Evariste Galois proved the same result in about 95% less space by describing the first general theory of groups and fields. It is considered one of the greatest contributions to mathematics of that century, not because of the result, but because its approach opened up a whole new universe of questions, methods and insight. There would be no AES encryption without Galois.

To me, Astras proof looks like Ruffinis proof.

Re:Ask HN: How do I program a BitGrid? on Sunday July 28, 2024 @02:27AM (#41091569)
What exactly is the ask here? Do you want input for a programming model? Practical advise for building a compiler? Do you want to target real hardware or a software simulator?

> I'd settle for a good way to express said tree in a plain text file

What you are referring to is commonly called an IR (intermediate representation). Compilers typically take the AST generated by the parser and translate (“lower”) it into increasingly hardware-near and optimized IRs before performing instruction selection.

I briefly browsed through the links you provided. IIUC, BitGrid is essentially one of the Turing-complete 2-D cellular automata. This Reddit thread might be interesting to you [0].

[0]: https://www.reddit.com/r/computerscience/s/IE5WRIrKsR

Re:Is an All-in-One Database the Future? on Tuesday July 23, 2024 @04:43AM (#41043987)
I think this question mixes up two orthogonal dimensions: transactionality (i.e., OLTP vs. OLAP) and data model (relational, document-based, graph, vector, ...).

Regarding transactionality: There is an entire area of research on "hybrid transactional and analytical processing" (HTAP) systems that unifies OLAP and OLTP systems. Hyper [1] pioneered this path at TU Munich, it's successor Umbra [2] recently incorporated as CedarDB [3]. There are lots of others. Most of these systems, AFAIK, are relational.

Regarding data model: What we've seen in the past few decades is that non-relational DBMS (excluding key-value stores) only make sense in rare edge cases that require huge scale. There has, e.g. been research [4] that shows that graph databases are still, well, lacking, compared to relational systems. The common pattern seems to be: unless you need to service very specific workloads at huge scales, SQL is probably enough [5]. Then again, it really comes down to intrinsics. If you were to, for example, implement distributed locking using Postgres, you would likely run into problems with MVCC and Xids very quickly.

So, as you already mentioned, there is no silver bullet. But even today, unless you are Meta or Google, SQL is probably enough for a long time and lots of use cases.

(Full disclosure: I'm working on Hyper full-time).

[1]: https://hyper-db.de/ [2]: https://umbra-db.com/ [3]: https://cedardb.com/ [4]: https://homepages.cwi.nl/~boncz/edbt2022.pdf [5]: https://www.youtube.com/watch?v=VxKt245X_ws

Re:Gen AI: too much spend, too little benefit? on Tuesday July 02, 2024 @10:21AM (#40856995)
If you had <50% accuracy in expectation you could improve your analysis by inverting it, I suppose...
Re:Nvidia is about to pass Apple in market cap on Wednesday May 29, 2024 @04:07PM (#40516392)
My read is that investing into AI is the trendy thing to do in 2024. No CEO will have to justify pouring money into AI; they would probably be seen as negligent if they don’t. It’s just the zero-risk strategy at this point in time. That’s not to say that there is no value to be realized, it’s more a question of how much value and at what price. If in the next 12-24 months we find out that AGI, robotics and the end of labor is not as imminent as some have hoped and that perhaps not every car dealership needs an AI chat assistant, and the first companies announce reductions in their AI spending, the dominos might begin to fall. Or not, let’s see.
Umbra was recently spun out as CedarDB [1].

And Hyper is alive and well at Salesforce/Tableau! The team working on it is still in large parts the original Hyper team from TUM. You can actually download Hyper (as a binary with language bindings) and play around with it [2] for non-commercial use cases.

If you think Hyper/Umbra is cool, the TUM database group has lots of other very interesting projects going on at the moment. LingoDB [3] pushes the database-as-a-compiler idea to the extreme by implementing query optimization and compilation query compilation in MLIR. LingoDB is open-source. Also Viktor Leis, who stands behind (among many other things) Hyper's Morsel scheduling and ART indexes as well as Umbra's buffer management recently started a very interesting project [4] to heavily co-design the DBMS together with the OS in a unikernel approach. Really interesting stuff!

Disclaimer: I work on Hyper. Views are my own.

[1]: https://cedardb.com/ [2]: https://tableau.github.io/hyper-db/docs/ [3]: https://www.lingo-db.com/ [4]: https://www.cs.cit.tum.de/dis/research/cumulus/

Re:Ask HN: Cheapest way to use LLM coding assistance? on Saturday April 13, 2024 @11:34AM (#40023772)
Thanks, that seems to be exactly what I was looking for!

Any insights on the business model? Is this just to advertise the pro tier or do they monetize usage in another way (e.g. selling training data)?

Ask HN: Cheapest way to use LLM coding assistance?

I would like to toy around with LLM assistance (Chat/Copilot) for my coding side projects. Given that I will only use this sporadically (20hrs per week max, with variation between weeks), I was wondering if there was a cheaper way to access these tools than paying for an OpenAI/GitHub Copilot subscription.Has someone here done the math on self-hosting on the cloud/running locally/using the APIs...

( Read More... | 4 comments | 2 points | on HN )
Re:Ask HN: Do you think AI is threat to developers job? on Monday November 27, 2023 @04:58AM (#38430417)
I believe this is a rational assessment in general. A lot of the discussion around this topic seems to be negligent of market dynamics.

However, the crux is in the details:

> You can increase the % enough so that overall demand for developers goes down or doesn't grow as much as it would have otherwise.

I would be at least skeptical of this. Every push for commodification that we've seen in the software space so far has been absorbed by demand. Will this continue forever? Nobody knows. At least where I work the backlog is filled to the brim, and every new iteration of tooling begets more babysitting to unlock the promised gains. And customers still have a never-ending list of hyper-specific feature requests.

The friends and colleagues at the Senior/Staff level who are using Copilot/GPT-4 (and have admittedly become much better than me at prompting) didn't exactly become "hyper-productive". Sure, they get code pushed out faster, but they still work long hours and complain about deadlines.

This is not to say that we're all fine forever and things will not change. But as long as we don't experience an across-the-board temperature shift in the job market decoupled from macro-economic events I wouldn't put too much attention there. In the end, doom scrolling is also just a form of procrastination.

Re:Ask HN: How do I assess my seniority level? on Tuesday October 31, 2023 @08:07AM (#38083514)
First few lines are almost verbatim ChatGPT (without knowing your exact prompt): https://chat.openai.com/share/a7a9c996-f655-427d-bc23-4e9161...

Look — I appreciate that you want to help OP out here, but please keep HN free from low-effort LLM-generated answers like this. Everyone here has access to chatGPT, so the added utility of pasting responses from it is close to zero.

As someone who never owned cryptocurrency and frankly never cared that much: could you ELI5 the idea of a Bitcoin ETF? Is it just a vehicle to trade Bitcoin (as in a single cryptocurrency; BTC) on a normal stock exchange? Is it an index-weighted portfolio of BTC and other (e.g. Ethereum)? Does the fund actually own BTC or is it technically a derivative like a synthetic (regular) ETF?

Ask HN: Feeding Bing AI's Output to Curl?

Hypothetically, what would happen if you fed Bing AI's output to curl and the result back to Being AI?Someone mentioned in an earlier discussion that Bing AI could actively simulate long-term memory via the Bing search index (i.e., humans write about their interaction with Bing AI on the internet, which gets fed back into the Bing search index, which gets queries by Bing AI, etc).It feels like...

( Read More... | 1 comment | on HN )
Re:Ask HN: Is there a Jupyter Notebook for terminal/shell on Wednesday January 18, 2023 @04:23AM (#34424889)
Sorta-kinda: VSCode lets you execute code from regular Python files in a Jupyter session [1] by demarcating code cells with "# %%"

[1] https://code.visualstudio.com/docs/python/jupyter-support-py...

15-445/15-721 got me a job. Thank you so much for making them publicly available.
Re:Ask HN: Any weird tips for weight loss? on Thursday March 10, 2022 @03:47AM (#30624676)
David Sinclair's "Lifespan" Podcast changed my relation to food (although I can't vouch for scientific accuracy).

Ask HN: What's your learning strategy?

What's your strategy for retaining knowledge from lectures, papers, textbooks, talks, etc?Specifically, 1) Do you take notes? 2) Do you compile/rewrite notes? 3) Does spaced repetition work for you? 4) Do you have a methodology for extracting common themes/patterns across topics?Thanks!

( Read More... | 90 comments | 115 points | on HN )
Re:GitHub Copilot regurgitates valid secrets on Monday July 05, 2021 @10:35AM (#27738421)
Absolutely. I also believe that Copilot is getting more flak than appropriate at the moment.

To rephrase my comment above: I don't want to blame the team behind Copilot for not getting everything right on the first try. Neither am I in a position to do so, nor would I want to live in a world where smart people aren't allowed to make mistakes.

What irritates me is that there are two possible scenarios here:

1) They knew about potential issues and decided to release it anyway (without at least addressing them verbally). 2) They didn't.

And frankly, I don't know which one I like less. Even though it's still a beta/preview, either option seems to signal a degree of negligence? that feels unnerving given the potential impact of such a system.

That being said, if we do live in scenario 1) than I am certain that better framing could have prevented the PR fallout that we're seeing right now (at least partially). IMHO, GitHub (the platform) is still a great product after all.

Re:GitHub Copilot regurgitates valid secrets on Monday July 05, 2021 @07:53AM (#27736993)
What amazes me is how predictable(?) all of the recent issues were.

Don't get me wrong, the folks behind Copilot are clearly, without any doubt smart, creative, and capable. But then... None of these issues (reproducing licensed code ad verbatim, non-compiling code, getting semantics wrong, and now this) are 0.01% edge cases that take specialized knowledge to see or trigger. I remember some of them being called days ago in the initial HN thread by people who haven't had beta access.

I really wonder how this announcement/rollout looked like on the management side of things. Because a) these shortcomings must have been known beforehand and b) backlash from people who feel threatened for their jobs/"stolen" of their open source work was (I guess) foreseeable? I've already read calls to abandon GitHub for competitors; this can hardly have been an acceptable outcome here.

Nevertheless, Copilot is still one of the most innovative and interesting products I've seen in a while.

Re:The Evolution of Developer Salaries: Looking Back 20 Years on Thursday February 25, 2021 @06:01AM (#26261713)
This might be a fair assumption from a birth statistics viewpoint, but completely misses immigration.

I met a lot of brilliant people from all over the world during my undergrad at TU Munich; many of them stayed. Google, Apple, Microsoft have expanded rather aggressively over the past years, and the startup scene is growing. Berlin, Hamburg, Frankfurt seem to follow suit.

Granted, it's much less likely (and also less politically incentivized) to become a "millionaire employee", but I guess ultimately, the correlation between wealth and wellbeing is simply weaker in (northern) European economies? As long as immigration policies don't change (and why would they? the current model aligns well with lobby incentives), I don't see much reason for this to change.

Also, Poland, Romania, Bulgaria, Spain, and Greece have a different political and economic history than Germany, France, Denmark, Sweden, etc.

Re:JupyterLab 3.0 on Tuesday January 05, 2021 @02:53PM (#25650140)
I use a setup like this. Essentially, I use pyenv [1] to manage Python versions and Poetry [2] [2](https://python-poetry.org/) for virtualenvs/dependencies.

The workflow for creating a new project looks like this:

1. Create a project directory (e.g. 'myproject') and `cd` into it. 2. `git init` 3. Fixate the Python version for that project with the `pyenv local` command (e.g. `pyenv local 3.8.6`). This creates a `.python-version` file that you can put under source control. Within the `myproject` directory tree, `python` will now be automatically resolved to the specified version. Your system Python (in fact, any other Python versions you might have installed) remain untouched. 4. Create a new poetry project (`poetry init`). This creates a `pyproject.toml` which contains project metadata + dependencies and can also be checked into git. 5. Add dependencies with `poetry add`. Here, you could for instance add Jupyter Lab (`poetry add jupyterlab`).

To access installed dependencies, such as the `jupyter lab` command, you can either execute one command in the virtualenv directly (`poetry run jupyter lab`) or spawn a shell (`poetry shell`). If you open a Jupyter Notebook that way, the packages installed in the virtualenv are directly available from within Jupyter Notebooks, without having to mess around with installing IPython kernels.

I like this approach, because it gives you full flexibility, while being portable and easy to use. It gets you around having to deal with conda (which I found to be frustrating at times). Also, you're not tied to the Jupyter frontends, but could e.g. just install `ipykernel` and open notebooks in VSCode.

[1](https://github.com/pyenv/pyenv/) [2](https://python-poetry.org/)

Edit: Moved the links

Ask HN: Tools/Workflows for programming with little screen estate

Hi,this might be somewhat of an odd question, but anyway:I might soon move into a small studio apartment with just enough space for either a desk or a small dining table. Personally, I'm leaning towards the latter (I'd like to be able to invite friends over every now and then, and also enjoy the idea of having a space to come home to that doesn't look like another improvised office). The...

( Read More... | 2 comments | on HN )
Re:Do Stocks Outperform Treasury Bills? (2018) on Saturday September 21, 2019 @11:01AM (#21035754)
I don't pretend to know the numbers, but my guess is that Survivorship Bias might account for that to a substantial amount. I just can't imagine that there are people with glass bowls that good to make consistent alpha over the long term.
Re:Germany lays out a path to quit coal by 2038 on Saturday January 26, 2019 @06:23PM (#19009231)
I loosely followed the work of the "Kohlekommission" (i.e. the panel that was responsible for negotiating the exit plan) through various German news outlets.

The strategy agreed upon today was a revision of an earlier plan that would have cost a "mere" 5bn euro. This deal was however opposed by the individual federal states of Germany, which demanded 60bn – just to put the final 40bn in perspective.

40bn is still a huge sum of money (about 1/3 Jeff Bezos, for scale), but as a German voter and tax payer I have to say that I am entirely fine with this. Germany is a very prosperous country, and we have to get away from coal, the sooner the better. True, it probably could have been done with less money, but to me 40bn is still a favorable deal over no deal at all.

Re:VW Solves Quantum Chemistry Problems on a D-Wave Machine on Saturday December 29, 2018 @12:52PM (#18784766)
They do. As an annecdote, the professor who formerly held the "Machine Learning" course at TU Munich left for VW's AI research group (https://argmax.ai) a few years ago. Whether that qualifies as "science" may be debatable, but the larger players in the automotive space are definitely invested in this kind of research.
Re:Mathematicians Measure Infinities, Find They’re Equal on Wednesday September 13, 2017 @11:55AM (#15239509)
Phew, you have some courage, questioning the foundations of modern Mathematics in a place like this. But I can relate to your concerns about Cantor's argument. When I first heard it, it also felt artificial and unconvincing to me.

What helped me (as with many proofs and concepts in Math) was an image, a visual metaphor if you like.

Imagine a very, very large paper on which you place infinitely many dots in a grid. That's the infinity you were referring to, the infinity of a for-loop, discrete infinity. Here's the trick: you can always add more dots, say by making the distance between grid points half as small, which would quadruple the number of dots in your grid. But no matter how many dots you place on the paper, ho matter how fine your grid, there will always be holes (imagine "zooming in" on a square of four grid points). In fact, most of the paper will be empty!

The other kind of infinity, continuous infinity, does not have any holes. Every spot is covered. You could not add any grid point, because the whole paper itself is painted.

I'm not a "full-time Mathematician", so this view may be entirely wrong. But it helped me understand and appreciate Cantor. Perhaps it did the same for you.

Cheers!

Re:Ask HN: Best books on AI? on Saturday March 18, 2017 @05:08AM (#13900528)
To iterate on what others said, but what was not emphasized enough from my point of few:

AI is academic (as a synonym for 'theoretical' and 'math-intensive'). Once you look beyond purely symbolic AI, which proved to be infeasible as @curuinor pointed out somewhere here, you will need to build up at least basic knowledge in probability theory and linear algebra.

The path I'm following at the moment is a quite rigorous one and is outlined here (http://www.deeplearningweekly.com/pages/open_source_deep_lea...).

If you've never had any exposure to probability theory or statistics, I recommend having a look at the course "MIT 6.041 Probabilistic Systems Analysis and Applied Probability" taught by John Tsitsiklis at MIT (video lectures are available through YouTube and MIT OpenCourseWare for free). Both the course and Tsitsiklis' book are superb learning materials to get into probabilisitc thinking.

Edit: Link was broken. Thanks to @blauditore.

Re:Ask HN: Best books on AI? on Saturday March 18, 2017 @03:41AM (#13900345)
This.

If you're also looking for a course that goes alongside the book, I highly recommend UC Berkley's CS188 (you can find it at http://ai.berkeley.edu).

The lecturer Pieter Abbeel does such a good job explaining stuff and the programming exercises are really neat.

Edit: Formatting