Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Posted on 19-02-27, 01:21 in Revamping my Genesis/MD emulation workbench
Stirrer of Shit
Post: #41 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
You considered using Wine? It should run well:
https://appdb.winehq.org/objectManager.php?sClass=version&iId=23900

If not that, then I recall using a special "Mini" build of Windows XP that was like 100mb and ran from RAM. Even in QEMU the overhead would probably be tolerable.

All of this emulation software is pretty old anyway, and most of it is Windows-only. I think Windows 7 is going to become some kind of gold standard for software. In the future, we'll just run it on Wine (ported to Android). When Android starts to become archaic, we'll just run AINE on whatever OS comes after, with WINE under that, gradually piling on layers of emulators as we go. And it won't matter, since the overhead will be negligible compared to whatever horror Electron has developed into after 20 years. Remember, CPU time is always cheaper than developer time.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-27, 02:38 in Revamping my Genesis/MD emulation workbench
Stirrer of Shit
Post: #42 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
I don't see the issue. With Wine, you'd be good on the compatibility front for many years to come, and the overhead is negligible.

Is GTK2 dead yet? What would it even entail, no more updates?

It might be harder than it looks, but Gens doesn't look to be that tightly coupled to GUI code. Might be able to fix that without doing a full rewrite.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-27, 15:46 in Revamping my Genesis/MD emulation workbench
Stirrer of Shit
Post: #43 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
The current Debian stable release is Stretch, came out on 2017-06-17. They usually go two years and two months between each release. And GTK2 is still in unstable, which is two releases out. That means it's at the very least (read: if they dropped support for it tomorrow) going to survive until late 2023/early 2024, when current unstable becomes oldstable.

And that's assuming nobody writes a GTK2 -> GTK3 shim/compatibility layer in the next five years. It seems overly pessimist to me to avoid using a piece of software because of perceived issues in 5 years that may or may not cause any actual trouble.

Running things in Wine is a feasible solution. It's not an emulator as much as an API shim. There's no performance hit, as long as the compatibility is fine there aren't any issues. With MAME, you're doing actual CPU emulation with the added issues that brings.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Stirrer of Shit
Post: #44 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by byuu
So obviously, it officially closed a few months back, but I was keeping up an archive of it for existing members to login and see. Sorry for the short notice on closing it. Kawa has graciously set up a mirror of it here, so the posts aren't lost at least.

I'm now saving the money and only running a single server instance, which I don't want to put PHP, MySQL, or phpBB onto. So for now, the board is closed.

Why not 301 redirect it to the archive here, instead of giving 503 service unavailable?

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-27, 16:32 in Mozilla, *sigh* (revision 1)
Stirrer of Shit
Post: #45 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
And you can't run userscripts on it either, because Mozilla is vehemently opposed to users having any kind of freedom at all.

What's the point of this extension nonsense? It should be trivial to patch Firefox to take extensions in dll/so format that interact with the internal API. That would solve the whole issue of 'sandboxing' and other crap, enabling you to run precisely whatever native code you wish at full performance (e.g. no more praying webextensions gives you the proper API)

You'd have to put some hooks in but that's pretty much all. Can't be that hard. Why hasn't anyone done it before?

EDIT: Apparently they had the feature in before, but they took it out due to "stability" or "security" or whatever. Christ, what unimaginable stupidity. But it's okay, because they replaced it with something else that they then deprecated.
Give them an inch...

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-27, 20:52 in Man, Google Translate is scary (revision 1)
Stirrer of Shit
Post: #46 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
I saw a tweet by a Hispanic-American politician in Spanish. Since my Spanish isn't that great, I search for the phrase, but only find Spanish-language publications. I copy one of the links into Google Translate, hoping it would give me a comprehensible translation.

Posted by https://www.cubanet.org/noticias/marco-rubio-advierte-diaz-canel-te-vemos-pronto/

MIAMI, United States.- Marco Rubio, the US senator from the state of Florida, has sent a message to the governor Miguel Díaz-Canel on his Twitter account, in which he says, "See you soon."

The tweet was in response to a comment that Díaz-Canel published this Saturday in support of the Venezuelan government, which is going through a serious political crisis and is increasingly isolated at the international level.

"Venezuela is not alone. Hands out of Venezuela. Enough of false pretexts to cover sinister plans. Humanitarian aid needs impoverished peoples for so many military bases and so many imperial aggressions. Enough cynicism. We are Cuba, "wrote Díaz-Canel.

Regarding the possibility of the imminent fall of the Maduro regime, the pro-government newspaper Granma recently published a "Declaration of the Revolutionary Government" with the objective of "stopping the imperialist military adventure against Venezuela," because apparently it could be possible for them to know that there is no way to save the heir of Hugo Chávez.

Maduro, unknown by more than 60 governments, yesterday burned humanitarian aid trucks that tried to enter the country through different border points from Colombia and Brazil, in addition to suppressing the protesters, while his opponent, Juan Guaidó, interim president of Venezuela, wins every day national and international support.


I don't think this is that different to the writing you would see in a real, American, newspaper. It's not great, and there are some grammatical errors, but I don't think I'd blink twice if I'd see it published. Possibly think something along the lines of "man, what fucking idiots do they hire to write this garbage", but not "this was translated from a foreign language by a computer".

Truly amazing. Obviously, English <-> Spanish is comparatively easy to translate. But the last time I used Google Translate, it produced a text that was riddled with grammatical errors and nigh-unreadable. This is on the level of what an uneducated native speaker would produce.

Some phrasings feel stilted or odd ("aid needs impoverished peoples for so many military bases and so many imperial aggressions," "because apparently it could be possible for them to know that there is no way to save the heir of Hugo Chávez," "unknown by more than 60 governments"). But these also feel like the kind of mistakes someone with a poor grasp of the language would make. I mean, the context knowledge needed to swap out "unknown by" for "unbeknownst to" would be incredible. And likewise, the other poor phrasings sound just like the type of errors immigrants make while learning the language ("Enough of false pretexts," "yesterday burned aid trucks," "his opponent wins every day national and international support").

Truly incredible. It's also somewhat strange that despite their advanced translation technology, they can't fix basic issues with putting in random spaces after quotes.

(note: I am not trying to discuss politics or the situation in Venezuela. Please do not discuss politics in this thread, but rather in the designated politics thread. This thread is about machine translation.)

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-27, 23:43 in Man, Google Translate is scary
Stirrer of Shit
Post: #47 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by KoiMaxx
Google is not the only one getting frighteningly close to the singularity.

I'm getting ready to welcome our AI overlord (Lords? Is AI plural?) :P

Man, that's impressive.
I'm always suspicious about the public demonstrations. IBM in particular has a poor track record, see Deep Blue. More recently, Google's AI assistant, where they refused to answer questions about if they edited it.

Posted by 25:20

The state budget is a big one and there is room in it to subsidize preschools and invest in other fields. Therefore, the idea that there are more important things to spend on is irrelevant because the different subsidies are not mutually exclusive.

(and then she starts evading the question, talking about why subsidies would be good and repeating her argument)

Now THAT is impressive. They managed to get her to not only debate, but to do it like a true politician with a par for the course understanding of economics.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-28, 22:45 in bsnes v107 released
Stirrer of Shit
Post: #48 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by BearOso
Posted by MT

Pure Nearest Neighbour leads to distortion due to pixels of different size at fractional scaling ratios.

Sounds like you need the sharp-bilinear filter. Get the shader pack at https://github.com/hizzlekizzle/quark-shaders and extract all the .shader files into your user's AppData\Local\bsnes\shaders directory, which you need to create. Load up bsnes and select sharp-bilinear from the Settings->Shader menu, and voil� ! It's pixelated, but no aliasing artifacts.

If I understand the source code correctly, it still has some artifacts since some lines will be sharper than others. (e.g. scale to nearest integer multiple, then the last mile with bilinear)

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-28, 23:03 in Mozilla, *sigh*
Stirrer of Shit
Post: #49 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by Screwtape
> It should be trivial to patch Firefox to take extensions in dll/so format that interact with the internal API.

Anti-virus tools do this kind of thing all the time, and it's something like the #1 cause of Firefox crashes and security holes.

They should make them a better API then. Why can't they put them in a separate process like everything else?

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-28, 23:49 in The Horstmann brace style
Stirrer of Shit
Post: #50 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
So there's a somewhat obscure brace style, called the Horstmann.

while (x == y)
{ something();
somethingelse();
//...
if (x < 0)
{ printf("Negative");
negative(x);
}
else
{ printf("Non-negative");
nonnegative(x);
}
}
finalthing();


I really like it. It saves space, making things more readable, and it also lines up the braces. I can't see any downsides, except for losing the "documentation space" you have with the Allman style, where each brace gets its own line like this:

int some_function(int n)
{ //documentation goes here
do_something(n);
if (n > 12)
{
printf("invalid month");
}
return n-1;
}

I've been using it for a fair amount of time (with Allman for functions), and the only downside I can see is that not much software supports it.
So why isn't it more popular? When I show people it, the reactions are either "that's absolutely disgusting, never show me it again," or "that's amazing, why haven't I heard of this before?". But nobody seems to be able to explain why they hate it, other than that it's unfamiliar.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-02-28, 23:54 in Mozilla, *sigh*
Stirrer of Shit
Post: #51 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by wareya
AV products shouldn't be hooking into browsers at such a low level in the first place. If you can't do it through a normal extension the user installs manually then you shouldn't do it at all.

AV products shouldn't be, at all. Maybe they could exist in the form of something like VirusTotal, but nothing else. I can't remember last time I used one and I've never had any trouble with viruses. In addition, they're completely useless for thwarting any kind of qualified attacks, only protecting against the exact same type of malware that ordinary common sense would protect you from.

But for other extensions, it might be useful. For instance, ad blockers could do things with lower resource use if it could hook in at whatever level it wanted and run native code. Likewise, you could fix parts of the browser (like about:config) you couldn't previously touch.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 01:55 in Mozilla, *sigh*
Stirrer of Shit
Post: #52 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
No, not sandboxed in a separate process. It should still have full access to the memory of the Firefox process, but if it crashes it shouldn't bring FF down with it, but rather just stop interacting with the browser.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 02:08 in Mozilla, *sigh*
Stirrer of Shit
Post: #53 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Yes (assuming it has write access), but a poorly written extension wouldn't do it by accident. I mean, a deliberately malicious extension could crash Firefox now too. Heck, even an incompetently written website does the trick.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 14:10 in Revamping my Genesis/MD emulation workbench
Stirrer of Shit
Post: #54 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by tomman
Now that I have a new 32X emulator (PicoDrive), I feel the need to update this "thing" I did well over a decade ago:

http://mi.tsdx.net.ve/32Xbench/32XCRAShTEST_en.htm

You might be able to automate it. On most games, if you randomly mash buttons on the controller you'd eventually pass the menu and enter a level. If you make a completely random input movie and feed it to the emulators, then take something like the md5 hash of each frame, it should be enough to compare them to each other. Of course, you'd still need some human intervention to check which frame is correct, but it might simplify the process if you have a few dozen games to test.

Also, retroDrive r5 x Gnu Sierra Demo (PD) has some text in Spanish, maybe that should be rectified.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 14:14 in Mozilla, *sigh*
Stirrer of Shit
Post: #55 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
>Poorly written programs crash themselves by accident all the time.
If they're running in a separate process, they shouldn't bring the browser with them. Sure, they could overwrite its memory, but that's not something to happen by accident.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 14:16 in The Horstmann brace style
Stirrer of Shit
Post: #56 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by tomman
I've never liked opening braces just before sentences. And I'm on the opinion that the closing brace should go alone on its own line.

I'll stick to the good ol' "explain what you're about to do", that is, the opening brace on the same line as the structure declaration:

How do you find out which block is which if the braces don't line up? With multiple levels of nesting, that gets ugly fast.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 16:39 in The Horstmann brace style
Stirrer of Shit
Post: #57 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by jimbo1qaz
You lose the ability to use a text editor or IDE to comment out the first line (or swap the first line in an indented block with other lines).

No, only the latter.

for (;;)
{ a();
b();
c();
}

becomes

for (;;)
{ //a();
b();
c();
}


There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 20:09 in Revamping my Genesis/MD emulation workbench (revision 1)
Stirrer of Shit
Post: #58 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by tomman

- Only multiplatform emulators will be tested since all testing would be conducted under Linux, using only native executables. Sorry, there is no excuse for being tied to a single platform in this post-PC era!



Are you all right?

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-01, 21:43 in Revamping my Genesis/MD emulation workbench
Stirrer of Shit
Post: #59 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by tomman

As much as I hate to admit, yes, I said that.

What I really meant to say: "we're in 2019, Windows is no longer the king of the hill, and people game on other devices that are not a 'x86-based personal computer running Windows'". This somehow includes cellphones, a platform I find completely unsuitable for gaming of any kind, yet people insist into using those, and that's a real compelling reason to avoid locking yourself as a emudev to Windows-only targets.

At least Kega and Gens had legit excuses ("x86 assembly"), but even those feature native non-Windows ports, which are Good Enough™ for my use cases.

Do you really want for people to put themselves through the pain of writing software for Android, let alone iOS?

As much as I hate to say it, assuming you're writing for PC only, writing Windows-only software is perfectly sufficient. Windows-targeting code runs with native performance on all major platforms, while code targeting OS X or Linux only runs on their respective operating systems.

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Posted on 19-03-02, 00:00 in The Horstmann brace style
Stirrer of Shit
Post: #60 of 717
Since: 01-26-19

Last post: 1763 days
Last view: 1761 days
Posted by tomman

It's called "use a competent editor/IDE that can highlight matching braces".

This sadly excludes most (if not all?) CLI-based editors and Notepad, but that's fine as I don't use those for coding.

Vim supports it, and presumably emacs too. Which CLI-based editors don't, you mean?
The fact that you can't do it visually has always been a huge issue for me, that you actually have to move the cursor over there to check.
Posted by Screwtape

Indenting, obviously:
for (x = 1; x < 10; x++) {
if (x % 2 == 0) {
printf("Even!");
} else {
printf("Odd!");
}
}

If you tell me you can look up from "}" to find the aligned "{", but can't look up from "}" to find any other aligned text, I'm going to be very doubtful.

How do you mean? It's true that in trivial examples like this, it's possible. But if you have more difficult examples, then matching them becomes considerably harder:

if (x < foo(y, z))
haha = bar[4] + 5;
else {
while (z) {
haha += foo(z, z);
z--;
}
return ++x + bar();
}


if (data != NULL && res > 0) {
if (!JS_DefineProperty(cx, o, "data", STRING_TO_JSVAL(JS_NewStringCopyN(cx, data, res)), NULL, NULL, JSPROP_ENUMERATE)) {
QUEUE_EXCEPTION("Internal error!");
goto err;
}
PQfreemem(data);
}
else if (!JS_DefineProperty(cx, o, "data", OBJECT_TO_JSVAL(NULL), NULL, NULL, JSPROP_ENUMERATE)) {
QUEUE_EXCEPTION("Internal error!");
goto err;
}

Especially if the blocks are twice as long.

THAT SAID, much like "which font is the most readable", the biggest factor of all is what you're already used to. If you've spent twenty years finding blocks by looking for isolated "{" and "}" characters while ignoring all the text between them, finding blocks by any other pattern is going to be more effort and feel "wrong".

Fair enough. In practice, I'd reckon the smallest legible font (contingent on eyesight and dpi) is usually the most readable one. I suppose you eventually could get used to the 3x5 fonts though, even if your eyesight isn't good enough, by recognizing the patterns.

One of the happiest discoveries I've made while learning Rust is the rustfmt command for automatically formatting code. While automatic formatting can never be quite as nice as manual formatting, it's great to be able to type in any old thing, hit "save" and watch it magically become neat and tidy. Less dramatically but more significantly, I don't waste ten minutes trying to reformat something "just right" because it'll snap right back afterwards. Of course, it helps that the Standard Rust Style is pretty close to my preferred style anyway, but if more people used auto-formatting there'd be fewer threads like this one. ;)

Would there? We'd still be discussing to what to set our autoformatters to, no?
Case in point:
Posted by wareya
The standard rust style is wrong because it doesn't use allman braces. Fight me.

I use vim, which does have functionality like this (although I rarely use it, since I can't figure out how to configure it), yet I still make threads like this ;)

There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
    Main » sureanem » List of posts
    Kawa's Github