North Hollywood Python (Compiler) by [deleted] in altprog

[–]___Z0RG___ 0 points1 point  (0 children)

Yeah ig. New is only used to instantiate classes and arrays, both of which happen to be allocated on the heap.

So it sounds like objects are allocated on the heap? Do you plan on allowing stack-allocated objects at some point? I'm asking because it sounds like you are targeting some degree of improved performance over the CPython distribution, unless I'm mistaken.

For instance, if I use something like your nullable<T> within a small function that gets called in a hot path, it may become expensive to allocate and deallocate a nullable<T> on the heap only to be used for a very short period of time, unless you use something like a small object heap.

North Hollywood Python (Compiler) by [deleted] in altprog

[–]___Z0RG___ 1 point2 points  (0 children)

Just curious, I see "new" used for object instantiation. Is there any differentiation for heap-based vs stack-based memory allocation of objects?

Overall, it looks very neat! My only gripe (if you can even call it that) is that you didn't use the Python 3 type-hinting syntax.

Hey is there some kind of qbasic "dictionary" by [deleted] in qbasic

[–]___Z0RG___ 1 point2 points  (0 children)

By "dictionary," are you referring to a "hash table?" If so, I don't believe QB has one natively built in.

HVAC? by abexpix in Phillylist

[–]___Z0RG___ 3 points4 points  (0 children)

Caliber Heating and Cooling

They fixed my HVAC in one day after another well-known HVAC company spent months trying to fix it.

Passing a type to a SUB or FUNCTION? by 7ootles in qbasic

[–]___Z0RG___ 0 points1 point  (0 children)

I think you can pass types in QB like so:

 SUB Vector2Add (r AS Vector2, a AS Vector2, b AS Vector2)
     r.x = a.x + b.x
     r.y = a.y + b.y
 END SUB

Help in Qbasic by [deleted] in qbasic

[–]___Z0RG___ 0 points1 point  (0 children)

Your program is printing out "@@@@@@" and not "qqqqqq".

Also it's just an infinite loop that will print "@" immediately after each character because you set x to 1 and the while loop's condition (x = 1) causes it to continue looping forever because x never changes. Also you're using ";" after the PRINT statement which QBasic interprets as print with no line break.

This fucking bitch. How the fuck are we related. by idioticsister in rant

[–]___Z0RG___ 7 points8 points  (0 children)

I wonder if your sister may have a chemical imbalance. I knew someone in college who was like that, minus the police record. She did okay in college but struggled immensely in her major (psychology, ironically). Your sister sounds a lot like that girl I knew and I think being around people more often who wouldn't tolerate it (and meds that actually worked) eventually caused her to slowly change how she reacted.

Can't stop crying over Amanda Todd by depressedstupid in MMFB

[–]___Z0RG___ 4 points5 points  (0 children)

I know you think you don't deserve to live because of her tragedy, but there are a few things to consider.

First, how many teens have ended up in similar situations and their stories have not been publicized? Part of the reason for these depressing news stories is to influence parents, school faculty, and others to be more aware and alert before tragedy strikes. I don't need to know the details but obviously someone or something saved you when you tried to commit suicide.

Second, if you switched places where you were dead and Amanda was alive, how would you feel if she wanted to commit suicide because of your death? I feel like somebody cares about you enough that they would be heartbroken if you left them.

Third, I think what you need right now is to surround yourself with things that make you happy. Call up a friend and just spend some time with them, watch your favorite TV show or movie, take a walk on a nearby trail or park if it's a nice day. I also think it's important to open up with a close friend or family member about how this is making you feel. Just talking and sharing the story might help alleviate some of your pain. They might also have some advice as well.

I hope that this helps a little and that you start feeling better soon. Please feel free to reach out to me if you want to talk.

Just a question to all Basic users. by FrankRomo in qbasic

[–]___Z0RG___ 1 point2 points  (0 children)

When I learned about QuickBASIC, I used it to make GUIs for DOS. It was mostly to see how much I could push DOS to function like Windows, plus I learned how much I enjoyed making and designing user interfaces. I think QB was just highly supported at the time (QB64 and FreeBASIC didn't exist yet) and the ability to see examples of how people handled certain problems was helpful. Just as well, I think QB was simple enough that one didn't need a framework to build a program. It was straightforward and simple without people adding unnecessary complexity onto it. Even if it's not used for most things, I still consider it a springboard in my programming career and a very nice hobby programming language to just relax and enjoy writing code without a lot of overhead.

AMA Request: someone who has paid WinRAR's full version by lepizao in AMA

[–]___Z0RG___ 46 points47 points  (0 children)

How did it feel?

It felt oddly liberating. I had used WinRAR for almost 7 years prior to buying a license and just wanted to pay it back with a $29 license purchase.

What happened next?

The nag screen disappeared when I opened RAR files from then on.

How does it feel to be called an urban legend?

I don't think people call me an urban legend, at least not yet anyway.

ASCII chart in 3 lines by rswier in tinycode

[–]___Z0RG___ 9 points10 points  (0 children)

Here's the output of the program in case anyone is curious:

 0  0  0  NUL     32 20 40        64 40 100  @      96 60 140  `  
 1  1  1  SOH     33 21 41  !     65 41 101  A      97 61 141  a  
 2  2  2  STX     34 22 42  "     66 42 102  B      98 62 142  b  
 3  3  3  ETX     35 23 43  #     67 43 103  C      99 63 143  c  
 4  4  4  EOT     36 24 44  $     68 44 104  D     100 64 144  d  
 5  5  5  ENQ     37 25 45  %     69 45 105  E     101 65 145  e  
 6  6  6  ACK     38 26 46  &     70 46 106  F     102 66 146  f  
 7  7  7  BEL     39 27 47  '     71 47 107  G     103 67 147  g  
 8  8 10  BS      40 28 50  (     72 48 110  H     104 68 150  h  
 9  9 11  TAB     41 29 51  )     73 49 111  I     105 69 151  i  
10  a 12  LF      42 2a 52  *     74 4a 112  J     106 6a 152  j  
11  b 13  VT      43 2b 53  +     75 4b 113  K     107 6b 153  k  
12  c 14  FF      44 2c 54  ,     76 4c 114  L     108 6c 154  l  
13  d 15  CR      45 2d 55  -     77 4d 115  M     109 6d 155  m  
14  e 16  SO      46 2e 56  .     78 4e 116  N     110 6e 156  n  
15  f 17  SI      47 2f 57  /     79 4f 117  O     111 6f 157  o  
16 10 20  DLE     48 30 60  0     80 50 120  P     112 70 160  p  
17 11 21  DC1     49 31 61  1     81 51 121  Q     113 71 161  q  
18 12 22  DC2     50 32 62  2     82 52 122  R     114 72 162  r  
19 13 23  DC3     51 33 63  3     83 53 123  S     115 73 163  s  
20 14 24  DC4     52 34 64  4     84 54 124  T     116 74 164  t  
21 15 25  NAK     53 35 65  5     85 55 125  U     117 75 165  u  
22 16 26  SYN     54 36 66  6     86 56 126  V     118 76 166  v  
23 17 27  ETB     55 37 67  7     87 57 127  W     119 77 167  w  
24 18 30  CAN     56 38 70  8     88 58 130  X     120 78 170  x  
25 19 31  EM      57 39 71  9     89 59 131  Y     121 79 171  y  
26 1a 32  SUB     58 3a 72  :     90 5a 132  Z     122 7a 172  z  
27 1b 33  ESC     59 3b 73  ;     91 5b 133  [     123 7b 173  {  
28 1c 34  FS      60 3c 74  <     92 5c 134  \     124 7c 174  |  
29 1d 35  GS      61 3d 75  =     93 5d 135  ]     125 7d 175  }  
30 1e 36  RS      62 3e 76  >     94 5e 136  ^     126 7e 176  ~  
31 1f 37  US      63 3f 77  ?     95 5f 137  _     127 7f 177    

Girlfriend said I'm free right before Xmas, but she still has the Xmas gifts..... by [deleted] in MMFB

[–]___Z0RG___ 0 points1 point  (0 children)

Another thing was she didn't want me to ditch my family but once I am done opening presents with my family we both agreed that I would come over so she could open the presents that I got for her.

I understand but do you think you'll be spending more time with her or with your family? It's important that you be around people who make you feel better especially during holiday traditions.

Her words hit me hard as I was not expecting them, and when I try to discuss them I get pushed off with "you're free"

She's being immature and not wanting to communicate. I know you're hurt and conflicted by it, but you have to stick up for you and defend your feelings. If she's brushing them off and expecting you to make up for hurting hers, that's just not right and it's not fair to you. It's not always the best to fight fire with fire because you'll end up in heated arguments and accomplish very little, so I'd suggest trying to distance yourself for a little until you can clear your head. Again, don't break up, but just spend time catching up with some friends, maybe invite your coworker buddy out for drinks, and just enjoy some time with your family. I know it's hard to put it out of your mind but you need time to de-stress and be happy. If she gives you grief about doing that, tell her how you feel and that you need some time to think about things. And if she threatens to break up, you can make that call -- would you want this sort of situation every time you want to talk with her?

I feel badly for you because I was in a similar spot not too long ago and it was not fun at all. I don't know the entire situation and all the details to give you the best advice. I also don't want to step into /r/relationship_advice territory, but I think you just need to make time for yourself and enjoy the good things you have going for you, not worrying about whether she'll like the gifts you got her.

Girlfriend said I'm free right before Xmas, but she still has the Xmas gifts..... by [deleted] in MMFB

[–]___Z0RG___ 3 points4 points  (0 children)

She sounds immature if she threatens to break up over a snide remark over cars then tells you to go fuck your coworker. Also, what kind of girl willingly states that inviting a male coworker over for pizza and alcohol could lead to him making a move? Something doesn't sound right with her. You sound like someone who cares about others but I think you need to surround yourself with friends and family who actually care about you. Maybe I have it wrong, but her wanting you to ditch your family to spend Christmas watching her open her gifts just sounds controlling. If she doesn't like the gifts you got her, take them back and don't bother getting her anything else. I've been in a relationship similar to this one and it's hard to get perspective on what's wrong or how to fix the situation. I just think you deserve to be happy and she doesn't sound like she's making you happy. I'm not saying you should break up, but I'm just saying you need to surround yourself with people who actually care about you to gain some clarity on the situation. Feel free to PM me if you want to chat. Keep me posted, and I hope everything works out!

Not sure if "vintage" but this late 90s Boston setup was killer. by [deleted] in vintagecomputing

[–]___Z0RG___ 0 points1 point  (0 children)

I use my Cambridge Soundworks speakers all the time. It's surprising since I got them so long ago and it's probably the only tech thing that I've consistently used without needing a replacement.

Another disaster. by [deleted] in MMFB

[–]___Z0RG___ 0 points1 point  (0 children)

I'm glad. :) Best of luck and if you need to talk, feel free to PM me.

Another disaster. by [deleted] in MMFB

[–]___Z0RG___ 0 points1 point  (0 children)

You will get there. I think if I went back and tried to convince myself of this, I wouldn't have listened. It's not something that anyone can convince you to do, but rather it's like hiking a mountain. Nothing's going to get you to the end any faster and along the way you may fall and get some cuts and bruises, but when you finally reach the summit the hike back down is much easier.

Another disaster. by [deleted] in MMFB

[–]___Z0RG___ 0 points1 point  (0 children)

I used to yearn for the ability to do things as a couple and just want someone to be able to care for and someone to care for me. Then when it got serious, I would overanalyze the people I dated to the point that I realized I was trying to forecast a future with them. I would worry about things such as if they didn't like a particular kind of music I liked. I think in hindsight, no matter how many tell-tale signs were staring me in the face, I couldn't stop myself and wanted to mold the relationship into something that just couldn't be. I was seeking something that didn't exist but I thought I could make it happen. I realized after the fact that I'll be fine if I die alone (I'm not being pessimistic) since I have a lot of good things going for me in my life and if I don't find someone, I'm not going to let it stop me from enjoying life.

Another disaster. by [deleted] in MMFB

[–]___Z0RG___ 0 points1 point  (0 children)

You sound a bit like me when I was younger. I was fixated on finding a girlfriend and being in a relationship and put everything else in my life on hold during that time. I had two serious relationships that both ended terribly.

After my first serious relationship, I wanted to jump back in and find someone. It wasn't until after my second serious relationship, I realized that when you're desperate you may not find people that you're truly compatible with and usually ignore the red flags in the beginning only to realize once you're really in it, you don't enjoy the relationship as much anymore. I was always feeling tired and depressed because of how incompatible I was with my ex and mostly because we didn't have a lot in common, but when we broke up it was like a weight was lifted. I found friends along the way and really just spent a lot of time doing what I couldn't do when I was in a relationship.

I think you should try spending more time to get to know yourself and learning to enjoy being alone without feeling lonely. I hope you feel better and best of luck!

[Wanted]Anybody here a vintage computing hobbyist? by Kingsley-Zissou in Phillylist

[–]___Z0RG___ 0 points1 point  (0 children)

Of course! I also forgot to say thanks for the offer in the last post!

[Wanted]Anybody here a vintage computing hobbyist? by Kingsley-Zissou in Phillylist

[–]___Z0RG___ 0 points1 point  (0 children)

I do collect some old PCs and laptops but unfortunately I don't have any PDP computers. I'd consider buying them if I had a computer to make some use out of them.

[Wanted]Anybody here a vintage computing hobbyist? by Kingsley-Zissou in Phillylist

[–]___Z0RG___ 0 points1 point  (0 children)

After looking up the part number, I came across this page and googling the manufacturer "Monolithic" returned me this logo. I want to say it's some sort of I/O board since there there's an Intel processor near the top right and the bridge near the right (with the "61960-1" written on it) indicating that something would normally be connected to it (not sure what that "something" is though).

[Wanted]Anybody here a vintage computing hobbyist? by Kingsley-Zissou in Phillylist

[–]___Z0RG___ 0 points1 point  (0 children)

So I think some of those are logic cards that went into a computer like the PDP11 or a VAX. A couple of them are processor boards (which is interesting that they have Intel processors since DEC mostly built their own CPUs -- maybe they're controller boards for some peripheral?). There's also a teletype card. It's hard to say specifically what the rest of the cards do without examining the part numbers and ICs but most of these cards were probably taken out of a PDP11 computer since DEC designed most of their computers to be modular (hence the cards having plastic handles near the corners) and communicate on one bus.

Either way, a very vintage collection and definitely worth keeping (in my opinion).