+ Reply to Thread
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40

Thread: Expression 2 Suggestions

  1. #1
    Wire Amateur Ph3wl's Avatar
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    32

    Default Expression 2 Suggestions

    Few suggestions for E2 . I hope people don't have a nasty excuse for them lol.

    E2 Virtualization
    A way to virtualize expression 2's in E2 code. Opens up
    many doors for increased performance, jit compilers,
    wired computers, etc.

    Internal E2 Code Update
    Not sure of the string length limit. I've always wanted to
    have E2 chips updated remotely. Something like a
    "updateCode("code here")" function would be nice. E2
    Virtualization might completely replace the need for this.

    GVar Group Permissions
    In the past i've been challenged by people to keep my
    E2 network system safe. Maybe you should have a
    function that limits GVar group usage to certain E2's
    by using their Entity ID's.

    String Constants
    Constants that add things such as a line feed to a string.
    I've never been able to write a file with more than one
    line.

    Cheap Function and Include support
    Expand on functions and includes before the code
    enters the compiler. Add Prefix to variables for a
    local scope. Persists should be chucked out, but allow
    backwards compatibility. If persists are used then
    you can disallow function support maybe? You know
    whats best.

    Simple Fake Encryption
    A way to exchange a string for a globally uniquely
    identifyable string. Real encryption would be nice.

    Binary Reader/Writer
    Probably not the best suggestion but worth a
    try.

    Hash Functions
    Probably another shit suggestions. Would be a nice
    thing to have for integrity checks. May have a few uses.

    Regex Support
    More compact regular expressions.
    Last edited by Ph3wl; 04-11-2010 at 10:07 PM.
    Beta:
    CBNS (Centralized Bank Network System)
    RSA Public-Key Cryptography

    Alpha:
    GPU/EGP/E2 WYSIWYG & IDE Editor
    NS2 (Network System 2) - Network equipment and Standards for Wiremod. Highly improved from NS1 used in CBNS.

    Upcoming:
    RingZero - An OS Kernel for Wiremod.

  2. #2
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Expression 2 Suggestions

    Some of those are useful. String constants already exist, use "\n" for a newline, or it may be "/n" can't ever remember.



  3. #3
    Lifetime Supporter dracotonisamond's Avatar
    Join Date
    Jun 2009
    Location
    127.0.0.1
    Posts
    376

    Default Re: Expression 2 Suggestions

    some good ones in there. and some terrible ideas.

    E2, Virtualization. wat? why virtualize a virtual environment.

    Internal code update: erm. do you mean like a way to compile an e2 from file?
    that would be awesome. runFromFile() kinda like file functions, but the chip would basically become just a interface for the code. but the actual code would reside in another file. totally dupe-safe imo.

    GVar permissions based on prop protection, or steamfriends might be awesome.

    String constants: S="your constant"

    Cheap function and include: No. persist is to valuable. and im not even sure what your talking about here.

    Encryption: sounds interesting. not sure why though.

    Binary reader: why?

    Hash functions: this would be cool, but i doubt it would be feasible on a large scale.

    Regex support: never heard of it.

    Quote Originally Posted by JatGoodwin in wiremod IRC
    <JatGoodwin> ITSBTH, the point of rainmeter is to impress the lamers with your leet computer
    <JatGoodwin> software equivalent of putting lights in your computer

  4. #4
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: Expression 2 Suggestions

    Quote Originally Posted by Ph3wl View Post
    String Constants
    Constants that add things such as a line feed to a string.
    I've never been able to write a file with more than one
    line.
    Do you mean \n?

    And about "Virtualization"... E2s that code themselves have been suggested before and rejected :/
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  5. #5
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Expression 2 Suggestions

    It's \n.
    And lua has no support for binary read/write.

  6. #6
    Wirererer Timomo's Avatar
    Join Date
    Jul 2009
    Location
    toCity( owner():pos() )
    Posts
    107

    Default Re: Expression 2 Suggestions

    some code that reloads the Expression2 with another code .. like filefunctions would be awesome...

    couse if you are coding on a huge programm like an OS and you got now near 600 lines.... and sapwning them..uh...server laggs for 3 secounds if you spawn the chip...


    so you could split the codes in file parts and load them manually...

    i would love that
    i love to being "THAT GUY" xD

    SAVE YOUR BRAIN!!! STOP USING IT!

    --i know my english suckz..the reason is i got a 4 in english!! ^_^---

  7. #7
    Not a bot itsbth's Avatar
    Join Date
    Feb 2007
    Location
    Norway
    Posts
    1,173

    Default Re: Expression 2 Suggestions

    Quote Originally Posted by Drunkie View Post
    It's \n.
    And lua has no support for binary read/write.
    Actually, it has. Lua strings are binary-safe. I have no idea if GMods file functions support it, but I doubt it.

  8. #8
    Wire Noob Misiak95's Avatar
    Join Date
    Nov 2009
    Location
    Poland
    Posts
    9

    Default Re: Expression 2 Suggestions

    I think Image Screen (I would call it like that) might be useful sometimes, it just would display image from URL on a screen. Ofc that would increase CP and regular porn count on servers.

  9. #9
    ส็็็็็็็็็็็็็็็็ส็็ ็็็็็ Dav1d's Avatar
    Join Date
    May 2009
    Posts
    1,118

    Default Re: Expression 2 Suggestions

    Quote Originally Posted by Misiak95 View Post
    I think Image Screen (I would call it like that) might be useful sometimes, it just would display image from URL on a screen. Ofc that would increase CP and regular porn count on servers.
    What? I'm not even sure how this is related to what Ph3wl suggested, or why you would care if people show pornography on a screen in wiremod.
    That's what we have ULX, MooCow, NewAdmin etc for.

    </offtopic>

    E2 Virtualization
    A way to virtualize expression 2's in E2 code. Opens up
    many doors for increased performance, jit compilers,
    wired computers, etc.


    If you're looking for self-modifying code, use CPU.

    Internal E2 Code Update
    Not sure of the string length limit. I've always wanted to
    have E2 chips updated remotely. Something like a
    "updateCode("code here")" function would be nice. E2
    Virtualization might completely replace the need for this.


    This would actually be a good idea, triggering an E2 to load from a file, compile and then run would be great.

    GVar Group Permissions
    In the past i've been challenged by people to keep my
    E2 network system safe. Maybe you should have a
    function that limits GVar group usage to certain E2's
    by using their Entity ID's.


    Another good idea, maybe make it so you can have an array of players / steamIDs of players whos E2s can access your gVars.

    String Constants
    Constants that add things such as a line feed to a string.
    I've never been able to write a file with more than one
    line.


    Use "\n" .

    Cheap Function and Include support
    Expand on functions and includes before the code
    enters the compiler. Add Prefix to variables for a
    local scope. Persists should be chucked out, but allow
    backwards compatibility. If persists are used then
    you can disallow function support maybe? You know
    whats best.


    Syranide is working on compiling E2 into native lua so he can just use lua_runstring on it instead of running E2 on its own virtual machine thing etc.
    I actually asked him about function support a while back, he said it's a possibility, but the workload would be huge. I'm not sure if functions would be easier to implement after the whole native lua compiling thing or not. Don't expect anything soon though.

    Simple Fake Encryption
    A way to exchange a string for a globally uniquely
    identifyable string. Real encryption would be nice.


    Just make your own ROT13 script.

  10. #10
    Wire Amateur Ph3wl's Avatar
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    32

    Default Re: Expression 2 Suggestions

    Also, being able to load E2 code from a string so I can send updates to E2's owned by other people. Not sure if the file write works in the Expression 2 folder. CPU is too slow atm.

+ Reply to Thread
Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots