HackerLangs
TopNewTrendsCommentsPastAskShowJobs

samiv

no profile record

Submissions

Putin's Famous Munich Speech (2007) [video]

youtube.com
2 points·by samiv·6 месяцев назад·0 comments

Show HN: Browser SHMUP with WASM and WebGL

games123.net
1 points·by samiv·6 месяцев назад·0 comments

Show HN: Games123.net, games with homemade 2D engine

games123.net
1 points·by samiv·10 месяцев назад·0 comments

comments

samiv
·13 дней назад·discuss
Yep. I'm not an economist but my social democratic common sense would tell me to look at the bottom 10% income bracket and see how they're doing.

Incidentally these people are the best economic citizens because if you give them money they'll spend every cent of it because they need to buy food and energy, use health care and pay rent.

In other words if a rich person gets a million they (if they're sane) spend a fraction of it and put the rest in assets, stock market, property, etc. If you give 1000 poor people each 1000e every cent will go into local economy immediately.
samiv
·13 дней назад·discuss
There's no paradox here. Distribution of wealth matters. Rich got richer and everyone else didn't. Simple as that.
samiv
·18 дней назад·discuss
It doesn't play golf at the club with the C level.
samiv
·18 дней назад·discuss
This and plenty of other problems that plague the society now and over the past centuries could be solved by eliminating the distinction and gap between "rich" and "poor".
samiv
·26 дней назад·discuss
You can call JS in which you can manipulate the DOM.

Of course architecturally (also regarding your file access) it's better to use the wasm for logic as much as possible where the web (HTML/JS) provides the UI and IO, data flows into wasm for work and results flow back to the web.

This also has the benefit that you can keep your original C/C++ source code much more platform agnostic which helps reusability and testing.
samiv
·26 дней назад·discuss
Why would they need to be any more worried about those now than before?

The same holes exists and have existed for some time already. If he was not worried about them before why be worried about them now? And if you're worried about security holes why not be worried about the ones that exist now?

In general I find it funny that some people think that system is "secure" when it's on the latest version. At time t0 version N is considered "secure" then an update is made at t1 with version N1 and suddenly N is no longer secure. But it didn't change... it's the same version it was before.

Fact is a computer system is never going to be 100% secure.
samiv
·27 дней назад·discuss
Yeah and it took about 150 years until industrial revolution started to actually benefit the common people and the workers started to have their working conditions improved.

What it took was social democracy and unions and other social movements.

Saying that "it's happened before, it'll be alright" is a bit naive and short-sighted.
samiv
·28 дней назад·discuss
User entering wrong input is a logical condition and typically handling a logical condition (point being it's not an error from the software's operational point of view) using tools that allow easier logic flow (i.e. error codes) etc.

Out of memory error can happen in many environments because for example in C++ it's about the allocator. You might have a custom allocator with some limit that has no bearing whatsoever what the OS does.

  * Use asserts/panics for bugs.
  * Use "error codes/values/enums" for logical conditions (that are errors to the user, not errors to the software)
  * Use exceptions for unexpected errors in the execution of the software (normally more or less just resource allocation failures)
samiv
·28 дней назад·discuss
Why can't people just leave? What compels them to write these lengthy self grandiosing posts "zomg I'm leaving company X".
samiv
·28 дней назад·discuss
Gstreamer is a multimedia framework where the user creates media DAGs by placing video/audio/multimedia elements such as demuxers, decoders etc in a pipeline. The framework then takes care of running the media pipeline and handles the data buffering etc.

Within the framework there are multitudes of plugin packages that contain said elements and many of them are built on top of ffmpeg.
samiv
·29 дней назад·discuss
Either you were a head above the rest of the team and had the intellect to produce high quality value adding work, or then you were the "move fast break things" type of guy producing a lot of extra liability and work for others.
samiv
·30 дней назад·discuss
Sorry but how exactly does the sandboxing help? You download and run an app that you expect to be useful and that you need. The app needs permission to access your data. If you want to use the application what choice do you have except to grant it access?

Point being you wouldn't run untrusted code in the first place and for "trusted code" you end up accepting it's access requirements anyway.

So logically I'd think that the malware would just get piggy bagged into actual non-obvious utility apps and nothing is gained.

Second problem is that the security model hoops make for terrible APIs and user experiences. Just look at the current filesystem browser APIs. It must be mentally challenging to design APIs to Be usable and the nerf them for security purposes to make them "not too usable".

Finally one must note that at least right now the webasm ecosystem is rather immature and the de-facto only tool (emscripten) is an amateur hour hobby project. So it's going to take some decades still before the tooling is really getting there.
samiv
·30 дней назад·discuss
so let's call it what it is then? Corrupt individuals instead of "financial gravity"
samiv
·в прошлом месяце·discuss
Was it "financial gravity" that made the decision at VW to install emission cheat devices?

Was it "financial gravity" that made the decision at Google to cheat at the ad exchange?

Was it "financial gravity" that made the decision at DuPont to dump toxic sludge in the environment and make unsafe products?

Or perhaps was it just a group of immoral people chasing more personal gain and wealth?

Humans are too weak and too easily corrupted by wealth, power and shiny things and our political and economic systems place way too much power in the hands of fallible individuals. I expect it to be our downfall.
samiv
·в прошлом месяце·discuss
Yes I don't disagree that sometimes a specific container or a data structure is great for the problem. Problem is that most of the game code and related code (so tooling,editor, auxiliary engine code) does need a typical STL type functionality and then when the org has "omg no STL" blanket rule someone ends up implementing STL and that's almost always worse than the STL that ships with the tool chain. Even worse..it'll be missing features and data structures and then people have to write sub-optimal code to work around it's limitations.
samiv
·в прошлом месяце·discuss
You're right that C++ has a lot of features. But like mentioned elsewhere most projects define their own conventions and the subset of features that they use.

Also the nice thing about having a large set of features is that C,++ allows you to write very nice abstractions (or not) at both very low or at very high level. In other words you can be very low level with online ASM and bit operations and bit and direct memory manipulation or very high level almost like a script language. Whatever the problem domain needs C++ has got you covered.
samiv
·в прошлом месяце·discuss
If you don't use the STL you end up re-implementing it yourself. Usually poorly.
samiv
·2 месяца назад·discuss
[flagged]
samiv
·2 месяца назад·discuss
It's not about removing meaning. A normal thoughtful person can surely come up with things to do and occopy their lives with. In fact for most of people work just gets in the way of that.

What's it about is once you remove the paycheck that all proletariats need when things get "interesting".
samiv
·2 месяца назад·discuss
Because most of the poor people in the world (majority of the population of the planet actually) have no access to clean water, food or medical care or education and that is the same as it was hundreds of years ago.