News for hackers. Stuff that matters.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by eatonphil on Wednesday September 08, 2021 @07:33AM (#28455597)
This is awesome! I did a similar barebones emulator for x86 ELF binaries but I took a few shortcuts. I shimmed _start in the emulator and just jumped to main. Then I called exit back in the emulator when main returned.

I haven't yet gotten to implementing syscalls but the simple ones (write, exit, etc.) aren't terribly hard once you have the general infrastructure.

https://notes.eatonphil.com/emulating-amd64-starting-with-el...

Re:Rudroid: Writing the World's worst Android Emulator in Rust by ant4g0nist on Wednesday September 08, 2021 @08:20AM (#28456000)
hey, nice article :)
Re:Rudroid: Writing the World's worst Android Emulator in Rust by ant4g0nist on Wednesday September 08, 2021 @08:15AM (#28455950)
Hey, I'm the author of the post. If any of you have some issues loading the above link, you can also access the post here:

https://github.com/ant4g0nist/rudroid

Re:Rudroid: Writing the World's worst Android Emulator in Rust by melbourne_mat on Wednesday September 08, 2021 @08:09AM (#28455880)
I'd like to check this out but that web site kills my mobile browser every time. What are they doing?
Re:Rudroid: Writing the World's worst Android Emulator in Rust by ant4g0nist on Wednesday September 08, 2021 @08:13AM (#28455923)
Hey, I'm the author. Sorry for the trouble. Some people on reddit (https://www.reddit.com/r/netsec/comments/phufsk/rudroid_writ...) also commented the same . It's mostly due to the content size/image sizes.

You can access the content here: https://github.com/ant4g0nist/rudroid

Re:Rudroid: Writing the World's worst Android Emulator in Rust by eatonphil on Wednesday September 08, 2021 @08:15AM (#28455951)
Since you're taking presentation suggestions, I totally missed the collapsed code the first few times reading through this post.

I don't think you're the only blog to do this collapse-by-default code but every blog that does this I always miss the code.

So my suggestion would be to just not collapse. In my own blog I just set a max-height of 600px or something so long code snippets don't get unruly. People can scroll through or go to Github if that gets annoying.

But at least there's no chance of them missing the code in the first place.

Re:Rudroid: Writing the World's worst Android Emulator in Rust by ant4g0nist on Wednesday September 08, 2021 @08:18AM (#28455985)
sure, noted. Currently, it's a 50 lines limit for collapsing.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by garbagecoder on Sunday September 05, 2021 @02:00PM (#28426265)
What language something is written in is not a feature.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by nicoburns on Wednesday September 08, 2021 @07:05AM (#28455422)
This is more like a tutorial than a product though, with code examples in Rust. "How to write an android emulator from scratch in C" would appeal to a slightly different audience.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by omnicognate on Wednesday September 08, 2021 @07:32AM (#28455592)
I'm finding all the bellyaching about people saying X was written in rust a lot more annoying than what's being complained about.

But then this comment is 3rd-order bellyaching so feel free to downvote it.

Re:Rudroid: Writing the World's worst Android Emulator in Rust by Ygg2 on Wednesday September 08, 2021 @08:46AM (#28456208)
There are only two types of programming languages.

Languages people complain about, and languages that no one uses.

Re:Rudroid: Writing the World's worst Android Emulator in Rust by scns on Wednesday September 08, 2021 @10:11AM (#28457263)
I'm in no way shape or form smarter than Stroustrup that's for sure, but there might be space for a third category: languages seldomly used in dayjobs but many programmers would love to. Elixir, Haskell and Rust come to mind.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by makapuf on Wednesday September 08, 2021 @07:25AM (#28455539)
Depends, sure it's not the main quality of a software. But it can also hint at some potential features of the language (unless proven wrong) : Speed, safety, potential interest for longer term. You can have ultra lean software written in Java, ultra fast written in Python or simple to understand / develop to written in Rust or C, modern written in C++98, but it's generally the other way around. So, it's not the first thing to mention when speaking about a program, but interesting nonetheless, an element of context.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by jeltz on Wednesday September 08, 2021 @07:26AM (#28455549)
It should be obvious from even just the headline that this is not a real product but instead an article about how to implement an emulator, and for such articles the language is very relevant. Or do you also think that being the worst is another feature?
Re:Rudroid: Writing the World's worst Android Emulator in Rust by Closi on Wednesday September 08, 2021 @07:24AM (#28455533)
Features are something that matter for products, which this isn't.

This just seems like a project that someone wrote and decided to share with the world, and show how it works with full source code. In that instance, the fact it is written in rust is relevant because, as noted in the first paragraph, the reader is expected to have a working knowledge of Rust.

Re:Rudroid: Writing the World's worst Android Emulator in Rust by pjmlp on Wednesday September 08, 2021 @07:48AM (#28455705)
Depends, some time it does matter when security and performance are part of the non-functional requirements, validated on project acceptance delivery.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by BiteCode_dev on Wednesday September 08, 2021 @07:15AM (#28455471)
Marketting is not mostly about features.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by baktubi on Wednesday September 08, 2021 @07:22AM (#28455517)
It’s about connecting with the audience—using fact or fiction.
Re:Rudroid: Writing the World's worst Android Emulator in Rust by jhgb on Wednesday September 08, 2021 @08:23AM (#28456022)
What if that something is a library?
Re:Rudroid: Writing the World's worst Android Emulator in Rust by bbarnett on Wednesday September 08, 2021 @08:07AM (#28455864)
It is, if you have an advertising budget.