Better HN
topnewbestaskshowjobs
Log inSign up

xtreak29

1,045 karma · joined Sep 22, 2014 (12y ago) · 96 submissions

Submissions

comment 1mo ago · link · parent

The PEP has some notes on this.

https://peps.python.org/pep-0810/#global-lazy-imports-contro...

https://peps.python.org/pep-0810/#making-the-new-behavior-th...

2.

Discovery Loop(discoveryloop.com ↗)

954 points · by xtreak29 · 3mo ago · 599 comments

comment 3mo ago · link · parent

https://xcancel.com/JeffDean/status/2085034604172603724

> Announcing Discovery Loop!

> I am very excited to announce that, along with my longtime friends and collaborators @Sanjay_Ghemawat, @OriolVinyalsML and @quocleix, we are founding Discovery Loop (@DiscoLoopAI), a Public Benefit Corporation whose mission is to automate machine learning, science, and engineering to accelerate discoveries and progress. The four of us have worked together for 14 to 30 years, and have helped build some of the world’s most used products, infrastructure and AI models, and we’re excited to turn our attention to this ambitious endeavor.

comment 5mo ago · link · parent

Bun is moving towards rust but does this also help bun's compilation times?

https://ziggit.dev/t/bun-s-zig-fork-got-4x-faster-compilatio...

comment 9mo ago · link · parent

Reviewing code was also a big bottleneck. With lot more untested code where authors don't care about reviewing their own code it will take even more toll on open source maintainers. Code quality between side projects and open source projects are different. Ensuring good code quality enables long term maintenance for open source projects that have to support the feature through the years as a compatibility promise.

6.

AI usage in popular open source projects(tirkarthi.github.io ↗)

1 points · by xtreak29 · 9mo ago · discuss

7.

Generative AI and Healthy Skepticism(tirkarthi.github.io ↗)

1 points · by xtreak29 · 1y ago · 2 comments

8.

Apache Airflow 3.0 Release(airflow.apache.org ↗)

19 points · by xtreak29 · 1y ago · 2 comments

9.

Apache Airflow 2.10.0 is here(airflow.apache.org ↗)

1 points · by xtreak29 · 2y ago · discuss

10.

Apache Airflow 2.9.0 Release(airflow.apache.org ↗)

2 points · by xtreak29 · 2y ago · discuss

11.

Show HN: An open source dictionary app to show meanings as notifications(play.google.com ↗)

2 points · by xtreak29 · 2y ago · discuss

comment 3y ago · link · parent

https://stackoverflow.com/q/3177338

comment 4y ago · link · parent

There seems to be an issue open for this https://github.com/simsong/tcpflow/issues/58

comment 4y ago · link · parent

Does aioboto3 help here?

https://aioboto3.readthedocs.io/en/latest/usage.html#upload

comment 4y ago · link · parent

Some breakdown and comparison over the years https://meta.m.wikimedia.org/wiki/Wikimedia_Foundation_salar...

comment 4y ago · link · parent

https://streamlit.io/ is good for quick interfaces with components.

comment 4y ago · link · parent

You can get top PyPI package source using https://github.com/hugovk/pypi-tools/blob/main/repo_checker....

https://github.com/hugovk/pypi-tools

https://github.com/hugovk/pypistats

comment 4y ago · link · parent

Probably a reference to https://news.ycombinator.com/item?id=32531141

comment 4y ago · link · parent

Some discussion on this in PostgREST repo

https://github.com/PostgREST/postgrest/issues/1214

comment 4y ago · link · parent

I used rewriting as a learning experience. I found flutter to be simpler with respect to UI and state management compared to using XML by default for UI. Since mine was a crud app flutter was okay. I later found jetpack compose which has flutter like UI composition and I liked it better since I can access the existing Android library ecosystem too.

comment 4y ago · link · parent

I too wrote a similar app for my personal problem and also served to be a good way to learn about kotlin and Android ecosystem. I also tried a rewrite in flutter and compose. The idea was to use select the word and then click meaning from context menu so that meaning occurs as notification and disappears in 15 seconds. I used Wiktionary as dataset source and app works offline.

https://play.google.com/store/apps/details?id=com.xtreak.not...

https://github.com/tirkarthi/NotificationDictionary

comment 4y ago · link · parent

GitHub repo : https://github.com/readysettech/readyset

comment 4y ago · link · parent

There was a similar PEP https://peps.python.org/pep-0505/

comment 4y ago · link · parent

If you have the openapi spec then tools like below might help

https://dev.to/danielgtaylor/a-cli-for-rest-apis-part-1-104b https://github.com/danielgtaylor/restish https://github.com/danielgtaylor/openapi-cli-generator https://github.com/OpenAPITools/openapi-generator

comment 4y ago · link · parent

Thanks, your sqlite-utils and other libraries have been very helpful.

comment 4y ago · link · parent

Discussion: https://sqlite.org/forum/forumpost/d61880668db1a8f4

comment 4y ago · link · parent

Thanks

comment 4y ago · link · parent

In case of PostgreSQL there is json and jsonb. For SQLite, hexdump of the database shows text representation and seems to be stored like json than jsonb. I am not aware of the full design and source code but it seems some functions parse and cache the JSON representation.

https://github.com/sqlite/sqlite/blob/a0318fd7b4fbedbce74f13...

https://www.postgresql.org/docs/current/datatype-json.html

> The json and jsonb data types accept almost identical sets of values as input. The major practical difference is one of efficiency. The json data type stores an exact copy of the input text, which processing functions must reparse on each execution; while jsonb data is stored in a decomposed binary format that makes it slightly slower to input due to added conversion overhead, but significantly faster to process, since no reparsing is needed. jsonb also supports indexing, which can be a significant advantage.

comment 4y ago · link · parent

It seems readfile is from an extension but present in cli. json_each is present in standard sqlite core from 3.38.0 as json1 extension is also now part of core.

json_each : https://www.sqlite.org/json1.html#jeach

readfile : https://sqlite.org/cli.html#file_i_o_functions

> Note that the readfile(X) and writefile(X,Y) functions are extension functions and are not built into the core SQLite library. These routines are available as a loadable extension in the ext/misc/fileio.c source file in the SQLite source code repositories.

comment 4y ago · link · parent

There are couple of threads related to json import but a default mode will be helpful as there is already .mode json for output and import support will be great.

https://sqlite.org/forum/forumpost/567caa57234b98e46b885bcf8...

https://sqlite.org/forum/forumpost/f4b44e09cea20851014420a8b...

sqlite-utils is also a helpful project for various utilities : https://sqlite.org/forum/forumpost/ff5b6198eb6e794d2f774ce06...

I guess you are trying to do below from your comment.

  $ echo '["Kate", "John", "Jim"]' > names.json
  $ ./sqlite3
  SQLite version 3.38.0 2022-02-22 18:58:40
  Enter ".help" for usage hints.
  Connected to a transient in-memory database.
  Use ".open FILENAME" to reopen on a persistent database.
  sqlite> create table users(id integer primary key, name text);
  sqlite> insert into users(name) select value from json_each(readfile('names.json'));
  sqlite> select * from users;
  1|Kate
  2|John
  3|Jim
1234