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

Pages: 1-

manual memory management

Name: Anonymous 2012-11-30 1:33

So why do you still defend it?

It's a waste of time.

Is it because you think it makes you "smart"?

Name: Anonymous 2012-11-30 1:39

i just like the feel of controlling things

Name: Anonymous 2012-11-30 1:53

℡ № ª
 ⇒⇔ 。 ←↑→↓ψ † ‡ ※♪♭♯★ ☆▲▼△▽◆ ◇ ○ ◎ ● ■ □ 回 〓 √∞♂♀ 웃 유 Ω
 ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ ㎎ ㎏ ㎜ ㎝ ㎞ ㎡ ㏄ ≒ Æ æ η α β ε α₩£ ≡ » « ¶ † εïз ∵ ∴
 #’〈 〉《 》「」『 』【 】〔 〕ミ 彡 ッ シ!#@ $ %
 &()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz[\
 ]^_`{|}~¢£ㄻ ㄼ ㄽ ㄾ ㄿ ㅁ ㅂ ㅄ ㅅ ㅆ ㅇ ㅈ ㅊ ㅋ ㅌ ㅍ ㅎㄱ 을 ㄺ卍∃⊥ ∀ Ξ Σ Π 文 ≒≠ ≡≦
 ≧ⅠⅡⅢ Ⅳ Ⅴ Ⅵ Ⅶ Ⅷ Ⅸ Ⅹ ⅰ ⅱ ⅲ ⅳ ⅴ ⅵ ⅶ ⅷ ⅸ ⅹ¬ ̄ ±∂∩∀∇∠∧∨∩∪∫∬⊂⊃⊥⊿⌒─│┌┐└┘├┤┬┴┼─
 ━│┃┌┏ ┐┓└┗ ┘┛├┝┠┣ ┤┥┨┫┬ ┯ ┰ ┳ ┴ ┷ ┸ ┻ ┼ ┿ ╂ ╋

Name: Anonymous 2012-11-30 1:54

I have to do it (sepples) and I hate it.  Although I hardly ever delete because we use 10000 types of ``smart'' pointers.

Name: Anonymous 2012-11-30 3:04

Because I enjoy it.

Name: Anonymous 2012-11-30 3:20

control is power and power is freedom and freedom is safety and safety is godly

Name: Anonymous 2012-11-30 3:24

>>3
Love ▲ and ▼ - very clean. Wonder no use them for programming operators.

Name: Anonymous 2012-11-30 3:26

for (i=0; i<n; ▲i) ...

Name: Anonymous 2012-11-30 3:31

New Symta:
V,<♂=♀>,<[▲▼]=[△▽]>

Name: Anonymous 2012-11-30 3:36

Use ▲▼ for logical AND and OR, then △▽ would be bitwise.

■ □ - NOR and NAND

Name: Anonymous 2012-11-30 3:36

Allocating and freeing in a loop for no good reason is a terrible thing, that's why.

Name: Anonymous 2012-11-30 4:09

>>11
Symta:

get FileName |c:[T:@4.utf8 L:@4.ul D:@L.y @Xs] [[T D] @Xs,r]


C/C++:

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

typedef struct chunk {
  uint8_t Tag[5];
  uint32_t Len;
  uint8_t *Data;
  struct chunk *Next;
} chunk;

chunk *loadChunks(char *FileName) {
  int I, L;
  uint8_t *D, *P, *E;
  chunk *C=0, *T, *N;
  FILE *F = fopen(FileName, "r");
  fseek(F, 0, SEEK_END);
  L = ftell(F);
  D = P = (uint8_t *)malloc(L);
  E = P+L;
  fseek(F, 0, SEEK_SET);
  fread(D, 1, L, F);
  fclose(F);

  while (P < E) {
    T = (chunk *)malloc(sizeof(chunk));
    memcpy(T->Tag, P, 4);
    T->Tag[4] = 0;
    P += 4;
    T->Len = *(uint32_t *)P;
    P += 4;
    T->Data = (uint8_t *)malloc(T->Len);
    memcpy(T->Data, P, T->Len);
    P += T->Len;
    T->Next = C;
    C = T;
  }

  for (T = 0; C; C = N) {
    N = C->Next;
    C->Next = T;
    T = C;
  }

  free(D);
  return T;
}

Name: Anonymous 2012-11-30 4:17

Because it makes sense, it's easy, and it doesn't waste CPU cycles. Why use GC?

Name: Anonymous 2012-11-30 4:20

>>13
implying CPU cycles cost more than >>13's time
I agree with you, mental midget: your toilet scrubbing time cost nothing.

Name: Anonymous 2012-11-30 4:23

Real programmers only write deterministic programs with a determined amount of memory to use, besides there is no point in writing something that could stop working at any time when memory runs out.

Name: Anonymous 2012-11-30 4:26

what is symta after all

Name: Anonymous 2012-11-30 4:27

>>16
Think more succinct REFAL.

Name: Anonymous 2012-11-30 21:26

>>14
why do you imply that cpu cycles cost less than your time

Name: Anonymous 2012-11-30 21:26

Name: Anonymous 2012-11-30 21:55

>>19
your not from /g/
pretending your an old time poster here
ISHIGGY DOO

Name: Anonymous 2012-11-30 22:43

>>20
XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD LE E/G/IN POST /G/RO FUCKIN/G/ UPBOATS XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +1 +1 +1 LEL LELELELELELELELELELELELEL

>LE MEMEM FACE WHEN LE LEL
>XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>IDSIHSDIFHSDIH DOO XDDDDDDDDDDDDDDDDDDDDDDD
:):) see you at le reddit /g/ro :P xD

Name: Anonymous 2012-11-30 22:52





        >LLLEEEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLL
        >LE
        >EGWINGOINGOIN' GROSKI
        >LEL

Name: Anonymous 2012-12-01 0:19

>>15
FORTRAN77 has taken your butthole virginity!

It is super-effective!

Name: Anonymous 2012-12-01 21:53

>>15
You don't know what ``determined'' means.

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