|
Nelek wrote: note the word "discussions / debates". Yes, I agree. I have no issue with honey codewith's posts, other than that they bore me with the bombardment. But there are often a lot of replies so I imagine people are enjoying them.
Nelek wrote: that includes me too Of course it includes you! You answered with "42."
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
ZurdoDev wrote: Of course it includes you! You answered with "42." Yes, because I don't know how to answer better than that or a LMGTFY so I just used the answer to life, the universe and everything
I can give you, that I should have used the joke icon (just realized I didn't )
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: should have used the joke icon That's OK. I doubt anyone thought you were serious.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
ZurdoDev wrote: , nevermind the fact that honey codewitch discusses code all day long and no one complains.
Hers aren't "how do I" coding questions. Huge difference.
|
|
|
|
|
dandy72 wrote: "how do I" coding questions. Huge difference. I agree. My point was that people complain about newbies if the word code is in their post even when they aren't asking coding questions, but don't complain when regular members mention code.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
After reading the answers, makes one wonder why you asked the question here in the Lounge in the first place.
Might want to find a forum/website that is more bitcoin centric, if you want a better answer than yes, no, maybe so.
Just a thought...
It's much easier to enjoy the favor of both friend and foe, and not give a damn who's who. -- Lon Milo DuQuette
|
|
|
|
|
Can I be daring and answer truthfully?
My answers are - I don't know.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Member 14169933 wrote: so blockchain is peer to peer,
Technically, yes, but probably not the way you're thinking.
Member 14169933 wrote: so I wonder where does the data of all the bitcoins is stored?
The transactions are stored in the chain itself. There are "full nodes" on the network that each contain a full list of all transactions that syn with other such nodes (other non-full nodes exist but they're not involved in the core processes).
Member 14169933 wrote: who is peer in case of bitcoin?
The nodes are peers of each other. Where the P2P model breaks down is that you can be a client but not a peer. You can send\receive bitcoins without being a part of the node network, you simply need a client that can communicate with the network. Like how you can send email despite not running a local SMTP server.
Member 14169933 wrote: as the bitcoins grow isnt it becomes slower and slower to retrieve information?
As the transactions grow, yes I guess it will slow down, but given how long it can take for transactions to go through do you other factors, I don't think additional fractions of a second to go through more transaction history will make much of a difference.
|
|
|
|
|
You fool kitty! Drug countries together! (14)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Concatenations
Con = fool
Kitty = Cat
e = drug (very very good, so Ebeneezer says)
nations = countries
|
|
|
|
|
Is the correct answer - you are up tomorrow!
Nice and straightforward!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
So I parsed that 8000+ line source file i threw at Slang, and then I rebuilt the tree, and spit out VB all in about 5-10 seconds, which isn't too bad considering what a monster it is.
The VB code is nasty looking because it's declaring arrays with 100s of elements on a single line
But it should work. It's all valid codedom constructs.
There's still work to be done on it but I think i'm at or almost at the point where I can start using it in my own projects.
I'm looking forward to never having to touch the actual codedom tree again, but I can't believe how difficult it was to resolve the tree.
I had to load assemblies and types, and crawl using reflect AND crawl the codedom looking for fields, properties, methods, signatures and return types.
In order to even know which methods were what I had to do SIGNATURE MATCHING. Do you have any idea what that entails? Never underestimate the work your compiler does for you. Jeez that's hard.
All this so I can call GetTypeOfExpression() on a codedom expression. What if the expression is a method call? what if it's one of several overloaded methods each with a different return type? I had to get it right.
This is probably the most extensively I've ever used reflection in a single project.
But the worst part wasn't even reflection. It was *emulating* reflection over the codedom.
If any of you know what I'm talking about here, then that last line should give you pause.
Yes, I did that. It was necessary.
But I feel pretty cool right now.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
OMG! Are you the hidden herald of the VBpocalypse?!
|
|
|
|
|
If anything I just gave people less of a reason to write any code in VB. Just write it in Slang and translate it. That way you can stick to C#
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Phew.. I feared the worst for a moment!
|
|
|
|
|
Frankly, I'd be more interested in rendering to F# than VB but their CodeDOM is new and still dodgy so I haven't been able to build it.
I can try the nuget package again now that I moved away from .NET standard/code (there are codedom dependency issues I could bore you with)
But eventually i'll have it rendering in other languages too. It's just that VB and C# are what are shipped with .NET so it's what I have installed.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Well... you can always try C++/CLI?! It's supported by .NET Core 3.1!
|
|
|
|
|
It's probably possible to build a CodeDOM renderer for it but I'd be more inclined to build a CodeDOM renderer for IL.
Any C++ code rendered from the CodeDOM will be hopelessly OO and crappy for C++
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
|
Actually yes. Combined with slang it would let you write IL in a C# subset.
However, it wouldn't support generating all IL instructions, and you can do the same thing with a real C# compiler + IL Spy
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: and you can do the same thing with a real C# compiler + IL Spy
yeah, that's why I do, once every few years.. and then I forget all I learn doing it!
modified 11-Dec-19 0:55am.
|
|
|
|
|
honey the codewitch wrote: Just write it in Slang and translate it
Yo, sup honey? How 'bout you add dem numbers, yo! Translating...
int Add(int a, int b)
{
return a + b;
}
|
|
|
|
|
Where's the CodeDOM provider for LOLCODE[^]?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
honey the codewitch wrote: Just write it in Slang and translate it
Why bother translating it? Are there any constructs that exist in VB and are not available in C#?
(I thought that you were writing a code translator that makes CodeDom easier to use, not a C#-to-VB translator.)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Because my code generation tools don't dictate what language you have to generate the code in.
My code generators are not C# only.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|