« first day (3335 days earlier)      last day (1613 days later) » 

12:46 AM
Any more info/thoughts on : "Microsoft: We're creating a new Rust-based programming language for secure coding"

https://www.zdnet.com/article/microsoft-were-creating-a-new-rust-based-programming-language-for-secure-coding/
 
1:01 AM
@CaptainGiraffe Seems like a pretty typical nearly pure-fluff article. "We're doing cool stuff, and we'll have a big reveal soon, but for now all we're going to tell you is that it's cool."
As to their technology itself...nearly impossible to say anything meaningful based on the article. He talks a little about something on the order of assigning lifetime to groups of objects vs. individual objects, but doesn't go into meaningful detail, and it almost sounds like part of what we're hearing may be based as much on the author's misunderstanding of the research as it is on the research itself.
 
 
3 hours later…
4:30 AM
Remember this pet question of mine - How to control servos on Arduino through Raspberry Pi? It's closed on raspberry pi site. A group mate of mine suggested an excellent idea - to post it on Arduino site instead.
If it's posted on another site, than it's not a duplicate.
 
4:55 AM
basic c++ question. Why I can't do this?
void change(std::istringstream &a) {
std::istringstream iss("some string");
a = iss;
}
 
@Hmmm iss goes out of scope at the end of that functiin and will be destroyed/invalidated/etc: 'a' will refer to that object
 
5:10 AM
I assumed that it works because this is possible
void change(std::string &a) {
std::string s = "some value";
a = s;
}
Do you have a neat way of passing iss back to the caller without returning it?
 
You might want to read upon = operator on string and istringstream. They do not do the same thing.
 
@Hmmm Streams aren't assignable. In the specific case of a stringstream, there's probably no reason they couldn't be, but streams in general aren't assignable, and that applies to stringstreams, just like it does to other streams.
 
What is the idiomatic way of doing something like this in c++? I want to return value but also pass the stream back.
bool change(std::istringstream &out) {
std::istringstream iss("stream");
out = iss;

// some other stuff
return false;
}
I will probably just use the return value to get the stream :)
 
@Hmmm Is it possible to just operate directly on the stream that was passed in, instead of creating a temporary stream, operating on it, then (wanting to) get that value into the stream that was passed in?
 
I'm creating the stream inside the function. I was thinking of out as a placeholder.
 
5:33 AM
@Hmmm The reference has to be initialized to point to an actual stream anyway, so you might as well just operate on it directly.
 
oh that's cool. this worked is that what you mean?
bool change(std::istringstream &out) {
out.str("test");
return false;
}
 
5:52 AM
@Mgetz How is COM better than just launching another process? (Actually not too familiar with COM...)
 
6:04 AM
I have this terrible idea, so I deal a lot with hardware devices that number themselves from 1 to #. That is if you tell the device to switch to a channel, the channel are indexed from 1. What if we had some bullshit std::to_index_one
Ugg, its so terrible
like std::chrono
And then in some cases it causes hilarious underflow errors
 
6:28 AM
Okay guys I have this kind of general question about GUIs
Fuck its too hard to ask
 
6:43 AM
 
7:02 AM
 
7:59 AM
My mobile phone's internet does not work inside home.
 
8:26 AM
I refuse to turn on the wifi on my mobile phone - I am paying a lot for the data on my mobile and I am not even using those data. I need a new service provider.
 
 
4 hours later…
12:30 PM
@Mikhail mostly you don't have to deal with marshaling it's handled by COM, ditto lifetime. But that's about it
 
nwp
1:15 PM
Why can you not use template template arguments on non-type template arguments?
I'm using templates by the way.
template <template<typename Return_type, typename Class, typename ...Args> Return_type(Class::*function)(Args...)> looks reasonable to me, but the compiler disagrees and cppreference says there is no such thing.
I guess auto + decomposition it is -.-
 
 
5 hours later…
6:03 PM
@Mysticial I assume you've been on vacation but any results from your Zen2 system yet?
 
6:18 PM
@Mgetz Just got back last night. Haven't had time to play with it yet.
 
6:33 PM
Might be a while before I can properly play with it anyway.
 
ah ok
 
1. I'm still waiting for my memory. I have temporary memory to boot the machine and to do in-CPU-only tests. But I can't do anything memory-intensive on it yet.
2. My codebase is not in a state right now where I can just switch over to do AMD benchmarking. I guess technically I can pull it one of my stable branches to do it and then merge it into trunk later.
3. I haven't done anything lately on the project.
 
@Mysticial 1) wouldn't be surprised if the non-HEDT memory controller struggles with that much ram. 2) crap happens and you were focused on intel and AVX512
 
6:58 PM
@Mgetz For 1, it's not that it's unstable, but it's not the high-clocking memory that I intend to run on it. Also not enough of it. I only have 32GB right now. But I want to use the full 128GB for the superoptimizer.
2) Yeah pretty much. I'm working on a new thing. While I'm targeting all the arches, all the research work is typically done AVX512 first. And it's this non-production research code that currently prevents my trunk branch from compiling on anything else.
 
@Mysticial so what I hear you telling me is you bought into intel's BS ;p
 
:)
I typically abstract out all the SIMD so it doesn't matter. But when I took my code home over the weekend, I quickly realized that I missed a few functions. So it wouldn't compile for AVX2 on my laptop.
So I was like fuck it. I'll just play more Pokemon.
Also. There's two exploits in Sword/Shield that I need to utilize as much as possible before they patch it. At the very least, I'm keeping it offline for now.
 
7:17 PM
@Mysticial proper exploits or just odd mechanics?
 
@Mgetz proper exploits
When combined, it reduces optimizes the time needed to get certain pokemon from weeks/months, down to minutes.
In particular, this wedding cake. So far it seems totally useless in battle, but it's becoming a fan favorite at the very least.
 
 
1 hour later…
8:38 PM
@Mysticial if you're curious about threadripper boards youtube.com/watch?v=iQSbbXxhjPM
 
9:30 PM
@Mysticial Suddenly a wild Pokemon appears. He uses wedding cake. It's supereffective. You've already gained more weight than you expected for the whole holiday season! O wait. The wedding cake is a Pokemon?
 
@Mgetz Can't see video at work. Are they any good?
@JerryCoffin Yeah pretty much. Pokemon is in full troll mode to the collectors.
 
@Mysticial well.. if MSI's board (the board in the video) is anything to go by... 64core chips won't be landing on TRX40. While the VRM could theoretically handle it apparently the manufactures aren't using high current connectors for the 8pins and the 24pin connectors
 
They make a Pokemon out of food.
Give it a gazillion different flavors:
And make it's most powerful form a wedding cake.
I think people are still trying to figure out if the wedding cake form has flavors as well.
The one I caught over the weekend (took ~30 min. with the exploits) seems pretty standard.
@Mgetz Yeah, the >32 core chips will be TRX80. No OCing IIRC.
 
@Mysticial not just that, multi-gpu on TRX 40 will be hit or miss based on the mobo manufacturer, but MSI for example doesn't allow for enough current to go to the slots
 
> optimizes the time needed to get certain pokemon from weeks/months, down to minutes.
How can it take weeks to months? Season based pokemon?
Like some pokemon can only be caught during winter
 
9:51 PM
I'm voting to close this question as off-topic because it is not a computer programming question. It's a CPU design question. Knowing which part of the hardware handles the MOV pseudo-instruction has no direct impact on how your write a program for the CPU. (It may have secondary impact if you're doing microbenchmarking, but that doesn't seem to be the question here.) — Raymond Chen 1 min ago
 
@LoïcFaure-Lacroix These are called "Gigantamax" (G-max) pokemon. Running into one randomly is extremely rare. Maybe 1 in ~5000 per "round of grinding" which will take 30 min. - 1 hour if you're completely prepared.
But that's not it. If you are specifically targeting a G-Max. You can pay a "fairly high" price to fight a pokemon with a 1-in-600 chance of it being the G-Max. If you don't get it, you must defeat the pokemon and try again. Each attempt may take 3 - 5 min. if you're prepared. In some cases, you will run into pokemon that you can't defeat or have extreme difficulty defeating. If you can't defeat it, you must wait a day for it to reset.
I say "fairly high" because it's expensive if you're playing normally. But a side-effect of one of the two exploits is that you get a ton of money.
The 1 in 600 chance is the product of 3 random events which must coincide (1-in-10, 1-in-3, and 1-in-20).
i.e. 10 x 3 x 20
The 1st exploit eliminates the cost and the need to defeat the pokemon you don't want.
The 2nd exploit splits the (10 x 3 x 20) into 10 x 60. Thus you only need to retry on average ~10 + ~60 times.
As opposed to 600 times.
The wedding cake above happens to be in the same pool as one extremely common, but extremely difficult to defeat pokemon.
So to summarize:
- Without exploits: ~600 tries x 5 min. each + cost to farm money (ignoring hard to defeat pokemon)
- With exploits: ~80 tries x 30 sec. each.
 
10:27 PM
But why would you want a Gigantamax vs making one normal evolve into it or it's a special pokemon?
 
@LoïcFaure-Lacroix You can't evolve into G-max. The only way to get it is to catch it directly.
 
sounds like trying to get a shiny pokemon
 
It basically is.
At least the intent.
IOW, it's specific to a pokemon. And can't be passed down through breeding nor can you evolve into it. (with a single in-game exception where you are given a Charmander which will evolve into a G-max Charizard)
The problem with the 1st exploit is that it can theoretically corrupt your save game as it exploits a race condition between a save-game event and when you know what you get after "rolling the dice". Supposedly you can corrupt your save file doing this. But it doesn't look like anybody has. I suspect Pokemon continues to implement the double-save system where they have two files and alternately rewrite the other on each save to prevent loss.
Either way I'm probably going to stop doing it on my primary game and use it only on an alt.
 
@Mysticial corrupt first save, then corrupt second save
get a second handheld and transfer back pokemon from the main game to the other
 
@LoïcFaure-Lacroix Yeah. I was trying to come up with different possible scenarios and doing some extra game-save sequences to "guard against" such a case. So when I reload, I should be able to detect with the last save event failed after it had started.
 
10:36 PM
anyway, it would be crazy if that could corrupt the save game, or the save game contains the whole state of the game
 
@LoïcFaure-Lacroix That's what I'm going do. Get a second Switch. I've done that with all my old games.
I found a "safer" way to exploit the race-condition that lets me determine the result of the "dice-roll" half a second earlier than most people are in their YT demos.
 
Evil Nintendo corporate guy probably smile a lot whenever he ears anyone is buying not one handheld but two to transfer pokemon between games
 
Yo, quick question
 
In the end, the most important exploit that is still needed for this gen is a pokemon duplication glitch.
Those enable you to make backups.
 
So if I have a class in c++ and I need to call a function of that class from inside the class, how do I do it
ie, I have a constructor for a class with parameters
then I want to call object.validate()
 
10:40 PM
ah yeah like transfering a pokemon to someone and cutting the connexion in between where each of them received it but didn't send anything
 
I tried this.validate(); but that doesn't seem right
in python it would be self.validate()
idk how to do this in c++ tho
 
@LoïcFaure-Lacroix Yeah. Now you have to defeat their consensus algorithm.
 
if it,s done right, either the transaction pass or doesn't...
at this point if there is a glitch it's probably on purpose
 
Duplication glitches are less useful for distribution since each pokemon has a fingerprint and the online servers can see if there's multiple copies of the same one. But you can still do offline backups.
 
can you make money out of pokemon?
 
10:43 PM
@LoïcFaure-Lacroix There are people trying to sell 6-IV Shiny G-maxes on ebay.
They have to be hacked in some way. Unless they found an unannounced exploit.
 
Buy a camera and some actuators and let machine learning farm your G-maxes
 
@LoïcFaure-Lacroix The probability of a G-max (caught normally or with exploits) being 6-IV and shiny is 1 in 1024 x 8192 IIRC. Not sure how much the shiny-increase item will help.
 
well those are really lucky people
or have a really effective exploit
 
@LoïcFaure-Lacroix I actually don't know if the 6-IV is real or hyper-trained.
But given that they also have the optimal nature as well (an additional 1-in-25), it's obviously too good to be true.
If they were getting them the normal way, for each "perfect" one they are trying to sell, there should be a gazillion "less than perfect" ones which could be worth something.
 
I guess so, then we'll see pokemon trade as valuable as bitcoin
 
10:54 PM
@LoïcFaure-Lacroix For gens 3 and 4, I had Action Replays. For gen 3, it was to get the event items needed to fight/catch Mew and such. For gen 4, it was for pokemon duplication/backups.
Gen3 had a safe duplication glitch. Gen4 does not and you need to resort to trade race conditions which are too slow and risky.
I never got too involved with gens 5-7.
 
11:09 PM
Unless new switch comes patched against the exploit found that would allow linux to be installed, I guess some switch can allow memory dump to be achieved or even potentially modify the memory directly
 
When I get the 2nd switch, I intend to keep one of them offline so that it doesn't pick up updates.
Thus I'll have an online one for normal/internet play. And the other for backups and exploits.
Hopefully the game won't force you to update in order to trade/transfer.
 
aha yeah, forcing both switch to be on the same firmware version.. does the switch has region specific firmwares?
 
no idea
 
I remember how I bought the DSi and how DSi was more or less the only DS with region locked games then I upgraded my firmware and then automatically regretted it
If there are region based firmwares, each firmware would have to keep a list of firmware they can communicate with or a japanese switch couldn't trade with an american one.
That would be insanely coupled in the firmware/games.
Use wireshark to listen to network and fake a switch from your computer to send "virtual" pokemons
 

« first day (3335 days earlier)      last day (1613 days later) »