Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Singularity [modified]

Singularity [modified]

Scheduled Pinned Locked Moved The Lounge
comquestion
30 Posts 15 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Rob Graham

    fat_boy wrote:

    Anyone know a GUID to UNICODE_STRING converter?

    In that C# language you so frequently disparage: Guid.ToString();//with overloads for the various formats.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #21

    Rob Graham wrote:

    In that C# language you so frequently disparage: Guid.ToString();//with overloads for the various formats.

    Already found it thanks: NTSTATUS RtlStringFromGUID( IN REFGUID Guid, OUT PUNICODE_STRING GuidString );

    Morality is indistinguishable from social proscription

    1 Reply Last reply
    0
    • N Nemanja Trifunovic

      Reminds me of the time I was learning Java (late 90's) - everything was being rewritten with Java - there was JavaOS, Java Office, Java Browser (it had some other name, though), Java DBMS, you name it... The last thing of that sort was Java Desktop - which wasn't even written in Java, but in plain old C: Linux + GNOME :)

      Programming Blog utf8-cpp

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #22

      Yeah, eventually people give up trying to reinvent the wheel and be clever and end up writing in C, or C++ at a push. (Actually, they are the same language anyway)

      Morality is indistinguishable from social proscription

      1 Reply Last reply
      0
      • N Nemanja Trifunovic

        Reminds me of the time I was learning Java (late 90's) - everything was being rewritten with Java - there was JavaOS, Java Office, Java Browser (it had some other name, though), Java DBMS, you name it... The last thing of that sort was Java Desktop - which wasn't even written in Java, but in plain old C: Linux + GNOME :)

        Programming Blog utf8-cpp

        O Offline
        O Offline
        originSH
        wrote on last edited by
        #23

        Thats not what this is about ;) It's not that the developers use C# and decided to make an OS, it's that they decided to make an OS using modern tools and methodologies and C# fitted the bill. And it's not even quite that simple, they modified the language and the runtime so it fit into their ideal rather than working within the limits of what existed. It's not even a serious attempt at making something commercial, it's an experiment to try and see what things work and how things could be done better. Edit: Although that is what SharpOS is about. Thats a project that doesn't interest me so much because your right, it's best to use the right tools for the right job.

        1 Reply Last reply
        0
        • N Nemanja Trifunovic

          Reminds me of the time I was learning Java (late 90's) - everything was being rewritten with Java - there was JavaOS, Java Office, Java Browser (it had some other name, though), Java DBMS, you name it... The last thing of that sort was Java Desktop - which wasn't even written in Java, but in plain old C: Linux + GNOME :)

          Programming Blog utf8-cpp

          T Offline
          T Offline
          TheGreatAndPowerfulOz
          wrote on last edited by
          #24

          Nemanja Trifunovic wrote:

          Java Browser

          HotJava

          Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

          1 Reply Last reply
          0
          • O originSH

            SharpOS[^]?

            M Offline
            M Offline
            Mustafa Ismail Mustafa
            wrote on last edited by
            #25

            Yes, that's the one!

            "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler "The secret to a long and healthy life is simple. Don't get ill and don't die." Pete O'Hanlon, courtesy of Rama "I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon

            1 Reply Last reply
            0
            • L Lost User

              "Singularity differs fundamentally from other operating systems in that it is written almost entirely in an extension of C#," Oh my god. What a disaster. Thats going to be really slow. Of course this isnt true. The C# interpreter will be written in C of course. The middle bit sounded painfully like COM. "Singularity’s third unique architectural feature, called “manifest-based programs,” " Vista does this too, so whats new? Sounds like a load of guff to me. If you want the source code to an impressive stable OS take a look at Debian 2.6 and for ease of use, the Ubuntu derivative.

              Morality is indistinguishable from social proscription

              E Offline
              E Offline
              Erik Funkenbusch
              wrote on last edited by
              #26

              fat_boy wrote:

              Of course this isnt true. The C# interpreter will be written in C of course.

              C# is not an interpreted language (in general, there do exist C# inerpreters, but nobody uses them).

              -- Where are we going? And why am I in this handbasket?

              L 1 Reply Last reply
              0
              • E Erik Funkenbusch

                fat_boy wrote:

                Of course this isnt true. The C# interpreter will be written in C of course.

                C# is not an interpreted language (in general, there do exist C# inerpreters, but nobody uses them).

                -- Where are we going? And why am I in this handbasket?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #27

                Erik Funkenbusch wrote:

                C# is not an interpreted language

                Isnt C# 'compiled' down to a p-code type level (or is it byte code a la VB). Because the C# engine will run J++ p-code so C# p-code is probably similar. So, since it isnt compiled doen to machine code, it is still interpreted no? Unless the .Net VM really can handle machine code.

                Morality is indistinguishable from social proscription

                E 1 Reply Last reply
                0
                • O originSH

                  Well something has happened that I never thought I'd see ... the source code form singularity has been released to the masses! http://www.codeplex.com/singularity[^] Here's a brief overview of the OS: http://research.microsoft.com/displayArticle.aspx?0rc=n&id=1922[^] I can't wait to get home and dive into it, I've been following this project for a few years now and I was really impressed by it, it's really caught my interest and kindled my creative juices :P

                  modified on Wednesday, March 5, 2008 6:49 AM

                  M Offline
                  M Offline
                  Mark_Wallace
                  wrote on last edited by
                  #28

                  Looks like they've stolen a few ideas from COBOL 99[^], particularly the read-ahead, precompile thing.

                  1 Reply Last reply
                  0
                  • L Lost User

                    Erik Funkenbusch wrote:

                    C# is not an interpreted language

                    Isnt C# 'compiled' down to a p-code type level (or is it byte code a la VB). Because the C# engine will run J++ p-code so C# p-code is probably similar. So, since it isnt compiled doen to machine code, it is still interpreted no? Unless the .Net VM really can handle machine code.

                    Morality is indistinguishable from social proscription

                    E Offline
                    E Offline
                    Erik Funkenbusch
                    wrote on last edited by
                    #29

                    Yes, C#, VB, J++, etc.. are compiled to byte-code, but when they are executed they are compiled to machine code on the fly. This is different from interpreation because interpretation doesn't execute machine code directly, and thus is very slow. All .NET apps execute as compiled machine code, they just aren't stored that way on disk.

                    -- Where are we going? And why am I in this handbasket?

                    L 1 Reply Last reply
                    0
                    • E Erik Funkenbusch

                      Yes, C#, VB, J++, etc.. are compiled to byte-code, but when they are executed they are compiled to machine code on the fly. This is different from interpreation because interpretation doesn't execute machine code directly, and thus is very slow. All .NET apps execute as compiled machine code, they just aren't stored that way on disk.

                      -- Where are we going? And why am I in this handbasket?

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #30

                      Ah yes, of course, the JIT compiler. I suppose that once the code has been OKed by the VM it stores the compiled version for later use. Still, when you look at the assembly code generated by languages like C++ you can understand why even that isnt supported in the WIndows Kernel. God knows what C# assembly would look like, but probably worse! For me, C is for machines, for working with the HW. Its quick to write, relatively high level, but as flexible and as powerful as you could want. Of course a programmer has to be quite good to use it safely, and hence the attraction of the managed languages, relatively unskilled programmers can turn out vast amounts of reasonable product.

                      Morality is indistinguishable from social proscription

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups