Better HN
topnewbestaskshowjobs
Log inSign up

rushter

140 karma · joined Aug 9, 2015 (11y ago) · 37 submissions

Submissions

1.

Show HN: Hexora – detection and analysis of malicious Python scripts(github.com ↗)

3 points · by rushter · 1y ago · discuss

2.

Show HN: Hexora – static analysis tool for malicious Python scripts(github.com ↗)

2 points · by rushter · 1y ago · discuss

comment 3y ago · link · parent

https://rushter.com

Most of my posts are about Python's internals and some security stuff

4.

How to turn an ordinary gzip archive into a database(rushter.com ↗)

1 points · by rushter · 6y ago · discuss

comment 6y ago · link · parent

Github does not send any extra information.

    "GET /counter.svg HTTP/1.1" 200 565 "-" "github-camo (62249a1c)"

I've reverted the badge.

comment 6y ago · link · parent

You can't view profile statistics right now. Personally, my intent was to demonstrate the concept. I don't have plans using it.

comment 6y ago · link · parent

I've removed it because it does not display relevant information anymore (someone fetches ten times a second via wget).

I also don't have plans to use it in the future. I wanted to demonstrate the concept.

comment 6y ago · link · parent

You can check it here https://github.com/dwyl/hits

Also https://twitter.com/holman/status/427937383376379904

comment 6y ago · link · parent

I agree, but I think such information should be available to all people. Some people will be doing this anyway, and they can hide this by using a transparent pixel.

comment 6y ago · link · parent

I did some research before writing an article. GitHub started proxying images in 2014, and there are a lot of repositories that use this technique to keep their stats. I think GitHub is OK with that.

11.

How to track and display profile views on GitHub(rushter.com ↗)

208 points · by rushter · 6y ago · 108 comments

comment 7y ago · link · parent

Yes, it can, by calling the free function.

Which framework do you use for deep learning? It can allocate some object on its own.

Can you give me some stats when using a model and after it's no longer in use and can't be accessible? You can get it by calling the sys._debugmallocstats() function.

comment 7y ago · link · parent

Author of the article here.

I don't think system allocators are clever enough to process and allocate 100-500k of very small objects each minute when Python is performing something very intensive.

It's a pretty standard way to speedup allocation for dynamic languages. Game developers use similar techniques as well.

I have some stats on Python's allocator:

https://rushter.com/blog/python-object-allocation-statistics...

comment 8y ago · link · parent

My article describes the tricks which are used inside the Python interpreter. Every improvement in the interpreter saves an insane amount of computing power considering its popularity.

comment 8y ago · link · parent

Maybe I've missed something, but you can also get the same id (it's basically an address in the memory) because of the how memory allocation works. There is a special allocator in CPython, which preallocates big chunks of memory and constantly reusing it without allocation overhead. I have an article on this too.

comment 8y ago · link · parent

Thanks, it's a typo, I was referring to the mutable object (list).

17.

Writing a simple SOCKS server in Python(rushter.com ↗)

2 points · by rushter · 8y ago · discuss

12