HNHacker News
TopNewBestAskShowJobs

vivegi

1,028 karma · joined January 24, 2022

submissionscomments
vivegi··on India cuts periodic table and evolution from school textbooks
This news seems misleading. A charitable reading of the article would assign it a category of "clickbait". The periodic table and evolution are still part of high school curriculum.

Here are the links to the class XI textbook for Chemistry (the so called rationalized text books for 2023-24).

Chemistry Part I, Unit 3, Classification of Elements and Periodicity in Properties. (Link to PDF) https://ncert.nic.in/textbook.php?kech1=3-6

  in pg 77, Mendeleev's original periodic table
  in pg 79, Long form of the periodic table (modern periodic table) 
Here is the link for class XII textbook for Biology.

Biology, Chapter 6, Evolution. (link to PDF) https://ncert.nic.in/textbook.php?lebo1=6-13

  6.1 Origin of Life
  6.2 Evolution of Life Forms - A Theory
  6.3 What are the Evidences for Evolution?
  6.4 What is Adaptive Radiation?
  6.5 Biological Evolution
  6.6 Mechanism of Evolution
  6.7 Hardy - Weinberg Principle
  6.8 A Brief Account of Evolution
  6.9 Origin and Evolution of Man
The Nature article's summary below the headline states

> Nature has learnt that the periodic table, as well as evolution, won’t be taught to under-16s as they start the new school year.

Yeah, duh! It is taught in Class XI and XII in Chemistry and Biology, just not in Class IX or X as it used to be done previously. Weaving this as some major conspiracy is dishonest and ridiculous.

For the benefit of US readers: Class IX is freshman high school year, Class X is sophomore year, Class XI is junior year, Class XII is senior year.

vivegi··on Falcon 40B/7B Outperforms LLaMA 65B/7B, but with restrictions on commercial use
Update: The Falcon-40b LLM is now under an open Apache 2.0 license including for commercial use. See [1], and HN discussion here [2]

[1]: https://twitter.com/Thom_Wolf/status/1663986216771936263

[2]: https://news.ycombinator.com/item?id=36145185

vivegi··on About Dolly Parton’s Imagination Library
This I learnt today about Dolly Parton! Very impressed with this work.
vivegi··on I made nodb, a RESTFful API to store and fetch JSON
It is a minimal product. In order to be a minimum viable product certain features may be needed:

  1. Some data reliability guarantees (eg. how does this compare with Amazon S3 [1] that provides 99.999999999% durability and 99.99% availability of objects over a given year)?
  2. Backup and restore
  3. User-generated keys to encrypt the data
  4. User-specified indexing
[1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/DataDu...
vivegi··on Want a Printed Airline Boarding Pass? Be Ready to Shell Out $25
My phone ran out of battery once just as I got to the departure gate. I went to the gate agent and presented my photo id to get a boarding card printed and issued to me.

Digital is great, but paper is nice sometimes.

vivegi··on Ancient Language Has the Only Grammar Based on the Human Body
Fascinating read.
vivegi··on Falcon 40B/7B Outperforms LLaMA 65B/7B, but with restrictions on commercial use
https://huggingface.co/tiiuae/falcon-40b/blob/main/LICENSE.t...

TL-DR; 10% Royalty on revenue earned if revenue is greater than $1M annually.

From the license:

<begin-extract>

  8.2 Where TII grants permission for You to make Commercial Use of the relevant Work, then for that purpose You shall be considered a Commercial User, and:
    (a) In its written grant of permission, TII shall set the royalty rate that will apply to you as a Commercial User as a percentage of revenue ( “Relevant Percentage”), where, unless otherwise specified in the grant of permission, the Relevant Percentage shall be 10%; and 

    (b) Each year on the anniversary of the date upon which you were granted permission by TII to make Commercial Use of the relevant Work (the “Anniversary Date") You shall account to TII in writing in full for all revenue you have received in the previous 12 months which is attributable (whether directly or indirectly) to Your use of the relevant Work (“Attributable Revenue”); and

    (c) Where, on the Anniversary Date, the Attributable Revenue for the preceding 12 months is greater than $1m or its equivalent in the currency or currencies in which the revenue has been earned (the “Royalty Threshold”) then You shall make a payment of the Relevant Percentage of the relevant Attributable Revenue that exceeds the Royalty Threshold in full in cleared funds to TII into the account specified by TII from time to time in writing for such purpose within 30 days of that Anniversary Date.
<end-extract>
vivegi··on Ask HN: How do you approach a problem you are not sure has a solution?
Divide and Conquer.

Break your problem into a set of smaller problems. Then partition this set of problems into tractable and intractable subsets. The definition of tractable and intractable can change over time, but must be precise and computable.

Start addressing the tractable problems and show progress. For intractable problems, research effort is required and the costs must justify benefits.

Let us say 60% of your customers are facing issue type A, 30% are facing issue type B, 10% are facing issue type C. Issue type B has a workaround/known solution whereas issue type A and C don't have obvious solutions. Instead of getting stuck with working on issue type A, you and your customers will be better off if you worked on and deployed the solution for issue type B. That is better than the status quo.

vivegi··on Ask HN: What happened to fuzzy logic?
IEEE Spectrum's profile on Lotfi Zadeh and the Birth of Fuzzy Logic. https://spectrum.ieee.org/lotfi-zadeh
vivegi··on The CVM Algorithm for Estimating Distinct Elements in Streams [pdf]
I am wondering what are some good use cases for this algorithm.
vivegi··on The Silent (R)evolution of SAT
SAT is tantalizingly simple to describe and is an intense rabbit-hole if you are intellectually curious. I liked the article.

The SAT Competition [1] is a good place to find state of the art.

[1]: http://www.satcompetition.org/

vivegi··on Poll: How many of you take as an axiom that a computer cannot be intelligent?
I think this paper [1]

  Piccinini, Gualtiero & Scarantino, Andrea. (2010). Computation vs. Information Processing: Why Their Difference Matters to Cognitive Science. Studies In History and Philosophy of Science Part A. 41. 237-246. 10.1016/j.shpsa.2010.07.012. 
leaves the question open on whether cognition is computation or information processing? while laying out an exposition on the difference between computation and information processing.

The last two sentences in their paper's conclusion is:

> Thus, cognition may well involve the processing of information. Whether this information is processed by means of (digital) computation remains an open question. (reference to footnote xii)

and in the footnotes (number xii):

> One of us believes the answer is likely to be negative (Piccinini 2007b).

[1]: https://www.researchgate.net/publication/222414469_Computati...

vivegi··on Poll: How many of you take as an axiom that a computer cannot be intelligent?
Can't edit the parent comment.

  2. Hypothesis. The set of all functions that form the basis of intelligence is computable and all members of this set are computable functions
vivegi··on Ford EV Customers to Gain Access to 12,000 Tesla Superchargers
Good. EV charging infra should be a utility. This move by Ford is a step in the right direction that increases the network effect for the charging infra.
vivegi··on Ask HN: Employer holding last salary until work laptop is returned. Can they?
Send an email to your supervisor asking them to approve a reimbursement request for couriering the work laptop to the company after getting an estimate from the courier. Ask them if they are also paying for insurance for the contents of the package in transit (in case it is lost or damaged during transit). If they say no, get it in writing.

Send the package. Include the laptop and all the accessories provided by the company (cables, mouse etc.,)

Send the actual reimbursement request along with the pre-approval including proof-of-delivery from the courier.

Save copies of all the communications, and verify that you were reimbursed in full and paid all outstanding wages.

This should work everywhere around the globe (with reasonable companies). If not, go to a lawyer with the copy of the communications you saved.

vivegi··on Poll: How many of you take as an axiom that a computer cannot be intelligent?
intelligence [1]

n. the ability to derive information, learn from experience, adapt to the environment, understand, and correctly utilize thought and reason.

  1. Fact. A computer, by definition, can only evaluate computable functions. For instance, it cannot decide the halting problem. 
  2. Hypothesis. The set of all functions that form the basis of intelligence is computable
  3. Fact. It is not known that Hypothesis 2 is true. 
  4. Therefore, it is not knowable that a computer can be intelligent or never be intelligent unless Hypothesis 2 is proven.
The statement It is possible that a future computer could be intelligent is false because it assumes Hypothesis 2 is true could be proven true in the future. So, it is conjecture at best.

The statement Some computers are already intelligent is false since Hypothesis 2 is not proven to be true yet.

The statement A computer can never be intelligent by definition assumes that Hypothesis 2 can never be proven to be true. This is a very strong statement without basis. Therefore, it is also conjecture.

The statement Every computer is intelligent by definition is false since it treats Hypothesis 2 as an axiom. So, it can be true only in a universe where Hypothesis 2 is true.

Therefore, my response is None of the above.

[1]: https://dictionary.apa.org/intelligence

vivegi··on Ask HN: Examples of desktop software with 20+ years of longevity?
Does VisualStudio IDE count? I recall using MSVC 1.5 in 1995.
vivegi··on Microsoft calls for a new U.S. agency and licensing for AI
> “New laws would require operators of these systems to build safety brakes into high-risk AI systems by design,” Smith said in a blog post accompanying his speech. “The government would then ensure that operators test high-risk systems regularly to ensure that the system safety measures are effective.”

Hmm... So, we will build a Turing machine (TM1) that will simulate this other Turing machine (TM2) and TM1 will tell us if TM2 will maliciously halt bringing down the world's infrastructure. Wait.... that requires the halting problem to be decidable (which it isn't).

Let us substitute regular testing in lieu of formal verification. TM1 will snapshot TM2 periodically. If TM1 doesn't find a suspicious state, it will conclude TM2 is running normally.

That's just great.

/s

vivegi··on Ask HN: Examples of desktop software with 20+ years of longevity?
FFmpeg - my favorite video/audio file transcoder.

Initial release in Dec 2000.

FFmpeg 6.0 "Von Neumann" 6.0 was released on 2023-02-27

Edit: I see OP mentions Desktop software. It runs on Linux, Windows and Mac, so I guess that qualifies.

vivegi··on Cases where full scans are better than indexes
Simple example.

INTAKE_TABLE contains 100k records and each record has up to 8 names and addresses. The following SQL statements would perform the name de-duplication, new id assignment and normalization.

  -- initialize
  truncate table STAGING_NAMES_TABLE;

  -- get unique names
  insert /*+ APPEND PARALLEL(STAGING_NAMES_TABLE, 4) */ into 
  STAGING_NAMES_TABLE (name)
  select /*+ PARALLEL(INTAKE_TABLE, 4) */ name1 from INTAKE_TABLE
   union
  select /*+ PARALLEL(INTAKE_TABLE, 4) */ name2 from INTAKE_TABLE
   union
  ...
   union
  select /*+ PARALLEL(INTAKE_TABLE, 4) */ name8 from INTAKE_TABLE;

  commit;

  -- assign new name ids using the name_seq sequence number
  insert /*+ APPEND */ into NAMES_TABLE (name, name_id)
  select name, name_seq.NEXT_VAL from 
   (select name from STAGING_NAMES_TABLE
     minus
    select name from NAMES_TABLE);

  commit;

  -- normalize the names
  insert /*+ APPEND PARALLEL(NORMALIZED_TABLE, 4) */ into NORMALIZED_TABLE (
   rec_id,
   name_id1,
   name_id2,
   ...
   name_id8 )
  select /*+ PARALLEL(SNT, 4) */
   int.rec_id rec_id,
   nt1.name_id name_id1, 
   nt2.name_id name_id2, 
   ..., 
   nt8.name_id name_id8 
  from 
   INTAKE_TABLE int,
   NAMES_TABLE nt1,
   NAMES_TABLE nt2,
   ...
   NAMES_TABLE nt8
  where
   int.name1 = nt1.name and
   int.name2 = nt2.name and
   ...
   int.name8 = nt8.name;

  commit;
The database can do sorting and de-duplication (i.e., the query UNION operation) much much faster than any application code. Even though the INTAKE_TABLE (100k records) are TABLE-SCANNED 8 times, the union query runs quite fast.

The new id generation does a set exclusion (i.e., the MINUS operation) and then generates new sequence numbers for each new unique name and adds the new records to the table.

The normalization (i.e., the name lookup) step joins the NAME_TABLE that now contains the new names and performs the name to id conversion with the join query.

Realizing that the UNION, MINUS and even nasty 8-way joins can be done by the database engine way faster than application code was eye-opening. I never feared table scans after that. Discovering that the reads (i.e., SELECTs) and writes (i.e., INSERTs) can be done in parallel with optimization hints such as the APPEND hint was a superpower.

Using patterns such a TRUNCATE TABLE (for staging tables) at the top of the SQL script made the scripts idempotent. i.e., we could trivially run the script again. The subsequent runs will not generate the new sequence numbers for the names. With some careful organization of the statements, this became rigorous.

Although I haven't shown here, we used to do the entire normalization process in staging tables and finally do a copy over to the main table using a final INSERT / SELECT statement.

My Oracle SQL-fu is a bit rusty. Apologies for any syntax errors.

vivegi··on Cases where full scans are better than indexes
Once upon a time (25+ years ago) I used to maintain an Oracle database that had around 50M records in its main table and 2M records in a related table. There were a dozen or so dimension (lookup) tables.

Each day, we would receive on the order of 100K records that had to be normalized and loaded into database. I am simplifying this a lot, but that was the gist of the process.

Our first design was a PL/SQL program that looped through the 100K records that would be loaded into a staging table from a flat file, performing the normalization and inserts into the destination tables. Given the size of our large tables, indices and the overhead of the inserts, we never could finish the batch process in the night that was reserved for the records intake.

We finally rewrote the entire thing using SQL, parallel table scans, staging tables and disabling and rebuilding the indexes and got the entire end-to-end intake process to finish in 45 minutes.

Set theory is your friend and SQL is great for that.

vivegi··on It is not helpful to avoid learning mathematics, everyone should learn some
> I think everyone should know some amount of mathematics to a certain level.

High school math is sufficient for day-to-day life (for the vast majority).

When was the last time you used Simpson's rule or computed limits? Maybe you did because your day job depends on writing and maintaining a graphics package. But for the vast majority of people, it may be irrelevant.

vivegi··on Ask HN: Is there a webapp to input/store your blood test results?
I had a similar requirement several years ago and I settled on the service provided by my test lab. They are a large chain in India and their reports plot the trend of all the test report indicators along with baseline reference values and interpretations. Very useful for me and my doctor.

Yes, it isn't a complete interoperable EMR solution, but I kinda manage it myself by downloading the PDF reports and maintaining in my local electronic filing system. There is always some esoteric test that the doctor could order which has to be done at a specialist lab. So, my low-tech solution settles on PDFs of the reports. It works for 99% of the cases.

At least the trend in India is to lock all of this data into proprietary data silos.

There is an initiative in India currently underway to provide a digital health ID and an ecosystem for healthcare participants to share data Ayushman Bharat Digital Mission (ABDM). It is yet to take off in a big way (and hopefully it does in the next 4-5 years) and achieves the same kind of success as the payments infrastructure by NPCI that brought the UPI network.

vivegi··on Ask HN: Are App Store anti-steering rules dead now?
IANAL.

From the ruling [1], the only thing Apple lost.

> We now turn to Apple’s cross-appeal, beginning with its arguments concerning the UCL. The district court found that Epic suffered an injury sufficient to confer Article III standing, concluded that Apple’s anti-steering provision violates the UCL’s unfair prong, and entered an injunction prohibiting Apple from enforcing the anti-steering provision against any developer. Apple challenges each aspect on appeal. We affirm.

i.e., the District Court found Apple to be violating CA Unfair Competition Law which Apple had appealed and the US Court of Appeals for the Ninth Circuit concurs with the district court.

Consequence of this ruling is limiting the ability of app developers to communicate the availability of alternative payment options to iOS device users is unlawful. As a result, alternate payment methods can no longer be restricted by Apple.

That's the gist of the judgement as it pertains to anti-steering.

I am unsure if Apple has changed their review guidelines to comply with this judgement yet.

[1]: https://cdn.ca9.uscourts.gov/datastore/opinions/2023/04/24/2...

vivegi··on Ask HN: What are your favorite sci-fi books?
My intro to Asimov's work was through the short story, The Fun They Had. It was part of our English Reader at class.

After I grew up, I picked up the Robot Series and Foundation Series. I didn't find any fictional work of his to be uninteresting. So, perhaps this comes down to individual preferences.

vivegi··on Ask HN: What are your favorite sci-fi books?
All of Asimov, Philip K Dick, Jules Verne.
vivegi··on A digital payments revolution in India
My data. Once a week, drive my car to the ATM 1.5 km away. 3 km roundtrip x 52 weeks/yr = approx. 156 km/yr.

My car gives a mileage economy of ~10 km/ltr of fuel. So around 15-16 litres of fuel burning avoided.

If I did half of these ATM stops during other trips, thats still 7 to 8 litres of fuel burning avoided.

vivegi··on A digital payments revolution in India
I agree with your statement above. UPI is looking at also getting credit card accounts linked to the NPCI/UPI network in the future. NPCI itself is trying to push RuPay as an alternative to Visa/Mastercard for domestic card payments.

So, a subtle difference from a payment stack perspective is that the consumer protection offered by credit cards is not necessarily a payment stack functionality but a feature of the credit card (just as credit and loyalty points etc., are a function of the credit card).

It is just a slighly different design goal and honestly most users of UPI are okay with it because they favor the cash-replacement offered by UPI.

I will say this though -- the ease of use in UPI is so smooth that if users fail to double check the QR code they have scanned (actually the UPI virtual address) with the vendor and confirm that it is indeed their account (I do it every time), there is a possibility of hackers diverting the funds at the point-of-sale through the use of fake QR codes. This risk is similar to skimming devices installed on PoS machines/ATM machines to steal credit card data.

vivegi··on A digital payments revolution in India
I use UPI daily.

1. In scenarios where UPI is replacing a cash transaction e.g., purchasing fruits from a fruit vendor on the street (just did it a few hours ago), the transaction is immediate. Disputes are settled exactly as how it would be done with a cash transaction i.e., discuss and settle with the vendor in situ.

India had a separate settlement mechanism called Cash-On-Delivery that was needed for companies like Amazon/FlipKart etc., to penetrate the ecommerce space before UPI came into being. Even Amazon does returns and refunds through their online/app-based customer service process.

2. In scenarios where UPI is replacing a credit card e.g., I order food through a food delivery app and an item is missing. The food delivery app provides a customer service option where they are able to resolve the issue (they could a. deliver the missing item at no charge, b. give me a cash coupon for the inconvenience that I can use on their app, c. refuse to resolve the issue). I haven't had a scenario where the service provider has refused to resolve the issue.

3. As far as fraud is concerned, a couple of months ago the local police visited our apartment complex for a brief meeting to educate people on frauds and safety. They focused on digital crimes and told us about the national helpline for cybercrime. [1] Residents can dial 1930 to reach the national cybercrime helpline to report crimes, including online frauds -- this also includes the QR code scams that you hear about in the media. They register the complaint and guide you with the process for recovering lost funds. I haven't done this myself, but what the officer explained is that based on the transaction details, the national cybercrime control center coordinates with the participating banks on both sides of the transaction to immediately freeze funds. You can also take the complaint number to the nearest police station and get an FIR (First Information Report) filed to get the fraudsters criminally prosecuted.

4. In scenarios involving a buyer-seller dispute, there is the consumer protection laws where the consumer can directly file suit against the provider in a consumer court. These are special courts (separate from the civil and criminal courts) and are very effective in protecting consumer rights. This works for all types of consumer disputes about service/product issues.

This would be the last resort for protecting consumer rights even in cases where a credit card company declines to handle a consumer's complaint on technicalities and is not just for UPI. These courts are at the district level in all states. [2]

People in the west and other developed countries have a lot more of their digital transactions occuring on credit/debit cards and are comparing that with UPI. While what UPI is doing overlaps with a lot of that, it also is more than that in enabling micropayments and p2p payments. So, that is of value for the average Indian resident.

[1]: https://cybercrime.gov.in/Webform/Helpline.aspx

[2]: http://ncdrc.nic.in/districtlist.html

vivegi··on A digital payments revolution in India
> They will still remain legal tender.

Until Sept 30th 2023. An individual may exchange up to 10 notes (INR 20,000 per day) for cash between now and Sept 30th or deposit it into their account (no limit -- but be prepared to answer the taxman if there are enquiries next year on your tax return seeking the source of funds for the deposit).

← PreviousPage 2 of 19Next →