Hacker Newsnew | past | comments | ask | show | jobs | submit | 0x0203's commentslogin

Even PDFs don't always render the same from one platform to another. I've mostly seen it due to missing fonts.


I find myself referencing this list of embeddable scripting languages pretty frequently: https://github.com/dbohdan/embedded-scripting-languages

Ones that might be of interest to you are Umka, tcl, and berry.

There's also a lot of others listed that range from someone's experimental side project to professional grade and well supported languages. Kinda fun to see different people's approaches to things, and no matter what your preferred programming style, there's probably a few in there that will mesh pretty well.


Not sure what the line count is, but PortableGL is a software renderer for 3.x(ish):

https://github.com/rswinkle/PortableGL

Cool project, and fun to play with.


It currently clocks it at 12.5K but that includes stuff that could easily be stripped out. I suspect, even if I had it "finished" with everything I would ever want in it, it wouldn't be more than 15-20k. PGL saves a lot by not bothering with GLSL at all.

Glad you found it fun to play with, that's what it's for. Hoping to have a new release in the next week or so, and there have been some serious/breaking changes since the last so hopefully it goes well.

And on the topic of this thread, PGL is overkill for raylib's software rendering backend since they don't need arbitrary shader support, but I would still love to try making PGL a raylib backend someday because it would be cool and running the entire set of Raylib examples would be a great stress test. Plus then I could use raylib to make a game with PGL, win-win.


> Genuinely curious what the solution here is.

At the risk of stating the obvious, the drone shouldn't be flying anywhere near the crane. It's an active construction zone with a structure that moves and swings about in unpredictable ways with people and equipment moving about below. It shouldn't be delivering to the construction zone, and if it can't figure out how to stay out of the area, it doesn't belong in the sky.

There are some FAA requirements about cranes/temporary structures that would give pilots an appropriate NOTAM, but I don't know if all cranes require this. That said, I'd argue that if it isn't tall enough to require notifying the FAA, the drone is flying too low.


Tcl/tk is still alive and doing well. It's cross platform, very quick to learn, and easily embeddable into other languages/projects.


Version 9 came out last year. I wrote about it.

https://www.theregister.com/2024/10/02/tcltk_version_9/

27 years after v8.0 which may be some kind of record.


Can you name an important software written in Tcl or Tk?

Important softwares written in Ruby for example include Rails and Homebrew.


Tcl is the embedded language of git. Standard git gui is written in Tcl/Tk. Tcl is also the script language for sqlite.


.gitconfig is in an INI-like format though, which is not anything like Tcl.

Also, does anyone use the "standard" git GUI?

>Tcl is also the script language for sqlite.

OK, thanks.


I never liked other graphical git clients so I switch between CLI and gitk + git gui according to the task at hand.


Only way I know to remove a file from a commit is by using git commit.

I’m also most comfortable with gitk when reviewing branches


git commit -> git gui


Thanks for that correction. I was quite confused.


One of the big investment banks use TCL/TK, for real-time e-trading. Source my last gig.

The "important software" are normally kept behind NDAs, so you never hear about their uses. TCL was also used on the Mars Rover.

Take a look for yourself: https://wiki.tcl-lang.org/page/Who+Uses+Tcl


The FPGA software from Xilinx and Altera are scripted with Tcl/Tk.


This. In fact it seems like plenty of hardware-eng tools use Tcl, and looking at all alternatives it's not a bad choice.

With Tcl you get something like a Lisp with a flexible consistent syntax, but less brainy and more pragmatic, and designed to drive other tools.


My impression many years ago was that it’s really not that bad. I got up and running writing simple programs immediately, and wouldn’t have tried to go outside its capabilities as a simple scripting language.


Thanks for the reply.


Tk has been embedded in python as the GUI toolkit since at least 2.x days. It's used for IDLE, the IDE shipped with Python, and is also used for the turtle module's graphics.


Tk also works with Ruby.

https://tkdocs.com/


I've read many times in the past that a lot of EDA-related software is written in Tcl and Tk.

Electronic Design Automation.

https://en.m.wikipedia.org/wiki/Electronic_design_automation

See:

https://www.tcl-lang.org/about/uses.html

The section about Embedded Development.

CAD is mentioned there too.

https://en.m.wikipedia.org/wiki/Computer-aided_design


Pasting that section's content here:

Because Tcl is a very compact language, and is easily integrated with special hardware, it is a popular choice for embedded development. You'll find Tcl hidden away on many devices, including many networking products from Cisco and others, and set-top boxes including Tivo. Embedding Tcl within other software projects is of course also hugely popular, and has become the dominant control language in some industries, such as in electronic design automation (EDA) and computer-aided design (CAD) applications.



Not written in, but AutoCAD supports scripting in TCL (and in its own AutoLisp, which is much less popular among users than TCL).



First version of Redis was written in Tcl.


> Can you name an important software written in Tcl or Tk?

MacPorts[0] uses Tcl significantly.

EDIT:

The expect[1] command also uses Tcl and has a variant which uses Tk.

0 - https://github.com/macports/macports-ports

1 - https://man.freebsd.org/cgi/man.cgi?query=expect&apropos=0&s...


A large part of flightaware.com’s systems were written in TCL.


Sadly very overlooked these days.


It's mostly bad actors, and a smattering of optimists who believe that despite its current problems, AI will eventually and inevitably get better. I also wish the whole thing would calm down and come back to reality, but I don't think it's a bubble that will pop. It will continue to get artificially puffed up for a while because too many businesses and people have invested too much for them to just quit (sunk cost falacy) and there's a big enough market in a certain class of writer/developer/etc... for which the short term benefits will justify the continued existence of the AI products for a while. My prediction is that as the long term benefits for honest users peter out, the bubble won't pop, but deflate into a wrinkled 10 day old helium balloon. There will still be a big enough market driven by cons, ad tech and people trying to suck up as many ad dollars as possible, and other bad actors, that the tech will persist, and continue to infest the web/world for quite a while.

AI is the new crypto. Lots of promise and big ideas, lots of people with blind faith about what it will one day become, a lot of people gaming the system for quick gains at the expense of others. But it never actually becomes what it pretends/promises to be and is filled with people continuing the grift trying to make a buck off the next guy. AI just has better marketing and more corporate buy in than crypto. But neither are going anywhere.


“the bubble won't pop, but deflate into a wrinkled 10 day old helium balloon”

Love it :)


> AI is the new crypto.

But it's also way worse than cryptocurrencies, because all the big actors are pushing it relentlessly, with every marketing trick they know. They have to, because they invested insane amounts of money into snake oil and now they have to sell it in order to recover at least a fraction of their investments. And the amounts of energy wasted on this ultimately pointless performance are beyond staggering.


In what parallel universe do you live where LLMs are snake oil?


Not LLMs per-se but the wrap-around claims peddled by "AI" companies.


It depends on how they're marketed and what's the prevailing opinion. If we believe LLMs are true, genuine intelligence then yes, I'd say that's snake oil.


I think he was being metaphorical.


From a classists perspective, big capital cant drop the AI ball, because its their only shot at becoming independent from human labor, those pesky humans their wealth unfortnunately depends uppon and that could democratically seize it in an instant.

I bet there are billionare geniuses out there seeing a future island life far away from the contaminated continents, sustained by robots. So no matter how much harder AI progress gets, money will keep flowing.


For anyone that hasn't clicked the link, it shows that in just a few days, the observatory has already found over 2000 new asteroids. That is indeed very impressive.


Imagine what it'll be turning up once the full survey is underway


Why do the brighter objects have the four way cross artifact? My (apparently incorrect) understanding was that those types of artifacts were a result of support structures holding reflecting mirrors on a telescope. But this camera just has a "standard" glass lense with nothing obstructing the light path to the sensor.


Those diffraction spikes are caused by the four-vane spider structure supporting the secondary mirror in the telescope's optical path, not by the camera lenses themselves.


You are not wholly wrong! There is both a supporting structure for the mirror, AND a glass lens in front of the sensor to further flatten the incoming light.

The interesting thing about the spikes in our images is that they stay fixed in image plane coordinates, not sky coordinates. So as the night sky moves (earth rotates) the spikes rotate relative to the sky leading to a star burst pattern over multiple exposures.


It’s a reflecting telescope, not a camera with a glass lens.


Ah, thanks. I had seen a bunch of hype about the camera itself (which is on its own very impressive) and assumed that was the complete device. Didn't realize it was part of a larger telescope.


If the universe does have a positive curvature as this predicts, would that mean that if we look out into space, we could see the same galaxies multiple times? Or even our own galaxy in the past? Or is the predicted curvature slight enough that anything we might see multiple times is already beyond the limits of visibility due to universe expansion?


Only if the circumference of the universe is small enough for light to have made the round trip since the universe began. But we think that the universe is much larger than that.

https://en.wikipedia.org/wiki/Particle_horizon


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

Search: