Hacker Newsnew | past | comments | ask | show | jobs | submit | epilys's commentslogin

(2021).

Keep in mind that TCG API and internals have no stable guarantees, so if you cross-reference with current QEMU code you are bound to find differences.


Seconding the other comments that recommend architecture manuals and guides.

For Aarch64, Arm's official guide is pretty good https://developer.arm.com/documentation/102142/latest/


Writing a JIT and a disassembler are completely separate topics than emulating a system, don't you agree? :D (The article only talks about structuring a system emulator.)

The disassembler is my next step, since it's the easiest to tackle. Swapping binja for a custom solution on the existing code would be relatively straightforward.

The JIT is a completely different beast, it's essentially the IR -> codegen steps of a compiler (meaning without parsing, syntax/lexical analysis, object generation). Seeing as I wanted to target both x86_64 and aarch64 hosts, using an existing solution would get me started faster before I eventually write my own.

My plan is to split the JIT backends and keep cranelift for x86_64 support, but have my own aarch64 JIT also.

You have to pick your battles and assign priorities, you cannot re-invent everything at once.

(Author here)


Yes! I also started with using vm_memory traits in the beginning but delayed it till I refactor my memory subsystem. When we get that in upstream QEMU it might be possible to share this implementation as well as future devices.


Yep, vm-memory needs pretty large changes to the crate itself but fortunately they're already in progress to add IOMMU support to the virtio and vhost crates. Probably there will be an API break but with old and new crates able to talk to each other so you don't need a flag day.

I am curious if you get to DMA before or after QEMU, and if before what your API will look like.


Very little free time unfortunately... Haven't spent many hours on this project.


Yes, it's possible and supported. QEMU can emulate an aarch64 system, and Google provides aarch64 Android builds for virtual machines specifically, called "Cuttlefish". Search for keywords "Android Cuttlefish QEMU" for instructions.


The only book I have that came with a barf bag. More books should do this.


I agree it depends on the writer and their cultural and educational background. Another example is Thucydides (which as also a native Greek speaker, find funny that anglophones pronounce as Thoo-see-dee-dees, but I digress). Thucydides was considered even in eras closer to him than to as as too abstract/verbose.

Meanwhile Plutarch enriches the laconic myth corpus by reporting that the Lacedaemonians were content with replying to a letter with only the words "About what you wrote: no." Writing style is part of the message.

https://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext...

Growing up bilingual, I personally always found Greek more verbose than English even in brevity. It's good for avoiding ambiguity and getting your intent across but sometimes bad for colloquial communication.


About what you wrote: that's true (Greek can be too verbose than English; it's got inflections).

And yeah, I always get funny looks when I say "Θουκυδίδης" :)


First published in the Metropolitan Museum Journal, vol. 56, 2021, pp.160-73.

This study focuses on artist-designed frames at the end of the 19th century, many of which are preserved in the Havemeyer collection at the Metropolitan Museum, with a particular emphasis on a material known at the time as pâte coulante, unique in its ability to render extraordinary profiles, some of which could not have been realized by any other method available at the time. Although frames in pâte coulante can be seen surrounding the works of many late 19th century and early 20th century paintings, this study refers to the few superb examples available for study in the Metropolitan Museum and in private collections, which in many cases surround works by Edgar Degas. For artists like Degas, this method became crucial for executing radical frame designs. To reinforce the argument that the process of template-cut pâte coulante granted artists and framemakers the freedom to turn any design into a reliable and serviceable moulding, replicas of period mouldings were recreated using the available historic information, and the results gleaned from this technical study are included here.



You are mixing up two concepts here, that of the domesticated species and the domesticated individual animal. The article talks about the former. The latter means taming an individual of a species. Dogs are by definition domesticated wolves and depend on humans for survival in general.


>Horses may have been domesticated twice

When I read the title, I was thinking I like a horse that's been domesticated the whole time :)

Former or latter, I don't want to actually participate in the full rodeo experience.


Plenty of dogs live wild mostly off the waste stream of humans, but they are not domesticated. Lets call them coyotes.


Let’s not. A feral dog is behaviorally very different than a coyote or a wolf.

A wolf pup raised by humans won’t be anything like a tame dog.

People whose animal experiences are limited to pets and zoos have many wrong ideas about how real wild animals are.


What about dingoes? The best guess is they were domesticated and then went feral some 5-8k years ago. These days, in places like Fraser island in Australia, you have big fences for campers to not get eaten by packs of those and you need to drive everywhere, they would not hesitate for a second if given a chance.


The aborigines (till they themself were domisticated) had dingos as dogs and my interactions with them on Fraser Island were in a way like with wild dogs who wanted to get BBQ.

So definitely dangerous, but not in a Wolf way.


Wouldn’t wolves generally be significantly less dangerous because they are generally more skittish and avoid being near humans?

One of the main issues with feral/wild dogs (or wolf hybrids) is that they are much less afraid of humans and therefore are more likely to attack livestock, pets or even actual people when given the opportunity. Under normal circumstances actual wolf attacks are (and probably were historically) and feral/hybrid dogs are just attributed to them.


Hmmm.

There used to be a huge population of stray dogs in Balkan cities after 1990. (Contraception and culling reduced the numbers quite a bit since then.)

Most of the time, they just went out of people's way, individually or in loose packs. Attacks on humans did happen, but weren't a daily occurrence.

That said, a stray dog in a big city will always find food, so they weren't hungry.


In general yes. I meant when a wolf attacks, he will not toy around and show himself before the attack, like the dingos did.


Behaviorally very different. In other words, in just a few generations the distinctions we make ("dogs" "coyotes") are irrelevant.


> People whose animal experiences are limited to pets and zoos have many wrong ideas about how real wild animals are.

How are they? Really shy and prefer cermonial fights?

I would guess a stray dog is a bigger threat than a wild wolf that have not got its instincts breed away to have the fur in a special way.

(Note, I don't mean I'd rather be in room with a wolf than a stray dog. But that the wolf would bail 1 mile away from me.)


It's really interesting topic to discuss


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: