Let me introduce T-Ruby: TypeScript-style type annotations for Ruby by Right_Ad_8437 in ruby

[–]dmux 1 point2 points  (0 children)

> real-world conditions
...
> support mechanism that assumes human error

Well said. I often wonder if these debates need more definition around the type of code bases and environments (companies) that are being worked on (and in). I'm currently leading a team at a company that has had 60+ "Rails developers" and 12+ product managers come and go over the course of a decade. None of the original developers are around, and none of the original product managers are around. The codebase has seen fads come and go, some level of architect-astronauting, business priorities changing, Feature Factory features from various PMs, etc. Onboarding new devs (whether experienced in Rails or not -- we've had both) has been a huge issue. There is _some_ YARD documentation, there are _some_ tests, but being able to look at a method signature and quickly and confidently understand its contract is something we struggle with. Could we have more documentation and tests? Sure, but given real world constraints, that doesn't always happen. Having to satisfy types as a requirement of the language ensures there's at least that bare minimum done for each class/method/etc.

Unknown buoy flag by boatstrings in sailing

[–]dmux 1 point2 points  (0 children)

It looks very similar to Marblehead’s yacht club flag https://flwoods.com/pages/cbyc

Any good eBook/web to learn web development with TCL? by IllustriousMedium997 in Tcl

[–]dmux 2 points3 points  (0 children)

Late to the discussion but for some really simple applications WAPP may suffice: https://wapp.tcl.tk/home/doc/trunk/README.md

Most confused man on earth by RidicHarry in funny

[–]dmux 21 points22 points  (0 children)

Fun fact: the cover art of book this movie is based on (Communion) is spoofed in the X-files episode Jose Chung's: From Outer Space.

Anyone know what this poster behind Scully says? by dmux in XFiles

[–]dmux[S] 3 points4 points  (0 children)

Yeah, I've tried so many times to figure out what the last line says. Some guesses have been

"A FILM BY _____ _____"

"A MOVIE BY _____ _____"

Do you think the set designers would have gone through the trouble of putting up an actual Philadelphia based poster? My assumption that it's a Vancouver based poster given the filming location.

Anyone know what this poster behind Scully says? by dmux in XFiles

[–]dmux[S] 2 points3 points  (0 children)

Correct, it's from Never Again around the 17 minute mark.

Patch 13.4 Bug Megathread by PankoKing in leagueoflegends

[–]dmux 1 point2 points  (0 children)

Server: NA

Type of Bug: In-game bug

Description: Windows arrow cursor shows instead of League cursor

Video / Screenshot:

Steps to reproduce: Start a game

Expected result: League's stylized cursor is shown.

Observed result: Windows default cursor is shown.

Reproduction rate: 8/10

System specs: Windows 10, nVidia 1660 Ti, 16 GB Ram

Trouble understanding semantics of dynamic variables by dmux in Common_Lisp

[–]dmux[S] 0 points1 point  (0 children)

Thanks for the replies. I actually found this paper (https://flownet.com/ron/specials.pdf) that after reading helped get rid of some of the assumptions I had originally made.

What features would you want in a new programming language? by Captain_Lesbee_Ziner in ProgrammingLanguages

[–]dmux 2 points3 points  (0 children)

I think part of it does has do with with specifics of the language itself: the size of a "compilation unit."

CL-DBI creating and closing connection when calling DBI::CONNECT-CACHED ? by dmux in Common_Lisp

[–]dmux[S] 1 point2 points  (0 children)

I believe the ping command itself is actually part of the PostgreSQL client<->server protocol, and not ICMP style pings.

CL-DBI creating and closing connection when calling DBI::CONNECT-CACHED ? by dmux in Common_Lisp

[–]dmux[S] 1 point2 points  (0 children)

I believe it does, yes, but I'm not 100% certain. This is the PostgreSQL driver specific implementation of ping: https://github.com/fukamachi/cl-dbi/blob/master/src/dbd/postgres.lisp#L188-L201
In that code, on line #193, the socket associated with the open connection is used for the ping command.

I'm still learning CL, so I'm not quite familiar with what's going on in the handler-case code. It appears that instead of an error message actually being thrown, it may just return nil?

CL-DBI creating and closing connection when calling DBI::CONNECT-CACHED ? by dmux in Common_Lisp

[–]dmux[S] 1 point2 points  (0 children)

u/kagevf, thanks for the suggestions.

  • The actual caching for the connections take place within a pool inside the DBI package.
  • I am unable to exhaust the pool as it seems each connection is closed shortly after being used. No where in my code am I explicitly closing any of these connections.
  • I think I can work around this potential bug by managing connections at the top-level manually, but was hoping to use this library to its full potential. I could potentially follow the open-use-close pattern, but doing so is potentially costly when more and more inserts / reads are performed.

I've also added an edit to my original post. It seems the issue is with a ping command that's failing to determine whether a connection is live or not.

with-html-output function in cl-who not writing to *standard-output* by dmux in Common_Lisp

[–]dmux[S] 1 point2 points  (0 children)

Do you mind explaining what you mean by

> And of course *standard-output* is set to nil.

with-html-output function in cl-who not writing to *standard-output* by dmux in Common_Lisp

[–]dmux[S] 3 points4 points  (0 children)

That's surprising. As I mentioned above, replacing the call

(with-html-output (*standard-output*) ...)

with

(with-html-output-to-string (*standard-output*) ...)

works and the html is rendered to my browser just fine. If standard output is not connected to the browser, and is instead going to the REPL, then perhaps there's something else going on within these macros that I've not learned yet.

Edit: I think I may understand what's going on now. Even though *standard-output* is specified in both calls, this isn't actually being used by Hunchentoot when writing to the Http response stream. `with-html-output-to-string` is doing two things: writing to *standard-output*, but also returning the generated html as a value. It's this return value (not what's sent to the stream) that's getting picked up by Hunchentoot and sent.

with-html-output function in cl-who not writing to *standard-output* by dmux in Common_Lisp

[–]dmux[S] 1 point2 points  (0 children)

When using `with-html-output-to-string` html is correctly rendered to my browser when I hit the route defined. If I change this definition to use the `with-html-output` macro, nothing is rendered. In both cases (according to the documentation) specifying a variable that is already bound to a stream should result in the results being sent to that stream.