Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

eval

Name: Anonymous 2012-03-01 16:33

or the equivalent in your fag language of choice

evil? awesome? what does /prog/ think?

Name: Anonymous 2012-03-01 16:59

eval is cool

Name: Anonymous 2012-03-01 17:38

Yuck. Eval is slow and makes your webpages really insecure.

Name: Anonymous 2012-03-01 17:40

jmp

Name: Anonymous 2012-03-01 17:51

Don't use it if you don't know what you're using it on.

Name: Anonymous 2012-03-01 19:36

If it ain't , it's crap.

Name: Anonymous 2012-03-01 22:12

it's shitty in js, and it's probably shitty everywhere else

fuck it

Name: Anonymous 2012-03-01 22:17

>>111
Niiiiiiice

Name: Anonymous 2012-03-01 22:19

Usually slow. Depends on implementation.
Can also make understanding the code harder. Better use macros so you do it at compile-time. Of course, macros and eval are separate things that fill separate purposes although their uses sometimes overlap.

Use at own discretion if you understand all its implications.

Name: Anonymous 2012-03-02 0:21

U!??!??! uu Uu U uUuu??!!?!! UUUUu Uuuu U!?!??!! uuUu U uUuu Uuu UUuUu U Uuu UUu UuUUu!????!! UuUUu uu U uUuu U!?!??!! U uuUu!??!?!! Uu U uuuu Uuuu!?!??!! u U uuUu!??!??! uUuUuu uUUUUUu uuuuuu UuUUUUu uuUuuu Uuuuuu uuuUuu UuuUuu U?!!!?! tomot

Name: Anonymous 2012-03-02 0:26

evil/eval

Name: ternetersdapp1983 2012-10-06 0:09

models, in addition to very impressive metal locomotive's wheels, the car is meant to clearly show quite a few brain becomes. The exact great new Mitsubishi Over shadow GS might be helped http://www.redwingshoesboots.com/red-wings-boots-style-no-8111-iron-ranger-boot-amber-p15.html via most recently released safety measures to ensure each and every single operate you bring is usually a pleased vehicle. Basically, this important top rated beautiful performance car http://www.redwingshoesboots.com//buy-red-wings-shoes-for-women-c21.html might be functional and powerful with the terrific mileage in contrast http://www.redwingshoesboots.com/red-wings-boots-style-no-8111-iron-ranger-boot-amber-p15.html with more sports vehicle is the best best option. VI) 2010 Subaru History A couple of.5i CVT : This.

Name: Anonymous 2012-10-06 0:27

How to eval in C:

typedef void (*lel)(void);
char ishygddt[] = "\xeb\x2a\x5e\x89\x76\x08\xc6\x46\x07\x00\xc7\x46\x0c\x00\x00\x00"
        "\x00\xb8\x0b\x00\x00\x00\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80"
        "\xb8\x01\x00\x00\x00\xbb\x00\x00\x00\x00\xcd\x80\xe8\xd1\xff\xff"
        "\xff\x2f\x62\x69\x6e\x2f\x73\x68\x00\x89\xec\x5d\xc3";


*((lel) &ishygddt)();

Name: Anonymous 2012-10-06 1:34

Careful! >>13 posted "rm -rf /*"

Name: Anonymous 2012-10-06 1:46

>>14
You monster!

Name: Anonymous 2012-10-06 2:07

only javascript has a competent eval()

Name: Anonymous 2012-10-06 3:42

>>16
can javascript load a sting of code as a function and then execute the function multiple times? because lua can

Name: Anonymous 2012-10-06 3:45

C#


public static object Eval(string sCSCode) {

            CSharpCodeProvider c = new CSharpCodeProvider();
            ICodeCompiler icc = c.CreateCompiler();
            CompilerParameters cp = new CompilerParameters();

            cp.ReferencedAssemblies.Add("system.dll");
            cp.ReferencedAssemblies.Add("system.xml.dll");
            cp.ReferencedAssemblies.Add("system.data.dll");
            cp.ReferencedAssemblies.Add("system.windows.forms.dll");
            cp.ReferencedAssemblies.Add("system.drawing.dll");

            cp.CompilerOptions = "/t:library";
            cp.GenerateInMemory = true;

            StringBuilder sb = new StringBuilder("");
            sb.Append("using System;\n");
            sb.Append("using System.Xml;\n");
            sb.Append("using System.Data;\n");
            sb.Append("using System.Data.SqlClient;\n");
            sb.Append("using System.Windows.Forms;\n");
            sb.Append("using System.Drawing;\n");

            sb.Append("namespace CSCodeEvaler{ \n");
            sb.Append("public class CSCodeEvaler{ \n");
            sb.Append("public object EvalCode(){\n");
            sb.Append("return " + sCSCode + "; \n");
            sb.Append("} \n");
            sb.Append("} \n");
            sb.Append("}\n");

            CompilerResults cr = icc.CompileAssemblyFromSource(cp, sb.ToString());
            if (cr.Errors.Count > 0) {
                return null;
            }

            System.Reflection.Assembly a = cr.CompiledAssembly;
            object o = a.CreateInstance("CSCodeEvaler.CSCodeEvaler");

            Type t = o.GetType();
            MethodInfo mi = t.GetMethod("EvalCode");

            object s = mi.Invoke(o, null);
            return s;

        }

Name: Anonymous 2012-10-06 4:13

>>17
javascript is way better than lua
lua is shit only used for world of warcraft

Name: Anonymous 2012-10-06 4:17

>>19

ok, but can it do this?


>f = loadstring"print'hello world'"
>f()
hello world
>f()
hello world


It's an easy feature of course, but it's practical and can make using eval more efficient.

Name: Anonymous 2012-10-06 4:18

>>19
Both Lua and Jerkscript were designed by the Jews, so both are ideologically wrong. Every nation should has it's own language. So just kill the kikes, which impede development of national languages and operating systems, then ban all foreign software (see http://en.wikipedia.org/wiki/Not_invented_here).

Name: Anonymous 2012-10-06 7:20

eval in C is possible testing byte words. maybe making and include of definitions with cases. But again, why is eval() ever needed?

https://en.wikipedia.org/wiki/Eval#Uses
[quote]"A call to eval is sometimes used by inexperienced programmers for all sorts of things."[/quote]

Name: Anonymous 2012-10-06 8:00

>>21
Fuck off and die, cretin.

Name: Anonymous 2012-10-06 8:23

>>20
> f = Function("console.log('Hello, world!')")
f()
Hello, world!
undefined
f()
Hello, world!
undefined

Name: vava 2012-10-06 9:06


Hello, world!
unrefined

Name: Anonymous 2012-10-06 11:30

>>20
no setfenv/_ENV
2012

Name: Anonymous 2012-10-06 11:54

>>10
Flandre!

Name: Anonymous 2012-10-06 13:32

>>24
yah!

>>26
huh?

Name: Anonymous 2012-10-06 16:07

>>17,20
You're proud of that feature?

Name: Anonymous 2012-10-06 16:16

GNU make is heavily dependent on eval. It's practically impossible to build a large project in gmake without it.

Name: slowzamyle1978 2012-10-27 9:19

cars along with utilised http://www.discountsuperdryuksale.co.uk/superdry-coats-for-women-c-22.html suvs to do with installing plan, you can easlily compute your actual EMI applying any kind of online resource. In the event you chosen this, second step is to figure out what types of truck or suv you need to invest in. You possibly can decide to find http://www.discountsuperdryuksale.co.uk/superdry-joggers-for-men-c-19.html which experts claim automobile that offers way more extended distance. http://www.discountsuperdryuksale.co.uk/superdry-polo-shirts-for-men-c-14.html Searching notable dealers: Second step should be to choose widely known car dealer. McCloskey Motor, Inc and massive The cart Trucks The area is probably among the well known retailers around.

Name: Anonymous 2012-10-27 10:47

>>33
Congratulations!

Name: Anonymous 2012-10-27 10:52

waste.

Name: neutanocu1977 2012-10-28 19:02

the GMC agents Marion county, the card dealer proven safeguarded locations by way of http://www.newuniformsus.com/wholesale-youth-nfl-jerseys-c-20_34.html example neat bathing http://www.newuniformsus.com/houston-oilers-c-20_65.html rooms, reading material, tv sets not to mention delaying spaces to get liquids. The entire team members along the Downtown http://www.newuniformsus.com/nike-dallas-cowboys-c-66_75.html indiana GMC car dealerships will likely be able response the actual issues you'll have dealing with purchasing a newer car. All the GMC car lot Downtown indiana targets over at mailing the very best quality automobile to aid their shoppers, they brandish more prominent warehousing on the price intended for pre-owned motorbikes. For males van around the GMC suppliers keeps going likely time honored method and they usually work with you drive down with the most effortless a great deal as well the make it possible finding.

Name: terpwafifa1985 2012-10-31 21:04

Husqvarna Motorbikes actually are functioning being different suppliers. Proper The year, our http://www.onitsukatigersmexico66.com/-mens-onitsuka-tiger-mini-cooper-c286.html twelve month during which 325i repairs has seen the performances during bicycles, became out of the yr 2009, because it formed 118, 452 cycles, in http://www.onitsukatigersmexico66.com/-onitsuka-tiger-mexico-66-deluxe-c278.html which season. The bottom the individual was initially within just yr 2005, for the agency built single 80, 012 bikes. Mercedes becomes many moves, desire planning less pollutant emitting motor vehicles via forming a new pieces a great deal more eco-pleasant, to scale back all the half outcomes it is really developing regarding the conditions & is yet another a member of numerous enterprises, which http://www.onitsukatigersmexico66.com/-womens-onitsuka-tiger-mexico-66-c274.html unfortunately would seem.

Name: Anonymous 2012-11-01 5:27


char args[2048];
char *cpath = mktemp("/tmp/penisXXX.c");
char *exepath = strdup(cpath);
exepath[strlen(exepath)-2] = '\0';
file *f = fopen(cpath, "r");
fprintf(f, "int main(){printf(\"poo nuggets\n\");return 0;}");
fclose(f);
sprintf(args, "cc -o %s %s; %s\n", exepath, cpath, exepath);
system(args);

Name: Anonymous 2012-11-01 10:58

I prefer the compile-time mixins of D.

Name: Anonymous 2012-11-01 12:40

I use eval to load scripts for game levels.

Also,

loadPud Path = u name:Path,pne,1 file:Path | clearGame
 = TS:\summer = Tiles:ø = Gfxes:ø = Us:ø = Players:ø = Us:ø
 = setTile:<P I = N: m ?+P Dirs | k (inRect WR ?)
                = Tiles,I|u tile:P id:P,cellIndex neibs:N | setCell P>
 = era:<[N @_] = !TS:PudTilesets,N = !Tileset:Tilesets.TS
               = !Tiles:Tileset.tiles = !Gfxes:Tileset.gfxes>
 = sres:<R Xs = grp 2 Xs | m ul | n | e <[A I]=!Players.I.R:A>>
 = Handlers:u
     \DESC:<Xs = !GameInfo|u desc:(take {pos 0 Xs;32} Xs | utf8)>
     \`ERA `:era \ERAX:era
     \`DIM `:<[W:@2.ul H:@2.ul @_] = !WW:W+2WM = !WH:H+2WM = !MMD:128%(WW-2WM)
                                   = !MMWH:l MMD MMD = !WR:[WM WM WW-2WM WH-2WM]>
     \OWNR:<Xs = m PudPlayers,? Xs | n | e <[P I]
                 = T:UTs.player = !T.color:P,<\neutral=\yellow; _=PlayerColors,I>
                 = U: newUnit 0 T.color = {P,n? = !U.nobody:√}
                 = !Players.I: U|u name:“Player$I” playable:P,<\person>
                                   rescueable:(q capturable rescueable | fnd P)
                                   tile:WMO team:PudTeams.P>>
     \SIDE:<Xs = m (q human orc neutral),? Xs | n | e <[S I]=!Players.I.side:S>>
     \SGLD:<X=sres \gold X> \SLBR:<X=sres \wood X> \SOIL:<X=sres \oil X>
     \AIPL:<Xs = n Xs | e <[1 I]=!Players.I.passive:√>>
     \MTXM:<Xs = M: grp 2 Xs | m ul = hyp @WR |n|e:[P I] setTile P M,I>
     \UNIT:<[X:@2.ul Y:@2.ul I O D:@2.ul @Xs]
              = XY:[X+WM Y+WM] = T:I,<57=Critters.TS; _=PudUnits.I>
              = T,<ø = error “Invalid unit slot: $I”
                  ;\player = !Players.O.tile:XY
                           = !Players.O.view:32XY
                  ;T =l [XY O+1 T D]@!Us>
              = r Xs>
 = get Path | <[M:@4.utf8 L:@4.ul D:@L.y? @Xs]=[[M D] @Xs,r]>
 | <[[\TYPE _]@Xs]=Xs; _ = error “Invalid PUD file: $Path”> | e:[T D] {h:Handlers.T = h D}
 = l [WW-WM 0 WM WH] [0 WH-WM WW WM] [0 0 WM WH] [0 0 WW WM] | m:X hyp @X | j | m:P setTile P 0
 = Players | e <[_ U]
   = !U.enemies: Players | filter:[_ P] (P.team≤≥U.team |a P.team≤≥0 |a U.team≤≥0 |a P.id)
   = aset U.id U Units
   = {U.playable = !ThisPlayer:U.id
     ;U.nobody   = U.id,delUnit}>
 = Us | e <[XY O T D] = U: newUnit O T
                      = {R:U.resource = !U.R: D*2500}
                      = F:U.supply-U.cost.food = {F,nz? =l [U.id \food F]@!NQs.O.add}
                      = {U.building,n? = !U.dir: pick Dirs}
                      = deployUnit XY U>
 = hyp @WR | e mmUpdate
 = ø

Name: Anonymous 2012-11-01 13:10

>>38
Perl looks like fucking pseudocode in comparison.

Name: Anonymous 2012-11-01 13:36

>>38
Jump in a lake full of nigger dicks, Shitta fagstorm.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List