News for hackers. Stuff that matters.

yairchu

Show HN: Glog – A read-only Git TUI with familiar pager keys

https://yairchu.github.io/glog/

I built glog for myself and other humans who still read code and use Git while coding agents do more of the writing.In other Git TUIs, my muscle memory from `git log` and `git show` accidentally triggered destructive rebases. glog is strictly read-only, so I can browse without worry.It shows commits with syntax highlighting via delta, uses familiar pager keys, and has opinionated,...

( Read More... | no comments | on HN )
Re:Rosetta 2 creator leaves Apple to work on Lean full-time on Monday December 23, 2024 @06:55AM (#42493775)
Lean is a currently-niche programming language / proof-assistant. A proof assistant is basically a tool to construct mathematical proofs, which verifies that the proofs are correct like how a compiler verifies types in your programs.

IIUC a regular programming language with a certain set of restrictions already duals as a proof-assistant as discovered by Curry & Howard. By restrictions, I mean something like how Rust forces you to follow certain rules compared to Java.

Re:Pijul 1.0 Beta on Wednesday January 19, 2022 @05:40AM (#29992013)
The link in "A redesign of our backend, Sanakirja, to make it significantly faster", to https://pijul.org/posts/2022-01-08-beta/2021-02-06-rethinkin... is broken (I get a "Not found")
Re:Tqdm (Python) on Sunday December 19, 2021 @09:30AM (#29614200)
Way before @noamraph put it up on in pypi it was internally available in our company. To my knowledge he didn't yet make it 30 years ago, but if he did then probably at least not for Python!
Re:Tqdm (Python) on Thursday December 16, 2021 @04:44PM (#29584387)
Ive used tqdm 20 years ago
Re:Google to Slow Hiring for Rest of 2020 on Thursday April 16, 2020 @03:43AM (#22887076)
Facebook runs a lot more political ads than Google and it’s commercial ads that are halting.
Re:YC Companies Responding to Covid-19 on Wednesday March 25, 2020 @02:48PM (#22687310)
Do folks generally keep with the regular secrecy in this situation?

(regarding ANA's "More than 50 years ago, the FDA approved a drug. Today, we’re evaluating that drug as a treatment for COVID-19")

Re:Trying to sneak in a sketchy .so over the weekend on Monday February 10, 2020 @06:15AM (#22288111)
Imho her blog is a valuable resource. Can be used to point out "here's what could happen if you do X" in specific cases and in general as "here are a lot of examples for why things should be done in a non-messy way".
Is there any other plausible explanation?
> exceptionally good education.

Is that so?!

I’m an Israeli and I assumed that it’s the really bad education that is responsible for stronger skepticism and Chutzpah.

Re:Ask HN: Why is programming editing text? on Sunday July 21, 2019 @06:09AM (#20490673)
> So why do we bother with all that coding style stuff if we could make an IDE that edits the program itself instead of text? (I get that text is a universal format, but that doesn't mean we have to edit it directly.)

A huge benefit of text is that if you learn to read code, you already know how to edit it too. This is because of WYTIWYS: What you type is what you see.

Higher level edits and refactoring are awesome, but when you just start using the environment you can't learn all the refactorings yet, while you only want to enter something similar to the code you saw on the whiteboard in class etc. WYTIWYS makes it easy.

Historically, many attempts at structural or projectional editors didn't adhere to WYTIWYS. I believe that this is a major reason for why they haven't gained popularity.

But recently there are several projects developing projectional editors which do adhere to WYTIWYS!

One is Lamdu (http://www.lamdu.org) (btw I'm one of its developers). In Lamdu we try to create a programming language with a friendly projectional editor which does adhere to WYTIWYS and also offers awesome unique features that projectional editors enable. (for more information see our short videos - https://www.youtube.com/channel/UCgvPEOFglvS4_ZEHi-PEctQ )

Another projectional editor adhering to WYTIWYS is Jetbrains MPS (https://www.jetbrains.com/mps/) . This one isn't limited to a single programming language! It is a general purpose language workbench.

Re:Lamdu – towards a new programming experience on Monday February 22, 2016 @02:28AM (#11149163)
In the example it is called "NonEmpty".

There's the "Stream" nominal type, shown below in Haskell-like text syntax:

  newtype Stream a = () -> (Empty | NonEmpty { head :: a, tail :: Stream a })
To construct a "Stream", we type "stream" in a hole and pick "Stream« ◗ _", which wraps a "deferred computation" ("◗ _") in the nominal "Stream" type constructor.

Now the type of the value inside the hole within is just "Empty | NonEmpty { head :: a, tail :: Stream a }", now type "nonempty" and pick it.

Re:Lamdu – towards a new programming experience on Sunday February 21, 2016 @01:01PM (#11145582)
It's not a known color scheme. For a while we had an ugly color theme, and then I sat with a designer friend and we fixed it. I agree that it's pretty now :) Apparently colors needed to have consistent saturation levels and stuff..
Re:Lamdu – towards a new programming experience on Sunday February 21, 2016 @11:13AM (#11145023)
But the context is that the tooling does type it for you.
Re:Lamdu – towards a new programming experience on Sunday February 21, 2016 @07:58AM (#11144319)
I think that you and Peaker are merely interpreting the term "blindly manipulating symbols" differently.

Here's an explanation of what the term means: http://blog.absentdesign.com/2013/05/blindly-manipulating-sy...

Re:Lamdu – towards a new programming experience on Sunday February 21, 2016 @04:52AM (#11143941)
Here's how Euler 3 looks: http://imgur.com/Y9qryWd

Note that not seen in the screenshot are the `reduce` and `max` functions which I've implemented, though those are pretty simple.

I also can't wait till I'll be able to really use Lamdu.

Re:Lamdu – towards a new programming experience on Sunday February 21, 2016 @04:32AM (#11143904)
It's a custom one that we made for Lamdu using GLFW and OpenGL (via [graphics-drawingcombinators](https://hackage.haskell.org/package/graphics-drawingcombinat...).

It's been clear to us that we need animations for structural editing so that it's clear to the user what's going on, and we're not familiar with a GUI library that provides us with what we needed, so we made this custom one.

Currently it's part of Lamdu's sources, but we could make it an independent library if there's demand.

Re:Lamdu - towards the next generation IDE on Thursday December 26, 2013 @05:50AM (#6965897)
It is using OpenGL indirectly via the graphics-drawingcombinators library (http://hackage.haskell.org/package/graphics-drawingcombinato...).

Indeed the fonts may not be as pretty as with Cairo etc but on the other hand there are very nice animations when edits make stuff move around.

Re:Confessions of A Job Destroyer on Tuesday March 12, 2013 @07:33PM (#5365744)
I don't think that I am confusing things with value, but perhaps I did not explain my meaning well enough.

The problem with cheap AI and robots is not that people will not want to create things for each other and do stuff - sure they will still want to make stuff.

The problem is that hardly anyone will pay them for doing stuff, and therefore it will be impossible for them to make a living. So, the non-rich people (who don't own the robot corporations) would not be able to afford food and shelter.. (and they'll die as a consequence)

Unless government or benevolent fellows decide to help the destitute population and provide for them, which I don't really see happening as the plutocrats would probably treat the poor just like white slave owners in the US used to treat their black slaves, or like people treat cows. Even though resources will be abundant and it won't take much effort or sacrifice to help us, they would rather spend their resources on building faster spaceships or go ride space slides or ski on Mars or something.

Re:Confessions of A Job Destroyer on Tuesday March 12, 2013 @07:51AM (#5361254)
That's because we haven't yet produced a general-purpose quality AI which can do everything humans can do and more cost effectively than they do it. But when this happens, pretty much everything, even creative work like graphical design - everything will be cloudsourced.
Re:Confessions of A Job Destroyer on Tuesday March 12, 2013 @07:42AM (#5361225)
They can't, because the people who own the robots also own a robotic police force.

Two years ago when Mubarak told the Egyptian army to spray protestors with bullets, and the soldiers refused. That's because he didn't have a robotic force. The future is probably going to be horrible.

Re:The Nuclear Scientist Who Skipped College on Friday November 09, 2012 @09:12PM (#4765671)
Check out http://en.wikipedia.org/wiki/Cubic_equation#History

Cubic equations were researched by mathematicians for thousands of years before Tartaglia solved the general case! (btw the solution for Quadratic equations was well known since at least 2000 BC)

And he also made up the complex numbers on the way!

Wrt whether he was an outsider, http://en.wikipedia.org/wiki/Niccol%C3%B2_Fontana_Tartaglia

> There is a story that Tartaglia learned only half the alphabet from a private tutor before funds ran out, and he had to learn the rest for himself. Be that as it may, he was essentially self-taught. He and his contemporaries, working outside the academies, were responsible for the spread of classic works in modern languages among the educated middle class.

After Tartaglia's solution for Cubic equations and Ferrari's solution for Quartic equations were published in 1545, no doubt that finding a solution for 5th degree polynomials became a hot topic. http://en.wikipedia.org/wiki/Quintic_function

> Finding the roots of a given polynomial has been a prominent mathematical problem.

But even though it was a hot topic, it took 300 years until Galois came around with a method to determine which Quintic equations can and which cannot be factored to "radicals".

Re:The Nuclear Scientist Who Skipped College on Friday November 09, 2012 @04:13PM (#4764769)
Galois, Fermat, Tartaglia...
You are correct, Nobel prizes are not awarded to the dead, unless they die just after announcing the prize and before the ceremony (http://www.guardian.co.uk/science/2011/oct/03/nobel-prize-aw...). Gandhi was denied the prize for this reason.

In this case, it is simply the post title being misleading, as it's not the Nobel prize these folks won, but the Nobel memorial prize in economics, which is a relatively new prize which is not part of the 5 Nobel prizes which had been given by Nobel's estate for more than a century.

Edit: oh I see they didn't reward a dead in this case, misread your comment..

Re:Faster than C? Parsing binary data in JavaScript. on Sunday October 07, 2012 @08:41PM (#4624995)
Doesn't it cause a "Javascript eval injection" vulnerability?

I don't know Javascript so I may be wrong here, but:

* Suppose someone uses this library to create a "MariaSQL Explorer App", where you give the app connection credentials and it connects to the database and shows you the data etc.

* A malicious attacker tells a user "have a look at my database" and the user goes to the attacker's database.

* The attacker's database (or spoof of one) has a column called 'dummy": MALICIOUS_CODE(), "colname'. notice the '"' chars inside column name.

* The MALICIOUS_CODE() runs in the user's node.js app. Perhaps it sends the attacker the passwords to other databases from the app's keychain or something..

* Profit