[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs and/or Lisp on Lego Mindstorms?
From: |
tomas |
Subject: |
Re: Emacs and/or Lisp on Lego Mindstorms? |
Date: |
Wed, 11 Apr 2018 08:45:40 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Apr 10, 2018 at 05:39:11PM -0400, Stefan Monnier wrote:
> > * Support for stopping motors when the
> > object is garbage collected
>
> FWIW, this would be a typical example of ill-advised use of finalizers,
> in my book.
:-)
Ah, old war stories come to mind. Like that old "enterprise" class
application in Java which relied on database connections being
closed whenever its parent object got garbage collected.
The app tended to work (for some value of "work") until management
decided to buy more RAM for the machine. Lots of more RAM. The app
started crashing (about once a day), and since "booting" the whole
thing took around half an hour, users were... hmmm.
Lots of cheerful debugging ensued. The result: since now the machine
had much more RAM, it didn't run into memory pressure that quickly,
meaning it hadn't to garbage collect as often, meaning it could
leave more stale DB connections lingering around meaning... the
application ran into the maximum licensed DB connections (did I
mention it was an Oracle DB, where you pay for everything)?
So yes, Stefan's short phrase above is worth careful consideration :)
Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlrNrxQACgkQBcgs9XrR2kYZlACeLvon/aFkO69JrHfmVriLXtsI
jvIAn1EMeMWtlPzXh1uz7RRX+w2C78my
=dDnj
-----END PGP SIGNATURE-----
- Re: Emacs and/or Lisp on Lego Mindstorms?, (continued)
- Re: Emacs and/or Lisp on Lego Mindstorms?, Marcin Borkowski, 2018/04/05
- Message not available
- Re: Emacs and/or Lisp on Lego Mindstorms?, Emanuel Berg, 2018/04/06
- Re: Emacs and/or Lisp on Lego Mindstorms?, Emanuel Berg, 2018/04/08
- Re: Emacs and/or Lisp on Lego Mindstorms?, Marcin Borkowski, 2018/04/09
- Message not available
- Re: Emacs and/or Lisp on Lego Mindstorms?, Emanuel Berg, 2018/04/09
- Re: Emacs and/or Lisp on Lego Mindstorms?, Marcin Borkowski, 2018/04/10
- Re: Emacs and/or Lisp on Lego Mindstorms?, tomas, 2018/04/10
- Re: Emacs and/or Lisp on Lego Mindstorms?, Stefan Monnier, 2018/04/10
- Message not available
- Re: Emacs and/or Lisp on Lego Mindstorms?, Emanuel Berg, 2018/04/10
- Re: Emacs and/or Lisp on Lego Mindstorms?, Stefan Monnier, 2018/04/10
- Re: Emacs and/or Lisp on Lego Mindstorms?,
tomas <=
- Message not available
- Re: Emacs and/or Lisp on Lego Mindstorms?, Emanuel Berg, 2018/04/10
- Re: Emacs and/or Lisp on Lego Mindstorms?, tomas, 2018/04/10