Better HN
topnewbestaskshowjobs
Log inSign up

meehai

34 karma · joined May 13, 2023 (3y ago) · 32 submissions

Submissions

comment 1w ago · link · parent

In his analogy it's not; it can just lift dirt faster but you tell it which dirt to do.

2.

Show HN: MicroECS – entity component system library in Python/NumPy(github.com ↗)

5 points · by meehai · 5mo ago · discuss

comment 7mo ago · link · parent

with the amount of traction this has gotten... coming with a clear set of experiments even on arxiv paper would be of great help to showcase your improvements. And if they're easily reproducible, they could get integrated in the mainstream inference engines as well, as the main point here is compression with little degradation.

comment 8mo ago · link · parent

Actively doing this. It indeed forces me to think things through, organize thoughts and speak them out. I open paint/miro to draw. It's good practice.

comment 8mo ago · link · parent

and with little data (i.e. <10Mb), this matters much less than accessibility and easy understanding of the data using a simple text editor or jq in the terminal + some filters.

comment 11mo ago · link · parent

it's skills first and then money and hardware for scale

A more skilled person that understands all the underlying steps will always be more efficient in scaling up due to knowing where to allocate more.

basically... you always need the skills and the money is the fine tuning.

comment 1y ago · link · parent

Can you append new columns to a file stored on disk without reading it all in mempey? Somehoe this is beyond parquet capabilities.

comment 1y ago · link · parent

https://stackoverflow.com/questions/31812780/append-a-new-co...

comment 1y ago · link · parent

Yeah, but if you can do topologies based on latencies you may get some decent tradeoffs. For example with N=1M nodes each doing batch updates in a tree manner, i.e the all reduce is actually layered by latency between nodes.

comment 1y ago · link · parent

lossy encycopledia that can also do some short-term memory (RAG) things.

comment 1y ago · link · parent

I've played years of KZ and HNS after years of playing competitive CS on local communities (old PGL in romania!). I got over 6k hours in steam CS1.6 + many more on "non-steam". That game shaped me. I even learned the basics of programming while modding a KZ plugin: https://forums.alliedmods.net/showthread.php?t=130417

Nowadays I code for a living, but for sure this is the game that started the spark for me.

It was a great time and I feel that I can always run this game and get back to that childhood feeling.

comment 1y ago · link · parent

Tbh, the web won the application platform mostly because it's a standard. Everybody knows html, css and a little JS.

On the other hand, for mobile apps, there is still a device-specific mentality.

Imagine web apps being built with a different flavor for all the major browsers...

I hope that the same level of standardization comes to mobile apps too with the option to use more device-specific features on top of the generic UI.

comment 1y ago · link · parent

Mine is much more barebone:

- one single machine - nginx proxy - many services on the same machine; some are internal, some are supposed to be public, are all accessible via the web! - internal ones have a humongous large password for HTTP basic auth that I store in an external password manager (firefox built in one) - public ones are either public or have google oauth

I coded all of them from scratch as that's the point of what I'm doing with homelabbing. You want images? browsers can read them. Videos? Browsers can play them.

The hard part is the backend for me. The frontend is very much "90s html".

comment 1y ago · link · parent

the last point got me.

How can you idiomatically do a read only request with complex filters? For me both PUT and POST are "writable" operations, while "GET" are assumed to be read only. However, if you need to encode the state of the UI (filters or whatnot), it's preferred to use JSON rather than query params (which have length limitations).

So ... how does one do it?

comment 1y ago · link · parent

https://github.com/overleaf/overleaf hm ?

comment 1y ago · link · parent

vscode with the markdown plugin works really good.

text on the left, render on the right pane

example: https://imgur.com/9rjoMa2.png

comment 1y ago · link · parent

At work we have a pretty big Python monorepo. The way we scale it is by having many standalone CLI mini apps ( about 80) atm with most of them outputting json/parquet in GCS or bigquery tables. Inputs are the same.

I insisted a lot on this unix (ish as it's not pipes) philosophy. It paid off so far.

We can test each cli app as well as make broader integration tests.

comment 2y ago · link · parent

I meant that they should be separate tools that can be piped together. For example: you have 1 directory of many files (1Gb in total)

`zip out.zip dir/`

This results in a single out.zip file that is, let's say 500Mb (1:2 compression)

If you want to shard it, you have a separate tool, let's call it `shard` that works on any type of byte streams:

`shard -I out.zip -O out_shards/ --shard_size 100Mb`

This results in `out_shards/1.shard, ..., out_shards/5.shard`, each of 100Mb each.

And then you have the opposite: `unshard` (back into 1 zip file) and `unzip`.

No need for 'sharding' to exist as a feature in the zip utility.

And... if you want only the shard from the get go without the original 1 file archive, you can do something like:

`zip dir/ | shard -O out_shards/`

Now, these can be copied to the floppy disks (as discussed above) or sent via the network etc. The main thing here is that the sharding tool works on bytes only (doesn't know if it's an mp4 file, a zip file, a txt file etc.) and does no compression and the zip tool does no sharding but optimizes compression.

comment 2y ago · link · parent

couldn't agree more!

We need to separate and design modules as unitary as possible:

- zip should ARCHIVE/COMPRESS, i.e. reduce the file size and create a single file from the file system point of view. The complexity should go in the compression algorithm.

- Sharding/sending multiple coherent pieces of the same file (zip or not) is a different module and should be handled by specialized and agnostic protocols that do this like the ones you mentioned.

People are always doing tools that handle 2 or more use cases instead of following the UNIX principle to create generic and good single respectability tools that can be combined together (thus allowing a 'whitelist' of combinations which is safe). Quite frankly it's annoying and very often leads to issues such as this that weren't even thought in the original design because of the exponential problem of combining tools together.

comment 2y ago · link · parent

I think Open Weights is a better name for AI models that don't share the reproducible training scripts and data.

comment 2y ago · link · parent

one answer is due to the fact that humans also do this with just 2 pretty bad cameras and a lot of offloading to the cortex.

It also simplifies the stack a lot to have a single set of sensors, so the software becomes mostly: getting good training data (iterative loops from failing production cases) and an efficient training algorithm.

This scales to more than just AD and also can leverage new breakthroughs from academia

comment 2y ago · link · parent

what about this pattern? https://www.inngest.com/blog/python-errors-as-values

I tried it once in an sqlite DB connector with some business logic and simply checking stuff like

  res: DBException | Result = db_handler.some_business_logic()
  if isinstance(res, DBException):
    return res # you can also log or even raise if this function isn't returning exceptions as values
  # guaranteed to be Result type here
See here:

- https://gitlab.com/meehai/drpciv-flask/-/blob/main/be/db_han...

- https://gitlab.com/meehai/drpciv-flask/-/blob/main/be/app.py...

23.

Show HN: VRE Dataset generation for MultiTask vision models training from videos(gitlab.com ↗)

2 points · by meehai · 2y ago · discuss

comment 2y ago · link · parent

how does this compare to streamlit ?

comment 2y ago · link · parent

I'm in the 'visualising the words as text' category, and I've always thought I have a bad memory compared to other friends, though I can recall every little detail of large software projects that I've been in.

During exams, where I had to cram lots of theory in a small amount of time, I recall trying to 'access' the slides via how they looked like in my mind and trying to somehow read the stored image, because that's for me easier to remember than the actual text when I'm not doing any deep understanding, but just memorization :/ I hated these kinds of exams, what's the point of repeating 500+ slides out of 14 weeks of courses word by word ?

Open book exams + internet + tricky questions were the best.

comment 2y ago · link · parent

Linear is perfect.

comment 2y ago · link · parent

you had me in the first half, not gonna lie.

comment 2y ago · link · parent

isn't this what llamaindex is doing though?
12