Better HN
topnewbestaskshowjobs
Log inSign up

mhagmajer

1 karma · joined May 25, 2020 (6y ago) · 5 submissions

Submissions

comment 6y ago · link · parent

Most of these requests I would assume would be for the most visited one - the front page

comment 6y ago · link · parent

This is often the case with top social media companies that they deal with a ton of content sponsorship requests.

3.

AskScript vs. TypeScript for writing software tests with Jest(github.com ↗)

2 points · by mhagmajer · 6y ago · discuss

comment 6y ago · link · parent

I suppose server admins have always been concerned about security when allowing clients to send scripts. We haven't had very many easy solutions such us AskVM for running these programs in a custom context (see https://news.ycombinator.com/item?id=23302670 for more). Here, more security allows better expressibility, which helps with the performance. Trust leads to better systems.

Marcin Hagmajer ~ AskQL Core Team, xFAANG

comment 6y ago · link · parent

eval( <javascript> ) is terrible at ensuring security. Query programs are executed against the same environment as your own programs!

ask { <askscript> } runs on AskVM which is a separate execution context that you define yourself with the exact set of resources, values and limits the each incoming program needs. AskVM is currently implemented in JavaScript. We plan to port it to Python, C and AskScript very soon.

Check out https://humanwhocodes.com/blog/2010/10/26/wanted-dynamic-exe... to learn more about this subject.

Sorry to have taken almost an hour to get back to you, we're talking with a few people at the moment. The code is live for 6 hours already.

Marcin Hagmajer ~ AskQL Core Team, xFAANG