Search:

Type: Posts; User: Niya

Page 1 of 13 1 2 3 4

Search: Search took 0.47 seconds.

  1. Thread: CCur Function

    by Niya
    Replies
    19
    Views
    568

    Re: CCur Function

    This is the biggest selling point for a JIT over static compilation in my opinion.



    It's unlikely in this case and I'll explain why. The best possible case is that some future CPU implements a...
  2. Thread: CCur Function

    by Niya
    Replies
    19
    Views
    568

    Re: CCur Function

    Unfortunately Microsoft is a quite lax in this area. Microsoft's .Net JIT still does things the old fashion way. It's not as advanced as that JIT showcased in that video. As a test, I wrote the exact...
  3. Thread: CCur Function

    by Niya
    Replies
    19
    Views
    568

    Re: CCur Function

    Oh yea lol. The Pentium Pro is a dinosaur and I don't think anybody in 2020 cares about optimizing for small code.
  4. Thread: CCur Function

    by Niya
    Replies
    19
    Views
    568

    Re: CCur Function

    Not so fast. You guys are looking at it the wrong way. You have to think in terms of the right tool for the job. The Currency type is extremely bloated, true. The Decimal type might be even more...
  5. Thread: CCur Function

    by Niya
    Replies
    19
    Views
    568

    Re: CCur Function

    Good God this is slow as hell.
  6. Thread: CCur Function

    by Niya
    Replies
    19
    Views
    568

    Re: CCur Function

    A Currency is basically a more primitive version of .Net's Decimal type. Like the Decimal type, it also uses some kind of fixed point math internally.

    EDIT:

    The Decimal type actually uses...
  7. Replies
    15
    Views
    652

    Re: Should i learn VB6?

    Wait, are you saying that modern versions of Visual Studio still ships VB6's p-code compiler?
  8. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    Well I guess that answer is acceptable since we've pretty much eliminated any other possibility.

    This was fun and very interesting. Hope to do it again some time.

    Cheers:)
  9. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    Whoa....I didn't see that one coming. The compiler really is very simple. Elroy was correct. I guess this settles the question of how marshalling works in VB6. It marshals at the callsite of every...
  10. Replies
    15
    Views
    652

    Re: Should i learn VB6?

    I just stumbled on another valid reason beside having to maintain old VB6 code that one could want to use VB6, obfuscation. I trying to find some information on the internals of VB6 as I was recently...
  11. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    No, we settled joaquim's question. We went on this tangent for our own sakes.
  12. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    You're complicating it. The rule is very simple. Any String passed by value is converted to a null terminated ANSI string and a pointer to the ANSI string's buffer is passed. The only things that...
  13. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    This is actually a very insightful suggestion. There is no reason there can't be standard stubs or thunks that can be statically linked. That can't be ruled out 100%.

    However, there is one huge...
  14. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    I imagine what happens is that the compiler looks at the entire source code and look at all the calls to CopyMemory and generates a thunk for each unique call signature. And when the calls are...
  15. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    Actually, I think he asking what would happen if you try to pass a String through a parameter that is declared as ByVal Any.




    The answer to that is that it will behave as if the parameter...
  16. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    I actually came across this several times during my research into it. I think most assemblers do this, not just the VB6 compiler.



    I have a another explanation I complete forgot to take into...
  17. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    Ok, after hours of experimenting with this, I've discovered that there are a lot of tiny nuances that only someone with extensive assembly language experience would know. I'm still very much an...
  18. Replies
    15
    Views
    652

    Re: Should i learn VB6?

    Learning C/C++ is ALWAYS a good bet. Despite all the different stuff we have out here now to create applications, the world still runs on C.

    I wouldn't use it to write Windows desktop applications...
  19. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    I sure hope you're right. But we have to be careful we don't under estimate the percentage.
  20. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    This is where all the confusion is. I'm not entirely sure that this PUSH instruction does zero/sign extension. According to this document, the op code 6A is a PUSH imm8 which means it directly pushes...
  21. Replies
    14
    Views
    404

    VS 2019 Re: Byte Array to String Problem

    rofl...
  22. Replies
    14
    Views
    404

    VS 2019 Re: Byte Array to String Problem

    Why does this read like something copy-pasted from Google Translate?
  23. Replies
    15
    Views
    652

    Re: Should i learn VB6?

    If your real focus is Windows Desktop applications, C# with .Net Core is the bleeding edge right now. You can still opt to use VB.Net with .Net Core but VB is in maintenance mode. MS is no longer...
  24. Replies
    15
    Views
    652

    Re: Should i learn VB6?

    I'm just gonna out and say it. Don't. VB6's main thing is developing desktop applications for Windows. If that is what you want to learn VB6 for, I suggest you learn VB.Net instead. And if you're...
  25. Replies
    14
    Views
    404

    VS 2019 Re: Byte Array to String Problem

    What is that data.mdb file. What created that file in the first place?
  26. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    Actually you may have just solved the mystery. That article says that all arguments are widened to 32 bits, it didn't say they are sign extended and I don't think there would be any sign extension....
  27. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    lol...



    They don't have to be the majority but that fact that Trump won an election off them showed me there are way more of these nutcases out there that I ever imagined. There are enough to...
  28. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    Hmmm that is interesting. If it was zero extended then it should have interpreted -1 as 65535, not -2321345. The binary representation of -1 in a 16 bit Integer is 1111111111111111. If that value is...
  29. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    I think it's more like most republicans don't go on Stormfront, 4Chan or the YouTube comment section making long rants about "race traitors" but they did allow a President who's views and behaviors...
  30. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    I will take a guess and say is it BECAUSE it is zero extended. In your case, you're dealing with negative numbers so if it was sign extended instead of just zero extended, your code could have worked...
  31. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    I too once believed they were fringe but then Trump won the election. That opened my eyes. Those "fringe" groups had enough numbers to turn an entire election.
  32. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    Well lets hope so. A civil war in the US is not good for Americans or the rest of us around the world.
  33. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    In less than a minute I was able to find this thread on Stormfront. Pay carefully attention to the rhetoric. These people are just waiting for someone to fire them up. They have been aching for a...
  34. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    I think a civil war is inevitable or at least some level of sustained domestic terrorism. However, it doesn't have to happen today. Trump tapped into something. It's something that has existed for a...
  35. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    That's not entirely accurate.

    Any is actually a kind of alias for the Long type. This is clear when you try using Any ByVal parameters to pass anything beside Longs. It won't compile:-
    '
    Option...
  36. Re: Trying to use a service and service list only once.

    I think your problem is coming into focus now. I had a very similar problem when I was designing a TCP/IP protocol for one of my programs. The protocol was a message protocol and I used classes to...
  37. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    Well I will concede the particulars of American politics to you as I'm not a very politically savvy person. What I'm seeing is a little more visceral and raw. I see a man who's followers will burn...
  38. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    To be clear it's not semantically the same. Using Variants invokes a conversion, using Any does not in many cases.

    To understand the difference, think about what happens when you use CStr on an...
  39. Replies
    37
    Views
    879

    Re: VB6 - can we use the 'Any' type?

    VB is a strongly typed language. Allowing the general use of Any would violate this. It is allowed in Declare statements because imported functions may not hold themselves to the same restrictions. C...
  40. Replies
    365
    Views
    7,406

    Re: The US fragile democracy Exposed

    I don't think there was one in Rwanda either. Didn't stop them from slaughtering each other.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width