Live data from Hacker News

Porting my JavaScript game engine to C for no reason

phoboslab.org

101–110 of 139 posts

Re: Porting my JavaScript game engine to C for no reason

#101
post #87

I owe a lot of the most informative programming work I’ve done to Impact. Impact was so ahead of its time. Proud to say I was one of the 3000 license owners. One of the best purchases I’ve ever made. The only game I’ve ever really properly finished was made in Impact. I loved that the source code was part of the license, and even modified the engine and the editor to suit my needs. I was so inspired that I worked on…

I might be missing something, but isn't the original Impact a JavaScript & browser based engine, thus it should run on Android in a simple Web view just fine?

Re: Porting my JavaScript game engine to C for no reason

#102
post #96

Earlier quoted context omitted.

Added some more links/news because I was on the mobile before. If you google "doxxing brian krebs pr0gramm" you will find lots of other news sources, same as for "coinhive trade volume", as it was the platform that made monero/XMR the biggest cryptojacking platform.

> If you google "doxxing brian krebs pr0gramm" you will find lots of other news sources I found no doxxing, I read that they organized a fundraiser, donated to cancer research, and even Brian Krebs wrote that “the response from pr0gramm members has been remarkably positive overall.”[1] [1]: https://krebsonsecurity.com/2018/03/coinhive-expose-prompts-...

> I found no doxxing

If you think that images of brian krebs' face with "Hurensohn" (German for "son of a whore") on it are not doxxing, you must be living in a parallel world.

Not gonna post direct links to this, because of HN guidelines. See the VICE article about it, which still contains some of those images. [1]

What I'm saying is that there was an attempt to doxx Brian Krebs, and the users of the imageboard [2] and Gamb, one of the admins, was turning that shitstorm into a positive thing. [3]

[1] NSFW (kinda) https://www.vice.com/de/article/j5apm4/coinhive-die-fieseste...

[2] NSFW (as you might guess) https://pr0gramm.com/new/hurensohn%20brian%20krebs

[3] https://pr0gramm.com/user/Gamb/uploads/2455908

Re: Porting my JavaScript game engine to C for no reason

#103
post #95
post #61

Earlier quoted context omitted.

It's not about that. They are talking about complications in general when porting a JavaScript game to Switch. See https://news.ycombinator.com/item?id=41155807

That is to be expected by anything that isn't C, C++ and Assembly, also why Unity has IL2CPP. Even Rust is going to be heroic levels until console vendors decide it is an acceptable language to be made available on their devkits.

I am not familiar with either Rust or the Switch, so maybe you can enlighten me: why would a Rust game be challenging on the Switch?

As long as you have a good C ffi (which Rust has), shouldn't it be quite easy?

Or is the Switch more similar to Android/iPhone where you cannot (could not?) run native code directly but have to use a platform specific language like Java or Objective C?

Re: Porting my JavaScript game engine to C for no reason

#104
post #95

Earlier quoted context omitted.

That is to be expected by anything that isn't C, C++ and Assembly, also why Unity has IL2CPP. Even Rust is going to be heroic levels until console vendors decide it is an acceptable language to be made available on their devkits.

I am not familiar with either Rust or the Switch, so maybe you can enlighten me: why would a Rust game be challenging on the Switch? As long as you have a good C ffi (which Rust has), shouldn't it be quite easy? Or is the Switch more similar to Android/iPhone where you cannot (could not?) run native code directly but have to use a platform specific language like Java or Objective C?

AFAIK some (all?) console vendors require you to use the compiler toolchain from their SDK to compile your code. So unless the console SDK includes a Rust toolchain the only way is to somehow translate the Rust code to C or C++ and compile that with the SDK compiler.

Maybe if the console SDK toolchain is Clang based it would also work to go via LLVM bitcode instead of C/C++ though.

Re: Porting my JavaScript game engine to C for no reason

#105
post #95

Earlier quoted context omitted.

That is to be expected by anything that isn't C, C++ and Assembly, also why Unity has IL2CPP. Even Rust is going to be heroic levels until console vendors decide it is an acceptable language to be made available on their devkits.

I am not familiar with either Rust or the Switch, so maybe you can enlighten me: why would a Rust game be challenging on the Switch? As long as you have a good C ffi (which Rust has), shouldn't it be quite easy? Or is the Switch more similar to Android/iPhone where you cannot (could not?) run native code directly but have to use a platform specific language like Java or Objective C?

As flohofwoe pointed out, you are limited by the console vendor SDK, the compiler toolchains, and everything required to target their OS, linker, API, ABI,...

Re: Porting my JavaScript game engine to C for no reason

#106

Honestly I would never ever execute any code from this guy. He is the inventor/founder behind the coinhive crypto mining network. [1] This guy made billions illegally [2], and maintained the biggest ransomware crypto coin network for years, by offering the tools and SDKs to fund dozens of cyber war involved agencies across the planet. [3] I have no idea how he got away with it, because his name keeps appearing in lot…

I don't know what your personal agenda is, but there's so much misinformation and hyperbole in your comment that I have to assume that this is personal for some reason!?

I've been meaning to write a proper post-morten about all that, now that the dust has settled. But in the meantime, just quickly:

- I did not make billions. You're off by quite a few orders of magnitude. After taxes it was well below $500k.

- Nothing I did was illegal; that's how I got away with it.

- Coinhive was not ransomware. It did not encode/hide/steal data. In fact, it did not collect any data. Coinhive was a JavaScript library that you could put on your website to mine Monero.

- I did not operate it for "years". I was responsible for Coinhive for a total of 6 month.

- I did not organize a doxing campaign. There was no doxing of Brian Krebs. I had nothing to do with the response on the image board. They were angry, because Brian Krebs doxed all the wrong people and their response was kindness: donating to cancer research. In German Krebs = cancer, hence the slogan “Krebs ist scheiße” - “cancer is shit”.

- Troy Hunt did not "snatch away" the coinhive domain. I offered it to him.

In conclusion: I was naive. I had the best intentions with Coinhive. I saw it as a privacy preserving alternative for ads.

People in the beta phase (on that image board) loved the idea to leave their browser window open for a few hours to gain access to premium features that you would have to buy otherwise. The miner was implemented on a separate page that clearly explained what's happening. The Coinhive API was expressly written with that purpose: attributing mined hashes to user IDs on your site. HN was very positive about it, too[1]

The whole thing fell apart when website owners put the miner on their page without telling users. And further, when the script kiddies installed it on websites that they did not own. I utterly failed to prevent embedding on hacked websites and educating legitimate website owners on “the right way” to use it.

[1] https://news.ycombinator.com/item?id=15246145

Re: Porting my JavaScript game engine to C for no reason

#107

Honestly I would never ever execute any code from this guy. He is the inventor/founder behind the coinhive crypto mining network. [1] This guy made billions illegally [2], and maintained the biggest ransomware crypto coin network for years, by offering the tools and SDKs to fund dozens of cyber war involved agencies across the planet. [3] I have no idea how he got away with it, because his name keeps appearing in lot…

Ok so he basically made a hidden javascript based miner and tools to distribute it.

Couldn't find anything to support the claim that he would have tried to dox Krebs. Also "maintaining biggest ransomware crypto coin network" feels like a dishonest phrasing trying to make it sound like he had something to do with ransomware. Monero was practically never used for ransomware payments back when coinhive was active, and even today Bitcoin is the most used method for ransom payments by far. Monero was simply the most profitable coin to mine with CPU.

That being said I agree that I wouldn't trust any software made by this guy. Even the hidden miner was obviously highly unethical and probably illegal.

Re: Porting my JavaScript game engine to C for no reason

#108

Honestly I would never ever execute any code from this guy. He is the inventor/founder behind the coinhive crypto mining network. [1] This guy made billions illegally [2], and maintained the biggest ransomware crypto coin network for years, by offering the tools and SDKs to fund dozens of cyber war involved agencies across the planet. [3] I have no idea how he got away with it, because his name keeps appearing in lot…

Ok so he basically made a hidden javascript based miner and tools to distribute it. Couldn't find anything to support the claim that he would have tried to dox Krebs. Also "maintaining biggest ransomware crypto coin network" feels like a dishonest phrasing trying to make it sound like he had something to do with ransomware. Monero was practically never used for ransomware payments back when coinhive was active, and e…

> Monero was practically never used for ransomware payments back when coinhive was active

This is a kind of wrong assumption. While I agree that ransomware payments themselves weren't done via monero or coinhive - malware on the other hand (read as: installed viruses/trojans/programs that the owner of the machine didn't consent to) was using it primarily to mine crypto coins.

See [3] from my previous post:

https://www.trendmicro.com/vinfo/us/security/news/cybercrime...

Re: Porting my JavaScript game engine to C for no reason

#109
post #87

I owe a lot of the most informative programming work I’ve done to Impact. Impact was so ahead of its time. Proud to say I was one of the 3000 license owners. One of the best purchases I’ve ever made. The only game I’ve ever really properly finished was made in Impact. I loved that the source code was part of the license, and even modified the engine and the editor to suit my needs. I was so inspired that I worked on…

I might be missing something, but isn't the original Impact a JavaScript & browser based engine, thus it should run on Android in a simple Web view just fine?

[deleted]

Re: Porting my JavaScript game engine to C for no reason

#110
post #87

I owe a lot of the most informative programming work I’ve done to Impact. Impact was so ahead of its time. Proud to say I was one of the 3000 license owners. One of the best purchases I’ve ever made. The only game I’ve ever really properly finished was made in Impact. I loved that the source code was part of the license, and even modified the engine and the editor to suit my needs. I was so inspired that I worked on…

I might be missing something, but isn't the original Impact a JavaScript & browser based engine, thus it should run on Android in a simple Web view just fine?

I guess web views on Android weren't very capable 10–15 years ago?
Post reply on HN