HNHacker News
TopNewBestAskShowJobs

erezsh

327 karma · joined May 18, 2009

Skilled Programmer

My blog: http://blog.erezsh.com/

My github: https://github.com/erezsh

submissionscomments
erezsh··on Show HN: I wrote a RDBMS (SQLite clone) from scratch in pure Python
Lark supports, and recommends, writing and storing the grammar in a .lark file. We have syntax highlighting support in all major IDEs, and even in github itself. For example, here is Lark's built-in grammar for Python: https://github.com/lark-parser/lark/blob/master/lark/grammar...

The rationale is that it's more terse and has less visual clutter than a DSL over Python, which makes it easier to read and write.

erezsh··on PRQL: Pipelined Relational Query Language
Except if I wrote it by hand, it would be -

    SELECT *
    FROM employees
    LEFT JOIN positions ON employees.id = positions.employee_id
which isn't really that different.
erezsh··on PRQL: Pipelined Relational Query Language
The last one is definitely a big factor, combined with the fact that you still have to compile to SQL, i.e. you are limited by its limitations, and there isn't always a workaround.

The rest are also true to some degree. But I think that once a serious contender comes along, people will eventually move to it.

erezsh··on Sarah Silverman is suing OpenAI and Meta for copyright infringement
You mean, never caught.
erezsh··on Show HN: An open-source, collaborative, WYSIWYG Markdown editor
> what "metadata" you're referring to

Metadata as in author, tags, and such, which your app allows to add outside of the actual contents.

I think it's nice to have, and even nicer if I could export/import them. Maybe support something like [this](http://fletcher.github.io/MultiMarkdown-5/metadata.html) or [this](https://peterbabic.dev/blog/yaml-metadata-in-markdown/)

erezsh··on Show HN: An open-source, collaborative, WYSIWYG Markdown editor
Looks nice! I might give it a try when I get the chance.

A few nitpicks:

- It would be nice if exports included the metadata as comments

- When I move my cursor over a code block, any key I press that isn't Enter will erase it, when really I just want to enter the code block and start writing. If I wanted to delete it, I could press del/backspace.

erezsh··on Show HN: Apricot – because RSS won't come back unless we move it forward
True, I can also imagine different directions.

I think it could be useful to have several categories of tag

- topics: science, art, politics, etc.

- purpose: news, opinion, explanation, introduction, humor, etc. (for example, anything from producthunt.com is introduction)

- format: text, audio, video

I think it's good to have wide coverage, because it means much better filtering/sorting, both for manual and automatic.

erezsh··on Show HN: Apricot – because RSS won't come back unless we move it forward
I like the direction you're going!

> * Items can be sorted chronologically or with an ML-powered recommender system.

It doesn't seem to be active right now. What is a realistic timeline for that to happen?

Other things I would like to see -

- Auto-tagging (gpt-powered?)and filter by tags

- Voting, for the recommender system, and as another metric of popularity

- Optional social aspect. Follow other users, maybe even add comments. (if I comment on an item from someone else's feed, maybe he can get a notification?)

I'll be happy to share more ideas if you like. Good luck!

erezsh··on Reddit goes down fully as thousands of subreddits protest API changes
The problem isn't that they're trying to make money. The problem is the management. They would have lost the users anyway, because their official app is terrible. This blackout is about signalling that something is very wrong.
erezsh··on Show HN: Stable Diffusion powered level editor for a 2D game
Very cool! When building it, did you encounter any unexpected obstacles, or found any cool tips that you'd like to share?
erezsh··on Show HN: I built an AI language teacher to get you speaking
I like it a lot, good job!

If I could make one suggestion, add a way to input text using the keyboard. Yes, I want to practice talking, but the voice-to-text is still far from perfect, and it makes it awkward. It often mishears things, and sometimes thinks I speak other languages that I don't even know! Maybe also add a way to say that "this isn't what I meant to say", and give me the choice of the top 3 highest ranked interpretations.

Also, one feature I think would help a lot, is if the bot was a bit more active, like quiz me, comment on the errors I'm making, and build "lesson plans" so that I can focus on the topics, instead of having to think what questions I should ask.

Having said all that, what you already have is a really great start! I signed up and looking forward to check it again in a month or two.

erezsh··on Conditional CSS
I think that would require while/recursion? Afaik ifs are very quick to calculate.
erezsh··on Show HN: Game of Life on non-square topologies with 2^32 update rules
You can't post something like that without screenshots. It's against Internet law.
erezsh··on We've filed a lawsuit against GitHub Copilot
The only thing worse than not having AI, is having all AI owned by a small group of people.
erezsh··on Show HN: Open-source infra for building embedded data pipelines
Looks useful! Do you have a way to validate that the data was copied correctly and entirely? If not, you might want to consider integrating data-diff for that - https://github.com/datafold/data-diff
erezsh··on Tao: A statically-typed functional language
Asking as a complete newbie in this paradigm, but what's the benefit of writing factorial like this?

    fn factorial = 
        | 0 => 1
        \ y ~ x + 1 => y * factorial(x)
Instead of

        | y => y * factorial(y-1)?
erezsh··on Show HN: Data Diff – compare tables of any size across databases
Great question, this is something we put a lot of effort into.

For both dates and numerics, we format them in a normalized format, and round them to the lowest mutual precision. It gets even more complicated, because when databases reduce the precision of timestamps, some of them round it, and some of them truncate. We implemented both, and we either truncate or round both timestamps, according to which database has the column with the lower precision.

We haven't got to bytes and strings yet, but it's on our list, and I imagine we'll use a similar approach.

For now, we print a warning whenever we don't have special handling for the column type. If you see a value mismatch where it shouldn't be, let us know and we'll implement it next.

erezsh··on Show HN: Data Diff – compare tables of any size across databases
> Making that work across databases could be a huge pain though

That was indeed the main challenge. Each DB has a different syntax, different set of features, different format for timestamps and floats, different max precision, and so on. I'd say most of our work on data-diff went to making sure the behavior of the different DBs aligned with each other.

erezsh··on Show HN: Data Diff – compare tables of any size across databases
data-diff has several advantages over running the query you wrote here.

- data-diff can compare tables across different databases. Your query is limited to one database.

- For very big tables, your 'select' will time-out. data-diff splits the diff into small segments, so we side-step this issue.

- data-diff supports running in threaded mode, which means it can finish a LOT faster. (especially for cloud databases.)

erezsh··on Ask HN: Why is Google Premium not a thing?
Maybe they're hoping to find better ways to leverage your private information in the future.
erezsh··on TatSu takes grammars in variation of EBNF, outputs memoizing Python PEG parsers
> a generated standalone parser behaves differently

Please submit an issue demonstrating it if you can! I'll do my best to fix it.

erezsh··on TatSu takes grammars in variation of EBNF, outputs memoizing Python PEG parsers
I couldn't find in the link any mention of heap or stack-based storage. Where can I find more info about it?
erezsh··on TatSu takes grammars in variation of EBNF, outputs memoizing Python PEG parsers
> The use of Python’s context managers considerably reduces the size of the generated parsers for code clarity, and enhanced CPU-cache hits.

I would love to hear more about how it affects cache hits.

erezsh··on Unbundling Airbnb
That might describe SF. Or student dorms. Most cities I've been to aren't like that.
erezsh··on Unbundling Airbnb
Hotels suck anyway. I can't imagine why anyone would want to pass through a reception and a bunch of corridors just to arrive "home", at a small room with bad furniture, and it isn't even cheap.

It might make sense if you just need a place to crash after a long day of traveling, but it's not a way to live.

erezsh··on Unbundling Airbnb
Another thing I always look for in the comments is quiet/noisy.

Sometimes I will look for that before even looking at the pictures.

erezsh··on I don't like computers (2016)
I'm not so sure. Most filesystems don't come with ACID guarantees.
erezsh··on Show HN: Humbo – The IMDB of Travel
So, are we rating whole cities? I don't really see the point. It's like nomadlist but with less data.

(sorry for being negative, but that's how I am)

erezsh··on I don't like computers (2016)
Same problem in Windows.

Also, there is no reason for the operating system UI to ever be stuck. If the program fails to redraw, show it blank, but don't prevent me from moving/sizing it. Even if the CPU is at 100%, I want my commands to get 1st priority. Too many times I had to spam Ctrl+alt+del just waiting for something to respond.

erezsh··on Interop 2022: browsers working together to improve the web for developers
The problem is that there are so many ways to do things, and every website uses a different subset.

Need to layout your elements? Great, that's what flex is for. I mean grid. I mean float. I mean the position attribute. I mean tables. I mean the margin attribution.

I'm really looking forward to a better integration of Webassembly. Then we can each pick our own libraries for layout/colors/video etc., and writing a browser will be more like writing a VM than writing huge entire ecosystems.

← PreviousPage 2 of 8Next →