HNHacker News
TopNewBestAskShowJobs

Treblemaker

357 karma · joined September 1, 2014

submissionscomments
Treblemaker··on Picol: A Tcl interpreter in 500 lines of code
The objections to tcl I see most often seem to reflect an outdated or incomplete understanding of the language and its capabilities.

As with many interpreted languages, maybe it's just too easy to iterate interactively with code until it "just works", rather than taking the time to design the code before writing it, leading to perception that it is a "write-only" language.

However, despite its reputation, even Perl can be written in a way that is human-readable. I agree with you that it is more a reflection of the programmer or the work environment than of the language itself.

Treblemaker··on Picol: A Tcl interpreter in 500 lines of code
> When "everything is a string" then you have no choice but to literally treat everything as a string.

As someone who has been developing tcl almost daily for more than 30 years, both object oriented and imperative code, I have not found it necessary to think this way.

Can you explain what leads you to this conclusion?

Treblemaker··on Picol: A Tcl interpreter in 500 lines of code
Similar amount of experience with tcl here (since dc_shell-t was released). I love working in tcl. It can be expressive, redable, sufficiently performant, and makes it easy and fast to develop and test new features and functions in even very complex EDA design flows with 100k lines of code.

I find it curious that so many of the criticisms of tcl are that it doesn't have some feature or behavior of some other language. That has never stopped me from accomplishing what is needed with clear, elegant code.

Rule #10 in the Dodekalogue [0] explains why your preferred comment style is not supported: a command is not expected immediately after the last argument of the previous command. Terminate the command per rule #1 and it is perfectly fine:

puts "Hello" ;# A comment

Isn't that the same number of characters one would type to start a javascript comment? //

Almost any programming language can be beautiful in its simplicity if you work with it on its own terms. tcl doesn't deserve the hate.

[0] Dodekalogue is the common name for the twelve rules that define the syntax and semantics of Tcl. https://wiki.tcl-lang.org/page/Dodekalogue

Treblemaker··on The Tcl Programming Language: A Comprehensive Guide (2nd Edition)
Search upthread for "Klines" and "80s"
Treblemaker··on The Tcl Programming Language: A Comprehensive Guide (2nd Edition)
100's of Klines of code in continuous development over the last 10 years, still currently maintained and continually adapted for new use cases in Electronic Design Automation (EDA) for logical and physical chip design and verification.

Of course it's possible to create "write-only" code in tcl. But tcl is hardly unique in that respect. Good code design and coding practices help to avoid most issues just as in many other languages.

"Everything is a string" (EIAS) is not what leads to a complete mess; it's failing to go beyond an initial, superficial understanding of the syntax and language capability and general lack of discipline that lead to un-fixable messes.

Treblemaker··on The Tcl Programming Language: A Comprehensive Guide (2nd Edition)
Many of the big EDA (Electronic Design Automation) tools continue to use tcl for the command line interface. Some users have created quite complex, customizable design flows spanning multiple tools and even development infrastructure (much, much more than just "stitching tools together) using tcl.
Treblemaker··on The Tcl Programming Language: A Comprehensive Guide (2nd Edition)
> It fakes having numbers, which works, but has to be slow.

This hasn't been the case for 25 years, since the 8.0 release. Tcl will store data internally in whatever format it was last used, and only convert if needed. Good coding practice pays attention to this to avoid "shimmering" a value back and forth between different internal representations unnecessesarily.

> It lacks arrays;

It does have associative arrays; and lists when used appropriately can fulfil many roles that would otherwise have been implemented in an array in another language

And tcllib[0], a collection of utilities commonly used with tcl, provides support for a number of different and complex data structions [1], many of which are written in C, not just more tcl scripts.

It's worth noting that Stallman's criticism linked above is more than three decades out of date. As with any programming tool, once you go beyond a superficial understanding of basic syntax, it can serve as a a very expressive and sufficient language.

[0] <https://www.tcl-lang.org/software/tcllib>

[1] <https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/toc.m...> (see: Data structures)

Treblemaker··on Ion engines could take us to the solar gravitational lens in less than 13 years
I came here to say this. But also, for those who don't know. this is referring to "Project Hail Mary" by Andy Weir, author of "The Martian".

(Caution, many spoilers in the Wikipedia article) https://en.wikipedia.org/wiki/Project_Hail_Mary

Treblemaker··on NYC-bound flight canceled when passenger notices missing bolts on plane wing
De Havilland Dash 8, for example.

https://www.youtube.com/watch?v=h3voCL_CK18&t=14s

Treblemaker··on NYC-bound flight canceled when passenger notices missing bolts on plane wing
I am not aware of any reports of aircraft struck by meteors. However,there are planes which have been damaged or destroyed by debris on the runway [0]

[0] https://en.wikipedia.org/wiki/Foreign_object_damage#Runway_d...

Treblemaker··on Have attention spans been declining?
The perception that ADHD is nothing more than the inability to "sit still and pay attention" is very wrong and very out of date. Before you comment further I would strongly recommend you watch a series presented by one of the leading researchers in neurological basis of ADHD, Dr. Russell Barkley, called "ADHD: "The 30 Essential Ideas Every Parent Needs to Know" [1].

I struggled with many of these things -- primarily time blindness, executive function and impulsiveness -- for most of my almost six decade life, and finally understanding what was happening -- and getting help for it -- has been life-changing.

As one friend put it, he would cut off his left testicle if it meant having working executive function. The idea that I -- and friends and acquaintances who share similar experiences -- are faking it is ignorant and insulting. That you do not suffer is a gift; be grateful. Maybe don't be so dismissive of the struggles and suffering of others.

[1] https://www.youtube.com/playlist?list=PLh4RKnr7ygXsO1ImoyB0K...

Treblemaker··on A brief interview with Tcl creator John Ousterhout
Yes, according to the documentation, braces in comments should be ignored.

However, the parser is confused by unbalanced braces in comments.

Here's a classic case that turns up occasionally during development:

  proc asdf { args } {
    # if { first draft complex condition } {
    if { final simplified condition } {
      do something
    } else {
      do something else
    }
  }
Sourcing a file with the above comment inside the proc will produce:

  missing close-brace: possible unbalanced brace in comment
Treblemaker··on Ask HN: Are there things that Flash did that we still can’t do with today’s web?
TIL of Bartosz Ciechanowski. What an incredibly gifted communicator. Thank you!
Treblemaker··on Head-On Crash: 2009 Chevrolet Malibu vs. 1959 Bel Air (2009)
Or this?

Tucker: The Man and His Dream (1988)

https://en.wikipedia.org/wiki/Tucker_(film)

Treblemaker··on YouTube removes criticism of dangerous fractal wood burning, but leaves up tips
Nothing is "perfectly safe". Many things are egregiously, unnecessarily unsafe.
Treblemaker··on Unexpected solar weather is accelerating satellites' orbital decay
Update on the prediction:

(Feb. 26, 2022) "“We have finalized our forecast of SC25’s amplitude,” says McIntosh. “It will be just above the historical average with a monthly smoothed sunspot number of 190 ± 20.”

"“Above average” may not sound exciting, but this is in fact a sharp departure from NOAA’s official forecast of a weak solar cycle"

[0] https://spaceweatherarchive.com/2022/02/25/the-termination-e...

Treblemaker··on Unexpected solar weather is accelerating satellites' orbital decay
(December 19, 2020) "The consensus view of an international panel of 12 scientists calls for the new cycle, Solar Cycle 25, to be small to average, much like its predecessor, Solar Cycle 24.

But a prominent astrophysicist at the National Center for Atmospheric Research, Scott McIntosh, foresees the sun going gangbusters. The cycle is already off to a fast start, coinciding with the recent publication of McIntosh’s paper in Solar Physics. The study, with contributions from several of his colleagues, forecasts the nascent sunspot cycle to become one of the strongest ever recorded."

[0] https://www.washingtonpost.com/weather/2020/12/19/solar-cycl...

Treblemaker··on Double ridge formation over shallow water sills on Jupiter’s moon Europa
Topic always reminds me of this story: http://compellingsciencefiction.com/stories/downandout.html
Treblemaker··on My attempted cult recruitment
We do. Example from Oregon:

ORS 811.275

(1) A person commits the offense of failure to yield the right of way at an uncontrolled intersection if the person is operating a motor vehicle that is approaching an uncontrolled highway intersection and the person does not look out for and give right of way to any driver on the right simultaneously approaching a given point, regardless of which driver first reaches and enters the intersection.

https://oregon.public.law/statutes/ors_811.275

Treblemaker··on “Lena” isn't about uploading
If you're not familiar with it, recommend to read the story first [0].

Previous HN discussion on the story here [1].

[0] https://qntm.org/mmacevedo

[1] https://news.ycombinator.com/item?id=26224835

Treblemaker··on Retrospective and technical details on the recent Firefox outage
(off topic)

I read that at first glance as

> Probably not the last, either, those joints ain’t gonna roll themselves.

and thought, hm, I need to remember this debugging technique next time I'm stumped.

Treblemaker··on Doing too much work on one's own before looping in others
Joe is the expert on feature X. When we have a problem in X we ask Joe for help and he invariably provides the insight needed to solve the problem.

When Joe has a problem with X, he should go ask for help, even though he's the one best able to deal with it? Should he ask himself for help?

Can you see the problem with blanket statements like this?

Treblemaker··on Doing too much work on one's own before looping in others
How many times do I need to go down this path:

  ...
  - ask for help
  - try to explain how it's supposed to work
  - try to explain how it's not working
  - Listen to them come up with all the ideas that I've already ruled out
  - Try to explain why their preferred idea has already been
    ruled out or is not actually relevant to the problem
  - conclude they still don't understand the problem or even
    how this part of the system works
  - go ahead and just solve the problem myself
  ...
  
before it's OK to stop "asking for help", and just fix the damn thing?
Treblemaker··on How do I open the Mercedes EQS’s hood?
> Is it because the combustion takes place in a chambers somewhere inside the engine

Yes, it is. Compare with "External Combustion Engine" https://en.wikipedia.org/wiki/External_combustion_engine

Treblemaker··on A Steller's sea eagle that is very lost
I never knew that was Clinton's code name (and I voted in 1988). My first thought was the Apollo 11 landing site got cratered!
Treblemaker··on Don’t be spooky
Every layoff I've been subject to (four of them) involved a large number of people, and were related to declining business or transfer of business activity to another division. And my last layoff resulted in a significant severance package. Not sure the claim of "usually" can be substantiated.
Treblemaker··on The Soviet 1801VM2 LSI-11 Processor
I'm curious to see where you see the odd angles. When I zoom in sufficiently all the shapes seem to resolve to segments of 90 and 45 degree angles.
Treblemaker··on Amazon's AI-powered cameras punish its delivery drivers when cars cut them off
I thought this was supposed to be fiction.... https://marshallbrain.com/manna1
Treblemaker··on George Mason professor wins Covid antibody lawsuit as vaccine exemption
The data is in the tables, summarized in Figure 1:

https://www.nature.com/articles/s41591-021-01377-8/figures/1

Treblemaker··on George Mason professor wins Covid antibody lawsuit as vaccine exemption
Thank you for the other references.

> Down voted because this is misinformation

I would hope you might agree that term is better reserved for bullshit conspiracy theories and not peer reviewed research published in one of the most cited journals in the world.

> the citation you provided does not support your claim

Upon re-reading the paper I still find that my claim is supported.

"Although antiviral T and B cell memory certainly contribute some degree of protection, strong evidence of a protective role for neutralizing serum antibodies exists. For example, passive transfer of neutralizing antibodies can prevent severe SARS-CoV-2 infection in multiple animal models,12,13 and Regeneron has recently reported similar data in humans14. We therefore focus our studies on in vitro virus neutralization titers reported in studies of vaccinated and convalescent cohorts"

"To compare neutralization titers across studies, we determined the mean and standard deviation (on a log scale) of the neutralization titer in published data from seven vaccine studies (mRNA-1273, NVX-CoV2373, BNT162b2, rAd26-S+rAd5-S, ChAdOx1 nCoV-19, Ad26.COV2.S and CoronaVac) and one convalescent study3,16,17,18,19,20,21,22"

" This model assumes that there is a protective neutralization level, T, above which individuals will be protected from infection and below which individuals will be susceptible. The protective efficacies observed in phase 3 clinical trials of vaccinated individuals (and another large cohort study of convalescent individuals1; "

[data shows higher level of neutralizing antibodies from four of the vaccines compared with convalescent studies]

It is possible -- even likely -- that I have misunderstood the paper. And both you and the paper I cited agree that more research is needed to establish the correlation between levels of neutralizing antibodies and protection from infection and disease. But my claim was _about_ the levels of neutralizing antibodies and as I understand it that claim is supported by the paper.

Page 1 of 4Next →