Article View: comp.lang.c
Article #204Re: compare literals / if( "cat"== "dog") {}
From: Johann 'Myrkraverk' Oskarsson
Date: Sun, 11 Oct 2026 10:48
Date: Sun, 11 Oct 2026 10:48
26 lines
2631 bytes
2631 bytes
On 10/11/2026 6:46 PM, Johann 'Myrkraverk' Oskarsson wrote: > On 10/11/2026 6:43 PM, Stefan Ram wrote: >> Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote or >> quoted: >>> If you go this route, you can always check out Mailund's book, /The >>> Joys of Hashing/, but he does not cover the actual hashing function, >> >> When the strings are known at compile time, one can also create >> perfect hash functions using tools like gperf. > > I've been interested in perfect hashing too. Do you know a good refer- > ence if I want to recreate gperf? If I want to recreate Lex, I can read > [Holub], but if I want to recreate gperf, I don't know what to read. > > > Best wishes, and happy perfect hashes! I spoke in haste. The GPerf manual has some of this covered, so I'll look through their bibliography at leisure and amusement. https://www.gnu.org/software/gperf/manual/gperf.html#Bibliography -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:; Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID:
<XPJyS.5020$n7_c.4975@fx07.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx07.ams4.POSTED!not-for-mailReferences:
<11ae962$2365v$1@dont-email.me> <9tyyS.21373$VDn8.13923@fx14.ams4> <11afcku$2dli3$1@dont-email.me> <11afe36$2e577$1@dont-email.me> <11afe6j$2e577$2@dont-email.me> <11afedm$2e577$3@dont-email.me> <11aff4q$2egej$1@dont-email.me> <11afjjk$2g358$1@dont-email.me> <11afl7v$2giqh$2@dont-email.me> <hGJyS.25112$YNTa.1959@fx01.ams4> <hashing-20261011114242@ram.dialup.fu-berlin.de> <jOJyS.5019$n7_c.102@fx07.ams4>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx07.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: compare literals / if( "cat"== "dog") {}
Newsgroups: comp.lang.c
References: <11ae962$2365v$1@dont-email.me> <9tyyS.21373$VDn8.13923@fx14.ams4>
<11afcku$2dli3$1@dont-email.me> <11afe36$2e577$1@dont-email.me>
<11afe6j$2e577$2@dont-email.me> <11afedm$2e577$3@dont-email.me>
<11aff4q$2egej$1@dont-email.me> <11afjjk$2g358$1@dont-email.me>
<11afl7v$2giqh$2@dont-email.me> <hGJyS.25112$YNTa.1959@fx01.ams4>
<hashing-20261011114242@ram.dialup.fu-berlin.de>
<jOJyS.5019$n7_c.102@fx07.ams4>
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization: Watcom Pro Ltd.
In-Reply-To: <jOJyS.5019$n7_c.102@fx07.ams4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 26
Message-ID: <XPJyS.5020$n7_c.4975@fx07.ams4>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 11 Oct 2026 18:48:23 +0800
X-Received-Bytes: 2446