Hacker News new | past | comments | ask | show | jobs | submit | wrycoder's favorites login

This is wonderful! I'm definitely going to be sharing this with my students (college sophomores studying CS).

If I were to make some suggestions, based on how I know they would receive this:

- I would make explicit reference to heap and stack. Students who are learning this material are learning about the heap/stack dichotomy, and I think it would really improve the exposition to make clear that not all memory is allocated this way in a program.

- I would remove this line: "At the end of this post, you should know everything you need to know to write your own allocator." I can confidently say that my student will not be able to write an allocator after reading this. It's nothing to do with your piece, it's just the intersection of people who don't understand hex and who could build an allocator after a short blog post is very very small. Students who read this post and at the end still feel like they can't build an allocator will end up discouraged, with a feeling that maybe they are missing something.

- Consider rethinking how you handle hex numbers throughout. You introduce them and say they are distinguished by a preceding "0x", but then you immediately omit the 0x to save space in the figure. In my experience, students have a lot of trouble with understanding that hex and dec have the same underlying representation. They will not be able to distinguish between hex and dec bases implicitly, so from a pedagogical standpoint, it's better to be consistent throughout and include the prefix.

- Finally at the end I would make mention that there are other strategies for memory management to encourage further exploration. Other languages do it differently, and for students it's important to know which other avenues are out there. Otherwise they might think heap-based malloc/free are the only way to do things, the same way they often thing imperative programming is the only way to program.

Anyway, thank you for creating this, and I'm sure it will really help my students. In a just world, "seeing" the memory like this would ideally be first-class tooling for languages like C.


This reminds me of the ancient "no news" joke:

https://www.netfunny.com/rhf/jokes/92q4/badnews.html


Reposting this from the 2014 HN discussion of "Ergonomics of the Symbolics Lisp Machine":

https://news.ycombinator.com/item?id=7878679

http://lispm.de/symbolics-lisp-machine-ergonomics

https://news.ycombinator.com/item?id=7879364

eudox on June 11, 2014

Related: A huge collections of images showing Symbolics UI and the software written for it: http://lispm.de/symbolics-ui-examples/symbolics-ui-examples....

agumonkey on June 11, 2014

Nice, but I wouldn't confuse static images with the underlying semantic graph of live objects that's not visible in pictures.

DonHopkins on June 14, 2014

Precisely! When Lisp Machine programmer look at a screen dump, they see a lot more going on behind the scenes than meets the eye.

I'll attempt to explain the deep implications of what the article said about "Everything on the screen is an object, mouse-sensitive and reusable":

There's a legendary story about Gyro hacking away on a Lisp Machine, when he accidentally trashed the function cell of an important primitive like AREF (or something like that -- I can't remember the details -- do you, Scott? Or does Devon just make this stuff up? ;), and that totally crashed the operating system.

It dumped him into a "cold load stream" where he could poke around at the memory image, so he clamored around the display list, a graph of live objects (currently in suspended animation) behind the windows on the screen, and found an instance where the original value of the function pointer had been printed out in hex (which of course was a numeric object that let you click up a menu to change its presentation, etc).

He grabbed the value of the function pointer out of that numeric object, poked it back into the function cell where it belonged, pressed the "Please proceed, Governor" button, and was immediately back up and running where he left off before the crash, like nothing had ever happened!

Here's another example of someone pulling themselves back up by their bootstraps without actually cold rebooting, thanks to the real time help of the networked Lisp Machine user community:

ftp://ftp.ai.sri.com/pub/mailing-lists/slug/900531/msg00339.html

Also eudox posted this link:

Related: A huge collections of images showing Symbolics UI and the software written for it:

http://lispm.de/symbolics-ui-examples/symbolics-ui-examples....


Looks like this is it:

https://news.ycombinator.com/front?day=2006-10-09

Anything earlier gives HN didn’t exist yet.


The woman owned and founded startup I work for is completely unable to hire the diverse candidates we have interviewed because they are completely unaffordable at a startup.

Why is this?

Because executives at various massive tech companies are getting massive bonuses connected to how many diverse people they hire. They give lavish salaries and large chunks of equity to people who they otherwise would not. Somebody who is getting offers like this is naturally going to have all of their incentives misaligned for joining a startup.

My company's back end code is Java and Python and we interviewed an engineer who I was willing to teach both of these languages to. She happened to be a black woman and only new PHP using the laravel stack. Zero experience doing front end coding and not really a standout when it came to databases and barely new cloud.

She asked for a large equity stake, but also wanted a salary of $195,000. We are not at all in the Bay area and this salary is completely ridiculous for somebody who also wants a lot of equity and has very few skills that connect to our code base.

She was hired at Amazon for some rather boring role on an internal team that helps the data centers meet energy efficiency requirements by building applications that are essentially dashboards for internal decision makers.

We actually talk on regular basis now because I give her some advice for learning Python.

She was simply negotiating based on her market value and her own fiscal priorities and made a sound well-reasoned decision.

If my company hits it big one day which of course is typically not high probability, people like you will show up and say that we are systemically racist. Ironically the twisted incentives at these massive companies are creating this issue. As long as women are significantly less interested in jobs involving things just like men are significantly less interested in jobs involving people we're going to have to admit that trying to bring things to 50/50 proportions is going to create weird incentives that will further create side effects.


For twenty years I tried to build products and sell them to others, to no avail. "Marketing is the problem" - I always told myself about my failures.

I still have one product up from those days. FileSculptor is a file converter used by non developers to automate CSV to XLSX conversion. What was the last time I used it myself? Excluding testing before new releases or support issues, never.

I decided that my next product should be something I really care about. Something that scratches my on itch and that I would use on a daily basis. I should be the first one to find bugs on my product, not my users.

I always kept track of my expenses, but was less so with my budget. I used a spreadsheet and would update if once or twice a month. So I decided to create an app with the budget and expense tracking I wanted. I always had lots of ideas of how it should work, how it would forecast transactions automatically from a detailed budget and how it would deal with credit card purchases, hitting the budget on the month they'd appear of the credit card statement. It would support credit card purchases with installments, something always missing in the apps I tried.

I created Pleke to be the personal finance app I always wanted, and use it on a daily basis. For the last six months its been the only source of truth about my finances. At my day job I work on a product used by others. I'm grateful and want it to work well because it pays my bills. But with my app, its quite a different relationship. I'm always proud when I input data in it and it works as designed. When something breaks, I want to fix it ASAP. I have a text file with planned features for version 2, version 3, 4 and 5.

Pleke is the app I want to work on for the next ten years, even if others do not value it as much as I do. "Marketing is the problem" - I will tell myself, to their loss.

Be the first user of your product! A person who takes good care of their garden will work on it and admire it on a daily basis. So should we with our products.


The stack on this story so far (newest ones at the bottom—if I've missed any, can you let me know at hn@ycombinator.com? this is sort of an experiment and we may eventually write software to support building lists like this collaboratively):

https://news.ycombinator.com/item?id=25932598 ("Chamath Palihapitiya on Wallstreetbets [audio]" <-- you are here

https://news.ycombinator.com/item?id=25904779 ("How WallStreetBets Pushed GameStop Shares to the Moon") 2 days ago

https://news.ycombinator.com/item?id=25908084 ("The nihilism of r/wallstreetbets") 2 days ago

https://news.ycombinator.com/item?id=25868680 ("r/wallstreetbets set to private after increased media coverage") 5 days ago

Edit: This story is breaking my stack metaphor, and a graph metaphor would be too complicated.

These are all significant threads with interesting articles that are different enough from each other that I don't think we'll merge them:

https://news.ycombinator.com/item?id=25930214 ("GameStop Is Rage Against the Financial Machine") <-- currently on the front page

https://news.ycombinator.com/item?id=25930488 ("How r/WallStreetBets gamed the stock of GameStop")

https://news.ycombinator.com/item?id=25929443 ("Robinhood, Trading 212 and others go down amid AMC and GameStop stock frenzy")

https://news.ycombinator.com/item?id=25929110 ("GameStop Opened at $300+ Today") - not an interesting article but the thread is better

https://news.ycombinator.com/item?id=25926953 ("The GameStop Fiasco Proves We’re in a ‘Meme Stock’ Bubble")

https://news.ycombinator.com/item?id=25927254 ("GameStop Short-Sellers Reload Bets After $6B Loss")

Edit 2: these just in:

https://news.ycombinator.com/item?id=25934186 ("Nasdaq says they will halt trading if a stock has unusual social media chatter")

https://news.ycombinator.com/item?id=25933581 ("GameStop Mania Reveals Power Shift on Wall Street")

Edit 3: and now this:

https://news.ycombinator.com/item?id=25935511 ("Discord bans the r/WallStreetBets server")

https://news.ycombinator.com/item?id=25935746 ("WSB Went Private on Reddit")

Edit 4: https://news.ycombinator.com/item?id=25936521 ("Where do we go from here and who is going to step up to help us?")

https://news.ycombinator.com/item?id=25937396 ("Ask HN: What the heck is happening with GameStop?")

Edit 5 (the next day):

https://news.ycombinator.com/item?id=25957748 ("Statement of SEC Regarding Recent Market Volatility")

https://news.ycombinator.com/item?id=25941431 ("Robinhood is limiting purchases of stocks: AMC, Blackberry, Nokia, and GameStop")

https://news.ycombinator.com/item?id=25945447 ("We Are Preparing a Class Action Lawsuit Against Robinhood")

https://news.ycombinator.com/item?id=25942240 ("WallStreetBets vs WallStreet: It's not about the money anymore")

https://news.ycombinator.com/item?id=25942863 ("Reddit's GameStop, AMC surge is the new Occupy movement")

https://news.ycombinator.com/item?id=25944051 ("GameStop: Anger as trading in GameStop shares is restricted")

https://news.ycombinator.com/item?id=25942790 ("An Elegant Revolution Followed by Slaughter")

What will become of us? where will it all lead?

Edit 6: well, it's leading here next:

https://news.ycombinator.com/item?id=25948391 ("Robinhood is automatically initiating GME sell orders on users' behalf")

https://news.ycombinator.com/item?id=25947814 ("Class Action Lawsuit Filed Against Robinhood")

https://news.ycombinator.com/item?id=25947697 ("Robinhood now has a 1-Star rating on the Google Play Store")

https://news.ycombinator.com/item?id=25949618 ("An Update on Market Volatility")

https://news.ycombinator.com/item?id=25950685 ("Robinhood is said to draw on bank credit lines amid tumult")

https://news.ycombinator.com/item?id=25951390 ("Robinhood Play Store listing went from 329K reviews to 180K in few hours")

https://news.ycombinator.com/item?id=25952659 ("Facebook shuts popular stock trading group amid GameStop frenzy")

Edit 7 (another day):

https://news.ycombinator.com/item?id=25957748 ("Statement of SEC Regarding Recent Market Volatility")

https://news.ycombinator.com/item?id=25958639 ("Robinhood denies claims that it sold GameStop shares out from under its traders")

https://news.ycombinator.com/item?id=25957923 ("Interview with u/DeepFuckingValue, who drove the GameStop Reddit mania")

https://news.ycombinator.com/item?id=25956329 ("Ask HN: How is GME not a pump-and-dump?")

Edits 8/9 merged:

https://news.ycombinator.com/item?id=25954539 ("Robinhood, in Need of Cash, Raises $1B from Its Investors")

https://news.ycombinator.com/item?id=25952300 ("Suck it, Wall Street" – a Taibbi title)

https://news.ycombinator.com/item?id=25979673 ("Why Robinhood disabled buys but not sells")


Thanks very much for that link (and the links contained in it.)

I'm using 75% ethanol in a spray to "sterilize" (for SARS2 only, it's a fragile virus).

Even if the efficiency drops after spraying (which is not the same as soaking), I think it's still better than just a cloth or surgical mask.

The link to making high efficiency masks

https://groups.oist.jp/nnp/diy-face-mask

in the link you provided is quite interesting. The concept of HV electrostatic blowing of polyethylene is new to me - I wondered how N95 masks were made. I note that in the cotton candy machine experiments they reduced the voltage to 50V, lol.

I'm going to reserve judgement on the physics behind making electrostatically charged fibers and the question of how long they retain the charge. That's an interesting area to investigate! For example:

https://www.tandfonline.com/doi/abs/10.1080/00022470.1974.10...

Ethanol and isopropyl alcohol don't dissolve polypropylene, so the efficiency loss must be due to some other effect.

If the small fibers in the N95 mask have charge embedded in manufacturing, i.e. they are electrets, perhaps the removal of surface charge by alcohol (or screening by adsorbed alcohol?) is only temporary, and if the masks were tested a couple of days later, perhaps their efficiency might have recovered?

https://search.proquest.com/docview/236317922

I would appreciate it if the Federal administration put some effort into upping production of N95 masks for everyone - I've used them for years as dust masks, and now they are not readily obtainable. I still have a small stash, which we reuse and spray down with Everclear 151 after use.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: